r/elm • • 20h ago

Jorn 1.0: write your UI once in Elm, run it in the browser, on the server, or as a static site

16 Upvotes

Hi all! I've just released Jorn 1.0 (bazylhorsey/jorn on the package site).
Jorn has its own Element type: a virtual DOM that's plain Elm data, so view can be diffed anywhere. That lets one TEA program run three ways:
In the browser, with a small patcher script applying the diff.
On a server (Node, Deno or Bun), one instance per page, streaming JSON patches over websockets, SSE or polling. Effect.call lets update ask your server code for things like a database query, so there's no API layer. If you know Gleam's Lustre server components, it's the same idea, for Elm.
As a static site: jorn build renders every route to HTML and the app hydrates it. My portfolio is built this way: https://bazylhorsey.github.io
No kernel code and no fork. The Elm side is an ordinary package, and the TypeScript only covers the DOM patcher, server runtime and CLI. Jorn.Dev.Query and Jorn.Dev.Simulate let you test views and whole apps with elm-test.
The honest limits: it can't render elm/html, so elm-ui and elm-css don't work with it, and the time-travel debugger only works with Browser programs.
Repo: https://github.com/bazylhorsey/jorn I'd love feedback, especially on the API.


r/elm • • 4d ago

Dragging SQL into the '90s

Thumbnail youtube.com
39 Upvotes

r/elm • • 17d ago

I'm as of now completely off the AI bandwagon (if I was ever remotely on it) · cekrem.github.io

Thumbnail cekrem.github.io
20 Upvotes

r/elm • • 22d ago

I made a website that showcases the usage of elm architecture in other languages 😃

Thumbnail rinn7e.com
63 Upvotes

r/elm • • Nov 03 '26

Deriving the Y-combinator

Thumbnail blog.tinyinterpreters.dev
12 Upvotes

r/elm • • Oct 27 '26

Elm Town 91 – Culture, codegen and (web) components with Joe Thel

22 Upvotes

Joe Thel cares for web components (custom elements), elm-codegen, and a culture balancing boring and novel technologies. We wade into the 2025 AI waters, but walk out before we drown.

Elm Town 91 – Culture, codegen and (web) components with Joe Thel:


r/elm • • Oct 13 '26

elm-ui scrollbars issue finally fixed

16 Upvotes

I have always had an issue with elm-ui and it's scrollbars. I wanted it to clip an element to the appropriate size and have the rest be available with a scrollbar. this worked fine if i set a size manually but whenever i used `height fill` it would become bigger than it's parent element.

i've finally found a solution:
use ` height <| minimum 0 fill`
It turns out that (especially in chrome) it does not assume that an element can be smaller than the sum of its parts. which is exactly what we want for scrollbars.

this took me a few years to figure out... I hope someone with the same issue finds this post.


r/elm • • Oct 13 '26

Recursion without Recursive Bindings

Thumbnail blog.tinyinterpreters.dev
8 Upvotes

I explain how to solve the challenge from my previous post and then we apply the idea to several more recursive functions to see the pattern. It begins our exploration into a certain famous combinator.


r/elm • • Oct 07 '26

Melbourne Compose - Functional Programming inperson Meetup. Thurs Oct 15. Ben Hutchison on "VDOM or Not VDOM"

Thumbnail luma.com
11 Upvotes

Melbourne Compose - functional programming in-person meetup.

Next monthly meeting is Thursday Oct 15, 6-8pm.

Ben Hutchison is presenting on:

VDOM or not VDOM? A survey of incremental UI updates in React, Elm, Svelte, SolidJS and Laminar

See luma event for further details. https://luma.com/tifloa9m


r/elm • • Oct 05 '26

Another Step Towards Elm 1.0

Thumbnail elm-lang.org
97 Upvotes

r/elm • • Sep 29 '26

FUN: Making Curried Functions Work in the Presence of Free Variables

Thumbnail blog.tinyinterpreters.dev
5 Upvotes

We pick up where we left off with FUN to “fix” curried functions so they work the way we expected. We end up rediscovering closures and learning about its history in relation to SECD, LISP, and Scheme.


r/elm • • Sep 28 '26

We rewrote the Elm compiler in Rust — now we’d like to find where it breaks

15 Upvotes

For the past few days we’ve been experimenting with something slightly unreasonable: rewriting the Elm compiler in Rust.

It now compiles our real production Elm codebase — 677 modules — and we’ve reached the point where testing it only against our own code isn’t very useful anymore.

So I’d love to throw it at actual Elm projects.
The interesting part isn’t really the performance (although cold builds are ~14× faster on our codebase). It’s compatibility.
We built the new compiler by differential-testing it against Elm 0.19.1: same project, same inputs, both compilers, then compare the results. That already uncovered a few behaviours we didn’t expect.

What I’d really like to know is: what weird Elm code should we test?

Old projects, unusual package combinations, nasty type errors, generated Elm, huge modules — anything likely to break a compiler.
If something compiles with official Elm and doesn’t compile with ours, I consider that our bug.
The compiler is fully open source (BSD-3):
github.com/Spottt/elm-compiler
Happy to dig into any incompatibility people find.


r/elm • • Sep 24 '26

FUN: First-Class Functions, Currying, and a Surprise

Thumbnail blog.tinyinterpreters.dev
10 Upvotes

r/elm • • Sep 16 '26

Row-Level Security with Elm and Acadia

Thumbnail acadia.engineering
44 Upvotes

r/elm • • Sep 11 '26

Evan talks about programming languages

36 Upvotes

r/elm • • Sep 11 '26

LET: Adding Local Bindings to a Tiny Interpreter in Elm

Thumbnail blog.tinyinterpreters.dev
11 Upvotes

LET allows you to introduce local bindings and use them to name intermediate results.

I’m trying out a new format with this post. I introduce the feature, explain its intended semantics, and give you examples to test your understanding before walking through how I implemented it. There’s also a place to pause and try implementing it yourself.


r/elm • • Sep 09 '26

Elm Simple Server

Thumbnail github.com
61 Upvotes

r/elm • • Sep 04 '26

VAR: Adding Variables and Environments to a Tiny Interpreter in Elm

Thumbnail blog.tinyinterpreters.dev
9 Upvotes

VAR allows us to refer to values by name.


r/elm • • Aug 28 '26

IF: Adding Conditional Expressions to a Tiny Interpreter in Elm

Thumbnail blog.tinyinterpreters.dev
6 Upvotes

ZERO gave our interpreter Boolean values. IF finally gives us something useful to do with them.


r/elm • • Aug 26 '26

Problem with concurrent linter fixes

Thumbnail jfmengels.net
4 Upvotes

r/elm • • Aug 25 '26

`bun-plugin-elm`: import { Elm } from "./Main.elm" (Made by Hand, btw) · cekrem.github.io

Thumbnail cekrem.github.io
10 Upvotes

r/elm • • Aug 23 '26

ZERO: Adding Booleans and Runtime Type Errors to a Tiny Interpreter in Elm

Thumbnail blog.tinyinterpreters.dev
8 Upvotes

ZERO adds a zero check predicate. This introduces Boolean values to the language which makes runtime type errors a possibility. Hence, a successful parse no longer guarantees a successful execution.


r/elm • • Aug 21 '26

Bun and Elm (: r)Are Friends · cekrem.github.io

Thumbnail cekrem.github.io
15 Upvotes

r/elm • • Aug 20 '26

GitHub - cekrem/elm-bun: A minimal and nice starter with Elm & Tailwind featuring `elm-watch` with true Elm HMR. Using `bun` for bundling, building and dev server.

Thumbnail github.com
23 Upvotes