News for hackers. Stuff that matters.

Ask HN: Isn't there a lightweight and popular Rust?

With all these endless debates about Rust and Go, it seems that a lot of software engineers really want a programming language that is as expressive as Rust with its sum types and matching, but also easier in that there is garbage collection, a rich standard library, like in Go.

There are OCaml and F#, but I still see those are very much niche languages with pretty small communities.

( 4 comments | 4 points | on HN )
Re:Ask HN: Isn't there a lightweight and popular Rust? by CharlieDigital on Tuesday November 19, 2024 @02:32PM (#42187210)

    > ...it seems that a lot of software engineers really want
Software engineers may want it, but management wants elasticity in the human resource supply.

Therefore, teams choose JavaScript, Python, Java, and C#.

Re:Ask HN: Isn't there a lightweight and popular Rust? by dondraper36 on Tuesday November 19, 2024 @02:33PM (#42187216)
Yes, that make sense, of course. A beautiful type system doesn't help businesses make money after all.
Re:Ask HN: Isn't there a lightweight and popular Rust? by wezm on Tuesday November 19, 2024 @06:20PM (#42189129)
Might be worth giving these posts a read when thinking about a lightweight Rust:

- https://without.boats/blog/notes-on-a-smaller-rust/ - https://without.boats/blog/revisiting-a-smaller-rust/

It's also niche, but https://gleam.run/ might be a candidate alternate language, depending on your use-case.

Re:Ask HN: Isn't there a lightweight and popular Rust? by katesterling10 on Monday November 25, 2024 @10:37PM (#42242358)
Yeah, finding that balance is tough. Sticking w/ Rust tho, tools like Rig.rs make building stuff like LLM workflows pretty smooth. Works well for modular, scalable setups—might be worth checking out.