Hacker News new | ask | show | jobs
by oDot 451 days ago
You're describing Gleam

https://gleam.run

2 comments

Can you easily embed it though? Looks like it depends on Erlang which means the answer is likely no.
It also compiles to Javascript, which runs in a lot of places (to say the least). For WebAssembly, see my other comment about Porffor
Javascript isn't the nicest thing to embed either tbh. It looks like a nice language but it's clearly not in the same space as Lua or Rhai.
Thanks looks great so far.

Also has pattern matching which I should also have mentioned in my top level post.

I use it in production[0] and it's a delight so far. When Porffor[1] is ready you could compile to WASM through JS for self-contained binaries!

[0]: https://blog.nestful.app/p/why-i-rewrote-nestful-in-gleam

[1]: https://porffor.dev/

After learning Erlang, it was painful to go back to any language which didn’t offer pattern matching. Such a great language feature.