3 ms·
The closest thing I've seen to "simple Rust" I've seen is Gleam: https://tour.gleam.run/ https://tour.gleam.run/ It's clearly very heavily inspired by Rust.
by IshKebab 1y ago
The closest thing I've seen to "simple Rust" I've seen is Gleam: https://tour.gleam.run/ https://tour.gleam.run/
It's clearly very heavily inspired by Rust.
- raphinou 1y agoI encourage you to take a look at fsharp if interested in another 'simple rust'
- akkad33 1y ago> 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
- IshKebab 1y ago> The creator has said it's not. Well that seems highly unlikely given the huge number of similarities.
- ameliaquining 1y agoWhich similarities are these, that numerous other languages don't also have?
- IshKebab 1y ago* 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.
- ameliaquining 1y agoI think basically everybody who designs programming languages is familiar with ML, even if it's not used in production all that often.
- IshKebab 1y agoThen explain Go :-D
- ameliaquining 1y agoGo is a rare specimen: a programming language designed by people who are fundamentally suspicious of the field of programming language design.
- akkad33 1y agohttps://news.ycombinator.com/item?id=44815405#44816592 https://news.ycombinator.com/item?id=44815405#44816592
- veidelis 1y agoCan one do 3D in Gleam?
- dysoco 1y agoWings3D 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.
- anonfordays 1y agoOn the homepage: >Black lives matter. Trans rights are human rights. No nazi bullsh*t. No thanks. This is DOA.