As someone who writes Erlang for a living, I highly recommend rust as a well typed alternative to Erlang, that still keeps all of the things that make Erlang great. I do love Erlang, but working on a large codebase can be frustrating when nothing is speced or commented, and even when it is speced it’s usually part of a gradually typed codebase with very non descriptive types.
Can you recommend a good web framework/micro-framework? I was using actix-web, but last I heard it has to many unnecessary `unsafe`s.[0] [0] https://www.reddit.com/r/rust/comments/8s7gei/unsafe_rust_in...
Elchemy – write type safe Elixir using Elm-like syntax
21–30 of 57 posts
Re: Elchemy – write type safe Elixir using Elm-like syntax
#22As someone who writes Erlang for a living, I highly recommend rust as a well typed alternative to Erlang, that still keeps all of the things that make Erlang great. I do love Erlang, but working on a large codebase can be frustrating when nothing is speced or commented, and even when it is speced it’s usually part of a gradually typed codebase with very non descriptive types.
Could you elaborate on why you find Rust to be an alternative to Erlang? For me at least, most of the draw of Erlang has nothing to do with the language, and everything to do with BEAM/OTP and the surrounding architecture, which (as far as I'm aware) Rust does not provide an alternative to in any shape or form.
Re: Elchemy – write type safe Elixir using Elm-like syntax
#23Re: Elchemy – write type safe Elixir using Elm-like syntax
#24But please don't use fonts with ligatures in code snippets on the homepage. Especially when these code examples are actually screenshots which people can't copy.
Ligatures may be "obvious" to developers already familiar with the syntax of the language, but can make things very confusing for beginners, esp. in FP languages that lean heavily on operators etc.
I am really glad that the docs/roadmap etc. are on Github. Github is really the gold standard when it comes to programmer friendly aesthetics.
Re: Elchemy – write type safe Elixir using Elm-like syntax
#25Or if you’d rather have typeclasses: https://github.com/purerl/purescript
Even if you don't intend to ever use Purescript itself for application development, the book is worth a read, as an introduction to FP concepts, especially if you are coming from a Javascript/Web-dev background.
Re: Elchemy – write type safe Elixir using Elm-like syntax
#26Earlier quoted context omitted.
Could you elaborate on why you find Rust to be an alternative to Erlang? For me at least, most of the draw of Erlang has nothing to do with the language, and everything to do with BEAM/OTP and the surrounding architecture, which (as far as I'm aware) Rust does not provide an alternative to in any shape or form.
So Rust does not include built in abstractions/frameworks for building distributed systems, but I count that as a good thing. OTP can scale well under certain conditions. But it can also require rewriting supervision, servers, and other core pieces of OTP, which is a huge pain. BIFs can be slow or have wonky behavior, NIFs are dangerous but necessary when Erlang is too slow. When a language gives you prebuilt abstrac…
Re: Elchemy – write type safe Elixir using Elm-like syntax
#27Re: Elchemy – write type safe Elixir using Elm-like syntax
#28Re: Elchemy – write type safe Elixir using Elm-like syntax
#29As someone who writes Erlang for a living, I highly recommend rust as a well typed alternative to Erlang, that still keeps all of the things that make Erlang great. I do love Erlang, but working on a large codebase can be frustrating when nothing is speced or commented, and even when it is speced it’s usually part of a gradually typed codebase with very non descriptive types.
Can you recommend a good web framework/micro-framework? I was using actix-web, but last I heard it has to many unnecessary `unsafe`s.[0] [0] https://www.reddit.com/r/rust/comments/8s7gei/unsafe_rust_in...
Re: Elchemy – write type safe Elixir using Elm-like syntax
#30Earlier quoted context omitted.
Could you elaborate on why you find Rust to be an alternative to Erlang? For me at least, most of the draw of Erlang has nothing to do with the language, and everything to do with BEAM/OTP and the surrounding architecture, which (as far as I'm aware) Rust does not provide an alternative to in any shape or form.
So Rust does not include built in abstractions/frameworks for building distributed systems, but I count that as a good thing. OTP can scale well under certain conditions. But it can also require rewriting supervision, servers, and other core pieces of OTP, which is a huge pain. BIFs can be slow or have wonky behavior, NIFs are dangerous but necessary when Erlang is too slow. When a language gives you prebuilt abstrac…