rustic_result
eqwalizer
rustic_result | eqwalizer | |
---|---|---|
5 | 11 | |
21 | 499 | |
- | 0.2% | |
5.3 | 8.2 | |
3 months ago | 2 days ago | |
Elixir | Scala | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rustic_result
-
Switching to Elixir
Self promotion moment:
If you enjoy the Result/Either type and API in Rust, I made this project just for this: https://github.com/linkdd/rustic_result
I also made https://github.com/linkdd/rustic_maybe/tree/main for an Option/Maybe type.
NB: Those are not types, but I'm waiting for set theoretic types to update those libs :)
-
Error Handling Patterns
It's missing the Erlang/Elixir pattern of returning a tuple `{:ok, T}` or `{:error, E}`, where we can then use pattern matching, or `with` expressions, etc...
To be fair, it is very similar to a `Result` type, which is why I made this library a while ago: https://github.com/linkdd/rustic_result
-
A new milestone for Letlang - Effect Handlers
I intend to add a pipeline operator similar to Elixir, to be used with an std::result module which will provide functions to ease writing such complex code. I may take inspiration on an Elixir library I wrote a while ago: https://github.com/linkdd/rustic_result
-
Elixir Railway Oriented Programming
A while ago, I made this library https://github.com/linkdd/rustic_result
-
Go Replaces Interface{} with 'Any'
I also made a library for working with `{:ok, value}` and `{:error, reason}` in Elixir: https://github.com/linkdd/rustic_result
Thanks to the pipeline operator and pattern matching, it makes pretty easy to read pipelines. It does not completely replace the with statement (that was not the point) but it simplified a lot of code.
eqwalizer
-
Switching to Elixir
I don't think the implementation itself is at fault, but yes, I do think that the design of dialyzer makes it an (at times) faulty type checker. The unfortunate reality of a type checker that fails sometimes is that it makes it mostly useless because you can never trust that it'll do the job.
To be clear, I've had it fail in a function where I've literally specced that very function to return a `binary` but I'm returning an `integer` in one of the cases. This is a very shallow context but it can still fail. Now add more functions, maybe one more `case`.
I think an entire rethink of type checking on the BEAM had to be done and that's why eqWalizer[0] was created and why Elixir is looking to add an actual sound, well-developed type checker. Gleam[1] I would assume is just a Hindley-Milner system so that's completely solid. `purerl`[2] is just PureScript for the BEAM so that's also Hindley-Milner, meaning it's solid. `purerl` has some performance issues caused by it compiling down to closures everywhere but if you can pay that cost it's actually pretty fantastic. With that said my bet for the best statically typed experience right now on the BEAM would be `gleam`.
0 - https://github.com/WhatsApp/eqwalizer
1 - https://gleam.run
2 - https://github.com/purerl/purerl
- Unpacking Elixir: Concurrency
-
eqwalizer VS Gradualizer - a user suggested alternative
2 projects | 17 Apr 2023
- Erlang: The coding language that finance forgot
-
Phoenix 1.7 is View-less
While it's not static-typing, compile-time type checking for Erlang have come a long way: Eqwalizer works pretty well - but I may be biased since my employer sponsors the project.
1. https://github.com/WhatsApp/eqwalizer
-
[New] How do you verify program correctness in Elixir?
Note there is also research happening in this area by the Elixir team. The WhatsApp is also working on static types for Erlang, which I am certain will be available for Elixir too at some point.
- Eqwalizer: A Type-Checker for Erlang
- Eqwalizer: WhatsApp’s Erlang Type Checker
-
Elixir Livebook now as a desktop app
From the discord blog posts it seems that elixir powers the chat system, with rust and python as the other two main languages in their stack.
As for whatsapp, they are mainly a erlang shop and yesterday they open sourced a type checker for erlang:
https://github.com/WhatsApp/eqwalizer
What are some alternatives?
neverthrow - Type-Safe Errors for JS & TypeScript
gradient - Gradient is a static typechecker for Elixir
semver - Semantic Versioning Specification
erllambda - AWS Lambda in Erlang
go - The Go programming language
explorer - Series (one-dimensional) and dataframes (two-dimensional) for fast and elegant data exploration in Elixir
rustic_maybe - Maybe monad for Elixir inspired by Rust Option type
kino - Client-driven interactive widgets for Livebook
gopherjs - A compiler from Go to JavaScript for running Go code in a browser
FunkyABX - Audio blind tests
transport-site - Rendre disponible, valoriser et améliorer les données transports
Gradualizer - A Gradual type system for Erlang