ractor | zigler | |
---|---|---|
10 | 10 | |
1,252 | 683 | |
- | 2.3% | |
7.7 | 7.2 | |
10 days ago | 6 days ago | |
Rust | Elixir | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ractor
-
Write Elixir NIFs in Rust
This project also appears interesting, but it seems that its clustering features have yet to be tested in large scale distributed systems.
https://github.com/slawlor/ractor/discussions/131
-
A LiveView Is a Process
If you look at my comment history, you'll see I'm well familiar with the BEAM.
I'm in full agreement with you, but I'm not sure you need full robust process supervision trees to mimic what the BEAM does in the context of LiveView on a single machine.
I do want to say, I 100000% times prefer Elixir, it's tooling, ecosystem, web frameworks, easy of scaling vertically and horizontally, etc over Go or any other lang that probably do something analogous to LiveView via what ever concurrency primitives that language/runtime champions; Go with it's Communicating sequential processes(CSP) and Rust with the Ractor lib (https://github.com/slawlor/ractor).
-
Preferred way to receive events?
Also consider an actor framework like ractor. You can have actors listening to sockets, who will then message subscribed actor or actors with the data.
- Show HN: Ractor – a Rust-based actor framework with clusters and supervisors
- GitHub - slawlor/ractor: Rust actor framework
-
Ractor: not just another actor framework
github
zigler
-
Bun v0.8.0
Bun is an executable as far as I understand. Would it be possible to call Bun code directly from another language with bindings?
For example Erlang (and Elixir) has Native Implemented Functions[0] (NIF) where you can call native code directly from Erlang. Elixir has the zigler[1] project where you can call Zig code directly from Elixir.
Maybe you can see where I'm going with this, but it would be super cool to have the ability to call Javascript code from within Elixir. Especially when it comes to code that should be called on the server and client. I'm the developer of LiveSvelte[2] where we use Node to do SSR but it's quite slow atm, and would be very cool to use Bun for something like this.
In any case Bun is super impressive, keep it up!
[0] https://www.erlang.org/doc/tutorial/nif.html
[1] https://github.com/E-xyza/zigler
[2] https://github.com/woutdp/live_svelte
-
Write Elixir NIFs in Rust
There's also Zigler, that makes writing NIFs in Zig a breeze: https://github.com/E-xyza/zigler
-
Elixir and Rust is a good mix
I admit for a long time this was my primary motivation to learn Rust, but, sadly, I haven't come across problems in years that were CPU bound/where I needed something like Rust... Rustler still looks like a great fit if needed, but, depending on the use case, if I were CPU bound and needed to write my own code/not just use a Rust library, I'd be as or more likely to look at using Zig and Zigler[0], for much faster learning curve, and from what I've read, easier tighter integration into elixir, including I think language server integration. Some discussion here[1] though I forget if I listened to this one or not.
[0]https://github.com/ityonemo/zigler
-
A simple Erlang NIF in Zig
Thing is, zigler failed in some way for me to build this with NixOs proj and it was fun to create this from scratch.
-
What's New in Elixir 1.13
With this new functionality, we can expect to see some upcoming development of custom formatters for common types of embedded code. The Zigler project already has an issue open for a custom ~Z formatter, and I hope to see some development for a ~H soon.
-
Elixir v1.13 Released
That looks great, it's a pet peeve of mine that it's difficult to format languages that are encased in another language. Most (all?) editors are only expecting a single "language" in in a file. You have a js file? Must contain only JavaScript!
Unrelated to 1.13 but thanks to the release notes, I now know about Zigler; which looks really neat.
https://github.com/ityonemo/zigler
- Zigler: Zig NIFs in Elixir
- José Valim Reveals “Project Nx” (Numerical Elixir)
-
Ten years without Elixir
Not an antipattern for nimble_parsec: https://github.com/ityonemo/zigler/blob/fe845a9fbbfef92da8ab...
Plus think of how much easier that pipe makes it for you to understand what is going on.
What are some alternatives?
lunatic - Lunatic is an Erlang-inspired runtime for WebAssembly
oban - 💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3
neural - NIF based erlang shared term storage
axon - Nx-powered Neural Networks
bastion - Highly-available Distributed Fault-tolerant Runtime
golive - LiveView for Go
live_svelte - Svelte inside Phoenix LiveView with seamless end-to-end reactivity
nx - Multi-dimensional arrays (tensors) and numerical definitions for Elixir
regex_help - Get a computer to write regex for you. A front-end for grex (https://github.com/pemistahl/grex).
rustler_precompiled - Use precompiled NIFs from trusted sources in your Elixir code