Congrats on the release!! It brings back so many memories, I loved Elm back in 2019. I moved to other territories since then, but it influenced my career positively and still love it.
In doing all that work, I figured out a bunch of compiler/language ideas that are useful in Elm as well. Some are simple performance things (like the faster parser) and others are more visible features like equatable and hashable types. To get these ideas integrated into Elm in a nice way, it makes sense to do a series of small non-breaking releases, and then go 1.0 for the final touches.
Functional language for frontend development. People I know who worked with it are lyrical, but community is inactive. Single maintainer afaik, slow releases.
what happened to elm and what was it used for? and what was the big thing about the fiasko and what are alternatives? just asking because i read a book about 14 interesting languages and elm was mentioned aswell.
Elm started as the thesis project for Evan Czaplicki whilst at Yale. He did a paper on Functional Reactive Programming for GUIâs, and wrote a DSL in Haskell, Elm, that created HTML, CSS, and JS outputs using FRP techniques.
It wasnât exactly new stuff; we already had arrowized FRP, and libraries like Reactive-Banana were also doing the web browser as the GUI thing.
But what Evan did right was that things were very approachable and simple. You didnât have to know arrows, reason about space leaks, learn higher kinded types, fight the Haskell toolchain (this was 2013 and maaaan was Cabal a nightmare) etc etc.
Elm presents itself as pure - very declarative with denotational semantics: you write what should happen, and the runtime handles the how for you. Rather than managing a zoo of functors, monads et al, you basically have Cmd for something IO or effectful like, and HTML for creating something view like.
And by simplifying to this core + being pure, the MVC/MVVM pattern works really well - so well that youâll often see people refer to the eponymous âElmâ pattern in other frameworks (Miso, Elmish) which a variant called MVU. Your model is algebraic data types, Cmd updates, and HTML is your views.
You can make fancy, complex web applications whilst not having to carry a lot of mental overhead around, which is always fun.
So it really started to take off. But Elm was Evanâs passion project, and contributing to the language was really weird - you had to become friends with the core developers. The compiler downloaded packages from the elm repo, and that was hardcoded in. Iâm not sure Iâm remembering this part 100% right, but I recall some of the core functions not being public (as in, you couldnât call them). So a bunch of libraries you just couldnât compete with, and you basically had to use whatever Evan had wrote and shipped.
They then announced that you couldnât write FFI wrappers for JavaScript, it all had to be handled through their Ports system. It made sense from a theory perspective, you push the impure JS masquerading as Elm out of the core of your code, and handle passing and back and forth between it.
At this point, cracks had started to show in Elm for big applications. The simplicity of reducing Arrow and Applicative FRP meant you still had their problems wrt composing stateful view/updates, but coupled with the lack of higher kinded types by simplifying the type system meant you had to manually plumb a lot of state between modules, creating enormous boilerplate.
Removing native modules culled one of the methods of mitigating this headache (even if it was in a sneaky unsafePerformIO way).
Now you had to rewrite a lot of code to use Ports, the cost of marshalling data back and forth, some browser features just flat out werenât available without native modules, passing via Ports meant you lost the ability to have dependent things in the same scope (your Elm HTML and your external JS component no longer gracefully coexist, if Elm updates the HTML, you better manually cover destroying that external JS component and having it handle cleanup).
Frankly, people looked at all these headaches and said âfuck thatâ, and begrudgingly moved on to Typescript.
Mostly leadership mess combined with breaking JS interop.
Itâs modern ML/Haskell-like language that compiles to javascript, similar idea to rescript⌠Basically you want to write frontend and want actually good language (meaning no JS or TS) to write it in. It ended up influencing lot of modern frontend stuff (lot of early react etc.)
I mean for me its "active" community whatever that means.
The advent of LLMs probably help with this a bit but at time I was thinking of learning Elm the community was in an uproar and dev seemed disinterested and adversarial to their complaints.
The most interesting thing in Elm to me was the "Elm Architecture" which looked intuitive for someone like me who is more backend dev and was less interested in React.
There were other things that have the elm arch now and seem more welcoming so I never looked back.
13
u/ppolc Jul 06 '26
Congrats on the release!! It brings back so many memories, I loved Elm back in 2019. I moved to other territories since then, but it influenced my career positively and still love it.
12
u/z500 Jul 06 '26
Holy shit, a new Elm release
2
u/lamp-town-guy Jul 07 '26
If I was doing weird stuff bingo card for this year I wouldn't even think of elm. But well done!
2
u/TankorSmash Jul 06 '26
Sounds very nice!
1
u/vancha113 Jul 06 '26
Well looks like a good time to start using elm haha, just started two weeks ago and I definitely didn't expect an update đ
0
u/Lothrazar Jul 07 '26
ok but what even IS it
0
u/Agreeable-Yogurt-487 Jul 10 '26
I'd rather use lustre at this point
26
u/[deleted] Jul 06 '26
[removed] â view removed comment