(no title)
markholmes | 6 years ago
Guess this is a good time to plug Gleam though (along with Dialyzer, which has already been mentioned), a statically typed functional programming language which compiles to Erlang.
markholmes | 6 years ago
Guess this is a good time to plug Gleam though (along with Dialyzer, which has already been mentioned), a statically typed functional programming language which compiles to Erlang.
lobo_tuerto|6 years ago
"Our biggest and the most challenging project is evolving Erlang into a modern statically typed programming language.
Our work is motivated by extremely successful and large-scale application of Erlang at WhatsApp."
milani|6 years ago
plinkplonk|6 years ago
"How is message passing typed?
Gleam doesn't currently have first class support for the BEAM's concurrency primitives such as receive, send, and spawn. This is because research is still ongoing as to the best way to apply a strong type system to them while still enabling established OTP patterns. For now these primitives should be used via the Erlang FFI, making them dynamically typed.
Many OTP patterns such as gen_server are functional in nature and don't require direct use of these primitives so these behaviours can be implemented in Gleam today."
I suspect the FB language might solve this.
lpil|6 years ago
I'm interested in what the WhatsApp team come up with here too! I'm not sure it's possible to "solve" this entirely though, message passing in Erlang is extremely dynamic and some of the problems are not possible to solve (i.e. distributed message passing) and will always require some unsafe type casting.
smabie|6 years ago
krainboltgreene|6 years ago