rusterlium/rustler
View on GitHub ↗ ★ 4,891 Rust
Safe Rust bridge for creating Erlang NIF functions
58 mentions on Hacker News by 49 people: 4 stories, 54 comments · first 2016-03-04 · latest 2025-04-02
20082026
-
…straight forward to wrap Graft Client (Rust library) directly in an Erlang NIF using something like https://github.com/rusterlium/rustler Let's make it happen! :)
comment by carlsverre · 2025-04-02 · in Stop syncing everything -
…handles encoding and decoding of Erlang terms, and catches rust panics before they unwind into C. https://github.com/rusterlium/rustler
comment by h0l0cube · 2025-01-30 · in Parsing PDFs (and more) in Elixir using Rust -
…You might as well use Erlang (or elixir) and do your heaving lifting in rust with somethign like https://github.com/rusterlium/rustler
comment by webkike · 2024-11-03 · in Ractor – a Rust Actor Framework -
…and catch panics at the boundaries or something? wasn't able to find a clear reference. [0] https://github.com/rusterlium/rustler
comment by mijoharas · 2024-10-28 · in Using Rust in non-Rust servers to improve performance -
Do you mean Rustler? Yes, it's Apache 2.0 https://github.com/rusterlium/rustler
comment by alberth · 2024-10-24 · in Zigler: Zig NIFs in Elixir -
…mentioned in a sibling thread, but hopefully the Discord tidbit will be interesting to others. [0] https://github.com/rusterlium/rustler [1] https://github.com/discord/sorted_set_nif
comment by prophesi · 2024-10-01 · in Ask HN: What is the best way to learn Erlang? -
…Also worth mentioning is that you can write CPU intensive code in rust and invoke it as NIFs[1] [1] https://github.com/rusterlium/rustler
comment by freedomben · 2024-10-01 · in Ask HN: What is the best way to learn Erlang? -
…pull a Rust crate and do 80% of the work setting it up for me to be able to use it in a project. https://github.com/rusterlium/rustler
comment by seventyone · 2024-06-11 · in Exploring Gleam, a type-safe language on the BEAM -
For performance intensive tasks, you could rely on Rust NIFs, there is this great project: https://github.com/rusterlium/rustler My last project with Elixir was using Elixir merely as an orchestrator of static binaries (developed in…
comment by linkdd · 2024-01-09 · in AI Toolkit: Give a brain to your game's NPCs, a header-only C++ library -
…My understanding it’s used extensively at Discord to eliminate Erlang/OTP performance bottlenecks. https://github.com/rusterlium/rustler
comment by alberth · 2023-12-29 · in Ask HN: Good examples of fault-tolerant Erlang code? -
…is the new Python/C++, and Rustler makes the communicating between the 2 languages super easy: https://github.com/rusterlium/rustler
comment by technojamin · 2023-09-08 · in Maybe Rust isn’t a good tool for massively concurrent, userspace software -
…right now is to write the native/performance code in Rust[1] and interop with Elixir. [1]: https://github.com/rusterlium/rustler
comment by freedomben · 2023-08-14 · in Elixir – Why the dot when calling anonymous functions? -
…[1] https://github.com/elixir-nx/nx https://github.com/elixir-nx/axon [2] https://livebook.dev/ [3] https://github.com/rusterlium/rustler [4] https://dashbit.co/blog/rustler-precompiled
comment by peoplefromibiza · 2023-04-14 · in Elixir and Rust is a good mix -
…of Rust and then calling Rust for the more focused and specialized work is a good combination IMO. https://github.com/rusterlium/rustler
comment by brightball · 2023-02-15 · in When Rust hurts -
…code (segfaults, infinite loops, etc). A purported safer means to create NIFs is to use Rustler ( https://github.com/rusterlium/rustler ) which lets you easily write NIFs in Rust instead of C. I haven't used it but I've heard good things.
comment by dugmartin · 2022-10-13 · in Plane: Per-user backends for web apps -
…I depend on an Elixir package that uses rustler). [1]: https://github.com/neon-bindings/neon [2]: https://github.com/rusterlium/rustler
comment by mwcampbell · 2022-09-07 · in Zig, the Small Language -
They work really well together. Check out Rustler.[1] [1]: https://github.com/rusterlium/rustler
comment by cigrainger · 2022-06-22 · in Stack Overflow Developer Survey 2022 -
…CI etc to build the binaries. A recent solution was to precompile these binaries. It's great. [0] https://github.com/rusterlium/rustler [1] https://dashbit.co/blog/rustler-precompiled
comment by thejosh · 2022-04-23 · in Show HN: Fleet – Experimental build tool for Rust that’s up to 5x faster -
…a new version every 3 minutes, it's not getting a lot of attention. [0] - https://kubirds.com [1] - https://github.com/rusterlium/rustler
comment by linkdd · 2022-04-15 · in Ask HN: Whatever Happened to Elixir? -
…up crashing and taking the entire VM with it. Rustler[0][1] makes the integration a breeze. [0]: https://github.com/rusterlium/rustler [1]: https://hexdocs.pm/rustler/readme.html
comment by lawn · 2021-11-13 · in Why asynchronous Rust doesn't work -
…[2] https://github.com/elixir-nx/axon [3] https://github.com/pola-rs/polars [4] https://github.com/rusterlium/rustler [5] https://dplyr.tidyverse.org/
comment by cigrainger · 2021-11-05 · in Show HN: Dataframes in Elixir Backed by Rust -
…popular choice lately. Most new native Elixir NIF libraries that I know of are written using https://github.com/rusterlium/rustler .)
comment by derefr · 2021-04-07 · in All C++20 core language features with examples -
I think it's more natural to gradually implement components as Erlang NIFs in Rust via https://github.com/rusterlium/rustler .
comment by rch · 2020-09-11 · in Scaling Erlang Developer Experience at WhatsApp [pdf] -
…between lua/c++ in some modern game engines [0] http://erlang.org/doc/man/erl_nif.html [1] https://github.com/rusterlium/rustler
comment by grantjpowell · 2020-09-07 · in Elixir Is Erlang, not Ruby -
…put it into a canonical validated structure, you may as well hand it off to native code (using e.g. https://github.com/rusterlium/rustler ). If you think of native code as being a pure domain of strongly-typed values, then picture Erlang…
comment by derefr · 2020-05-20 · in Lovely Week with Elixir -
…or data structures that work better with mutability, it's possible to (eg) use Rustler ( https://github.com/rusterlium/rustler ) to implement that part in Rust. See https://github.com/rusterlium/rustler for a story about doing this.
comment by nathan_long · 2020-04-23 · in Build a real-time Twitter clone with LiveView and Phoenix 1.5 -
…that Rust interoperates extremely well with Erlang, which is the basis of Discord (via Rustler). https://github.com/rusterlium/rustler https://blog.discordapp.com/scaling-elixir-f9b8e1e7c29b
comment by tiffanyh · 2020-02-04 · in Why Discord is switching from Go to Rust -
…you to write NIFs that can't crash the BEAM, never felt the need to use it, but at least it exists. https://github.com/rusterlium/rustler
comment by thomasfortes · 2020-01-08 · in Elixir lang 1.10.0-rc0 -
Yes. Rust with https://github.com/rusterlium/rustler is one popular option.
comment by erokar · 2019-10-17 · in An Interview with Jose Valim, Creator of Elixir -
…is a pretty popular choice for writing native code (NIFs) for Elixir. (Similar to Ruby FFI). See https://github.com/rusterlium/rustler Discord especially has several real world use cases where they've implemented native code in Rust.
comment by pythonaut_16 · 2019-10-17 · in An Interview with Jose Valim, Creator of Elixir -
Well played. Kudos for creativity ( https://github.com/rusterlium/rustler ) Thanks for write up and benchmarks.
comment by nwrk · 2019-05-18 · in Using Rust to Scale Elixir for 11M Concurrent Users -
…also Rustler, which uses rust promises of safety to write NIFs in a safer way than with raw C. https://github.com/rusterlium/rustler
comment by fermuch · 2019-05-14 · in Erlang OTP 22.0 is released -
Wonder if they use rustler [0], which claims it cannot crash the BEAM. Looks pretty good. [0] https://github.com/hansihe/rustler
comment by Buttons840 · 2019-02-24 · in How Discord Scaled Elixir to 5M Concurrent Users (2017) -
…I need to speed things up a bit here and there, I just add a little rust into the mix. [1] [1] https://github.com/hansihe/rustler
comment by plainOldText · 2019-01-06 · in Would you still pick Elixir in 2019? -
…bound. Thats why it has amazing first class integrations! https://github.com/fazibear/export and https://github.com/hansihe/rustler
comment by cultofmetatron · 2018-11-30 · in Erlang/OTP 21's new logger -
…they are doing this, and I'm interested in hearing about their results. edit: Google is my friend. https://github.com/hansihe/rustler
comment by gfodor · 2018-10-26 · in Two years of Elixir at The Outline -
…can make better guarantees about your code and there is this that allows you to write them in Rust: https://github.com/hansihe/rustler
comment by andy_ppp · 2018-07-27 · in Membrane Framework – An Elixir framework for multimedia streaming applications -
…great for (like crunching numbers) you can use something like Rustler to be build a safer NIF? https://github.com/hansihe/rustler
comment by mledu · 2018-06-21 · in Elchemy – write type safe Elixir using Elm-like syntax -
…the likes are competing with Erlang/Elixir in terms of concurrency. Until then, I'll happily use: https://github.com/hansihe/rustler for writing NIFs in Rust.
comment by plainOldText · 2018-06-21 · in Erlang OTP 21.0 is Released -
…at least one project to write the native functions in a safer language to reduce their bugs a bit: https://github.com/hansihe/Rustler
comment by nickpsecurity · 2018-06-17 · in ActorDB – Distributed SQL database -
…you're not interested in writing safe c code it looks like there is a bridge from rust to erlang. https://github.com/hansihe/rustler
comment by pg_bot · 2018-05-19 · in The Zen of Erlang (2016) -
…dependency. Now my dependency listed in `mix.exs` looks like this: {:rustler, ">= 0.0.0", git: "https://github.com/hansihe/rustler.git", tag: "0.15.1", sparse: "rustler_mix"} ... and problem solved. I guess peeking at rustler's tests…
comment by plainOldText · 2017-07-25 · in Elixir 1.5 released -
…Erlang's concurrency primitives and Rust's performance & security are a match made in heaven. [1] https://github.com/hansihe/rustler
comment by Cieplak · 2017-07-20 · in Announcing Rust 1.19 -
…writing NIFs in Rust, which gives some degree of additional safety. The relevant project would be: https://github.com/hansihe/rustler
comment by micmus · 2017-06-21 · in Erlang/OTP 20.0 -
Apparently people are working on this using Rust for writing NIFs https://github.com/hansihe/rustler
comment by lenkite · 2017-01-27 · in Comparing Elixir and Go -
If you're interested in getting chocolate in your peanut butter, check out Rustler: https://github.com/hansihe/Rustler
comment by gamache · 2017-01-20 · in Languages on BEAM, the Erlang virtual machine -
…together seems like a swell idea. Both are focused on safety, which I like. Been keeping my eye on https://github.com/hansihe/Rustler
comment by rdtsc · 2016-08-11 · in Zero-cost futures in Rust -
…about these kinds of hacks. Btw, it seems the author is also the author of this cool project: https://github.com/hansihe/Rustler It is a library which helps write Rust NIFs for Erlang, I am following that. I see both Erlang/Elixir and Rust…
comment by rdtsc · 2016-07-28 · in Preemptive Scheduling of Erlang NIFs -
You might be interested in this project: https://github.com/hansihe/Rustler
comment by rozap · 2016-07-01 · in Rails 5.0: Action Cable, API mode, and more -
…on. - [0]: https://github.com/rustbridge/helix - [1]: https://github.com/rustbridge/neon - [2]: https://github.com/hansihe/Rustler
comment by bjz_ · 2016-06-13 · in “Safe C++ Subset” Is Vapourware