Hacker GitHub

← All repos

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

Mentions per year 58 mentions · busiest year 2016 (10)
20082026
  1. …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
  2. …handles encoding and decoding of Erlang terms, and catches rust panics before they unwind into C. https://github.com/rusterlium/rustler
  3. …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
  4. …and catch panics at the boundaries or something? wasn't able to find a clear reference. [0] https://github.com/rusterlium/rustler
  5. 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
  6. …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
  7. …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?
  8. …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
  9. 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…
  10. …My understanding it’s used extensively at Discord to eliminate Erlang/OTP performance bottlenecks. https://github.com/rusterlium/rustler
  11. …is the new Python/C++, and Rustler makes the communicating between the 2 languages super easy: https://github.com/rusterlium/rustler
  12. …right now is to write the native/performance code in Rust[1] and interop with Elixir. [1]: https://github.com/rusterlium/rustler
  13. …[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
  14. …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
  15. …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
  16. …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
  17. 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
  18. …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
  19. …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?
  20. …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
  21. …[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
  22. ▲ 5
    Rustler: Safe Rust bridge for creating Erlang NIF functions
    story by NiklasBegley · 2021-09-22 · 0 comments
  23. …popular choice lately. Most new native Elixir NIF libraries that I know of are written using https://github.com/rusterlium/rustler .)
  24. I think it's more natural to gradually implement components as Erlang NIFs in Rust via https://github.com/rusterlium/rustler .
  25. …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
  26. …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
  27. …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.
  28. …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
  29. …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
  30. Yes. Rust with https://github.com/rusterlium/rustler is one popular option.
  31. …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
  32. ▲ 168
    Rustler is a library for writing Erlang NIFs in safe Rust code
    story by bryanrasmussen · 2019-09-16 · 51 comments
  33. Well played. Kudos for creativity ( https://github.com/rusterlium/rustler ) Thanks for write up and benchmarks.
  34. …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
  35. Wonder if they use rustler [0], which claims it cannot crash the BEAM. Looks pretty good. [0] https://github.com/hansihe/rustler
  36. …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?
  37. …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
  38. …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
  39. …can make better guarantees about your code and there is this that allows you to write them in Rust: https://github.com/hansihe/rustler
  40. …great for (like crunching numbers) you can use something like Rustler to be build a safer NIF? https://github.com/hansihe/rustler
  41. …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
  42. …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
  43. …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)
  44. …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
  45. …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
  46. …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
  47. 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
  48. If you're interested in getting chocolate in your peanut butter, check out Rustler: https://github.com/hansihe/Rustler
  49. ▲ 2
    Safe Rust bridge for creating Erlang NIF functions
    story by dpeck · 2016-10-25 · 0 comments
  50. …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