popoinikov
Elixir and Rust - learning Rust a necessary skill for people using Elixir?
Sorry for the ridiculous question.
Вut I got the impression that knowing of the Rust language
will subsequently be a necessary skill for people that using Elixir.
Maybe I’m completely wrong?
I ask in connection with the fact that learning such a complex language as
Rust will require a lot of time for a person who is not a polyglot.
I really love Elixir, but I’m afraid I don’t have enough strength and the ability
to fully learn Rust just to write short Nifs on it.
Maybe, if so, it is just need to learn a subset of the Rust language?
(But, when I look at the implementation of the lists in Rust,
I’m starting to feel half as good).
Sorry one more time. I’m lost, Please help the newbie.
Most Liked
NobbZ
Because it makes it easy to interface rust, and takes the burden of a lot of boilerplate code you had to write otherwise to interface with the erlang distributed C-Headers for writing NIFs.
And Rust is memory safe and fast, C is just fast. Thats why Rust is so much prefered over C, though its possible to write NIFs in C or C++ as well, or even Pascal or anything else that is able to call into C and gets called from C. But not everything makes sense…
dimitarvp
Erlang and Elixir are excellent glue languages, and excellent in handling a lot of network requests at once. You’ll be very hard-pressed to find another runtime that does these things so rock-solid and fast.
That being said, they definitely fall short if you need mega-fast processing that requires pure CPU muscle – like various matrix calculations, deep learning, image processing, those kinds of things.
People praise Rustler because, as @NobbZ said, it makes it very easy to integrate your own Rust code with your Elixir code. But that’s only if you need it. Most of the BEAM projects are perfectly fine being Erlang or Elixir only.
praveenperera
To learn elixir you only need to learn elixir.
Maybe later if you start doing some really, really cool stuff you might want to learn Erlang or Rust.
But at that point that’s a good problem to have … because you’re doing cool stuff
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









