djaouen

djaouen

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.

Showing Posts 1 to 2

al2o3cr

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.

erszcz

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:

  1. The implementations are independent of the compiler(s), so they have no way to inject code.
  2. 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.

— All posts loaded —

Where Next? Top

Trending in Other Resources Top

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews