alt.hn

6/2/2026 at 10:16:20 PM

Gleam v1.17.0

https://gleam.run/news/single-file-gleam-beam-programs-with-escript/

by figbert

6/3/2026 at 1:46:44 AM

Huh, I didn't know how much I needed a "todo" type until now. So often I'll be defining a packet sumtype, or a collection, and not have created the type yet, so just use ubyte, or Object, or whatever. Having an explicit "todo" type would be amazing in other languages.

by Defletter

6/3/2026 at 2:38:53 PM

Rust has the todo!() macro but no todo type. I use todo! constantly and would probably make heavy use of a todo type as well...

by packetlost

6/3/2026 at 5:53:00 PM

Todo type in rust will be a never type. Eg thing which exit or panic returns

by 0xdeafbeef

6/2/2026 at 10:51:25 PM

Lovely to see support for building escripts in the compiler. I’d be excited to see that go one step further and provide something like the deno/bun/node compile feature, allowing one to export a binary that includes the BEAM and compiled code in a single file. I know some people are working on tools like that already and it’s not trivial, but having it in the compiler would be really neat.

by __jonas

6/2/2026 at 11:55:26 PM

Every time I read one of these I’m impressed by the language server work. Gleam’s DX is so good.

by trescenzi

6/3/2026 at 10:55:42 AM

but do they oppose nazism? This is a key factor in choosing a programming language

by 3stacks

6/3/2026 at 11:36:10 AM

I don’t know how it relate to the responded comment, nor what’s the level a sarcasm used, but they do, it’s on the footer of every pages.

> Black lives matter. Trans rights are human rights. No nazi bullsh*t.

Is it enforced? I just hope so.

by batisteo

6/3/2026 at 5:13:01 AM

Stupid question but does the Gleam website run on Gleam?

by ofrzeta

6/3/2026 at 12:58:30 AM

every time I use Gleam I feel happy

by sltr

6/3/2026 at 2:59:57 AM

Is there any AOT solution for running BEAM?

by stevefan1999

6/3/2026 at 4:25:24 PM

Compile to js target and leverage v8 compiler cache? I dunno, just riffing. You’re probably BEAMing vs js runtime-ing for server workloads, but periodically i compile to node and do stuff

by cdaringe

6/3/2026 at 6:33:52 AM

The BEAM JIT is all done when .beam files are loaded. It's a runtime JIT, because you can always load new code, but it's not a tracing JIT and it's designed to be pretty fast to do it while loading. For most applications of BEAM, I think the time spent loading code, including JIT, is probably immaterial.

If you have a special need, I haven't seen anyone do it, but I would expect it wouldn't be that hard to run the jit ahead of time. I haven't fully studied it, but I think the expectation is the output from jit should be pretty much the same every run, so it seems doable to generate it once and load many times.

by toast0

6/2/2026 at 10:42:33 PM

None of the links on your website footer work?

by sunjester

6/3/2026 at 2:45:15 AM

Hmm they all seem to be working for me

by m8s

6/2/2026 at 10:33:17 PM

amazing!

by J7jKW2AAsgXhWm