zigler
bastion
Our great sponsors
zigler | bastion | |
---|---|---|
10 | 15 | |
678 | 2,759 | |
3.1% | 1.1% | |
7.2 | 0.0 | |
4 days ago | about 1 year ago | |
Elixir | Rust | |
MIT License | Apache License 2.0 |
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.
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.
bastion
- Write Elixir NIFs in Rust
- Bastion – Highly-Available Distributed Fault-Tolerant Runtime for Rust
-
lunatic v0.9 released - Bringing Erlang's supervisors to Rust
How is this better / different than https://github.com/bastion-rs/bastion ?
-
Introspection in Erlang/BEAM-inspired Async-Rust-Executors?
There are attempts to implement an Erlang/BEAM-inspired reactor/runtime/executor/ecosystem for Rust's Async, in particular Bastion. (There are also Lumen, Lunatic and Async-Backplane/Async-Supervisor.)
- What is the current state of actor systems in Rust?
-
Announcing "Zestors": A simple, fast and flexible actor-framework
I would be interested in an example showing how to build a robust runtime like bastion with fault tolerance.
-
Async feedback from 2 years of usage
But the issue you're referring to, building a fault-tolerant web server where you can have granular control over killing background jobs regardless if they're blocked on a syscall, totally requires using this kind of software architecture. See Bastion.
-
Can one code different kind of multithreading paradigms in Rust (BEAM, Node, Go)?
Bastion, a Rust async runtime inspired by the beam distribution and supervision model
-
Linus Torvalds on Rust support in kernel
I don't really know much about erlang, but I think this may be along the lines of what you are thinking of: https://github.com/bastion-rs/bastion
(I also don't really think the linux kernel people would be interested...)
-
Lunatic - An Erlang inspired runtime for all programming languages
This reminds me of bastion. Looks like it attempts to fulfill the same needs, though I guess Lunatic has native WASM support whereas bastion might require some tweaking to have it work? Haven't worked with bastion, so that part of harder time with WASM is just a wild speculation. On the other hand bastion looks much more mature. Probably /u/vertexclique could give a more informed opinion about the difference between the two ;) I really like what these projects are putting forward.
What are some alternatives?
oban - 💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3
actix - Actor framework for Rust.
ractor - Rust actor framework
smol - A small and fast async runtime for Rust
axon - Nx-powered Neural Networks
lunatic - Lunatic is an Erlang-inspired runtime for WebAssembly
neural - NIF based erlang shared term storage
tiny-tokio-actor - A simple tiny actor library on top of Tokio
live_svelte - Svelte inside Phoenix LiveView with seamless end-to-end reactivity
rustig - A tool to detect code paths leading to Rust's panic handler
regex_help - Get a computer to write regex for you. A front-end for grex (https://github.com/pemistahl/grex).
riker - Easily build efficient, highly concurrent and resilient applications. An Actor Framework for Rust.