djaouen
A gradual type system for Elixir (ScienceDirect) - has anyone seen this paper on static typing for Elixir?
Has anyone seen this paper on static typing for Elixir? It kind of goes over my head, but I’m interested in what the community thinks about it.
Most Liked
erszcz
The original Gradual Typing paper by Siek and Taha actually proposes that gradual typing systems inject dynamic checks on downcasts from any. I think that’s what TypedRacket does.
The Erlang/Elixir implementations I know (e.g. Gradient / Gradualizer), however, don’t do it. I think it’s because of two reasons:
- The implementations are independent of the compiler(s), so they have no way to inject code.
- The type system is still advantageous if we only use static types (that is some bugs do get detected at check time, not at runtime) and it doesn’t degrade below the guarantees offered by the runtime anyway (for as long as the supervision tree is there no critical failures can bring the system down).
IMO that’s a nice blend of dynamism and ahead of time warnings.
3
al2o3cr
One thing that jumps out (besides the unusual code formatting) is that the resulting type system considers code like bad/1:
to be typed correctly, due to how it handles “downcasting” from any.
2
Popular in Other Resources
Hey all :wave:
I took me a bit more than 1 year but I finally managed to finish “Programming Machine Learning - From Coding to Deep Lear...
New
I wanted to share an exercise I did that I found useful for refining my knowledge of SQL internal implementations and list comprehensions...
New
I’m very happy to launch this project since it is a culmination of several years of a self-knowledge process and acquired experience in s...
New
This month we’re excited to host Tyr Chen, VP of Engineering at ArcBlock, on our webinar.
ArcBlock are founding sponsors of the Erlang E...
New
Following up from his talk at ElixirConf EU Virtual, our colleague Oleg Tarasenko will be joining us on the webinar to dive deeper into C...
New
Cool way to learn service workers by playing this game
Also this game may not work well in the latest Firefox but works in Opera
New
I decided to use the “Awesome <…>” template to gather some links to libraries and talks related to Machine Learning in Elixir.
I s...
New
TLDR
This repo got all Terraform IaC files to setup AWS ECS for Elixir apps that includes web server(s) and database. It includes auto d...
New
Elixir Quiz that tests your Knowledge in Elixir Programming.
Elixir Functional Programming Test Intermediate level
:pen: 30 questions ·...
New
I’m happy to announce RunElixir.com, a free online guide to Elixir. It aims to answer the questions: How can I get started with Elixir?, ...
New
Other popular topics
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
can someone please explain to me how Enum.reduce works with maps
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Hi everyone,
One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New








