Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The closest thing I've seen to "simple Rust" I've seen is Gleam: https://tour.gleam.run/

It's clearly very heavily inspired by Rust.



> It's clearly very heavily inspired by Rust

The creator has said it's not. It's compiler is in rust though. But Gleam is an entirety different language in terms of paradigms and target runtimes. It can't really replace rust


> The creator has said it's not.

Well that seems highly unlikely given the huge number of similarities.


Which similarities are these, that numerous other languages don't also have?


* Same names: fn, let, mut, pub, println, etc.

* Same everything-is-an-expression style. Blocks evaluate to the last expression in them.

* /// Doc comments

* ML style pattern matching

* Result type

* 'todo', 'panic'

"Whhaaa but you can find those features in other languages! You literally said ML-style you big idiot!!"

Indeed but Rust massively popularised a lot of those features (how many people actually use ML?) and the number of them makes it almost impossible that it isn't at least strongly inspired by Rust.

Interestingly they have fixed the tuple syntax issue - it's #(a, b, c) - but have copied the match pattern matching mistake where you can write what looks like a variable name and it becomes a pattern. That mistake has been known since the 70s.


I think basically everybody who designs programming languages is familiar with ML, even if it's not used in production all that often.


Then explain Go :-D


Go is a rare specimen: a programming language designed by people who are fundamentally suspicious of the field of programming language design.



I encourage you to take a look at fsharp if interested in another 'simple rust'


Can one do 3D in Gleam?


Wings3D is a 3D modeller written in Erlang so I would assume you could use Gleam for that as well given that it's the same runtime. Although I think it's probably not the best tool for the job.


On the homepage:

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

No thanks. This is DOA.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: