this post was submitted on 24 Nov 2024
78 points (97.6% liked)

Ask Lemmy

27036 readers
1105 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

Title. I'm looking for a concrete answer for this.

you are viewing a single comment's thread
view the rest of the comments
[–] 1984@lemmy.today 24 points 2 days ago* (last edited 2 days ago) (3 children)

None of the languages give the same runtime guarantees as Rust without having a garbage collector.

I think people in this thread are putting Rust in the same bucket as garbage-collecting languages, but there is a performance cost to garbage collecting. Rust doesn't have a garbage collector and this is why Rust is very fast and still can guarantee a lot of runtime errors won't happen (unlike in C, c++ etc).

But it's really complicated to write code in Rust. Not the basic code but if you have lifetimes on things or use async code and want to change it, you may have to spend hours reworking your entire program.

[–] GBU_28@lemm.ee 14 points 2 days ago (1 children)

Agree. I get very grumpy refactoring async rust. It's the only time at the point in my career that I think "what the fuck I don't know anything about anything I think I'm a lizard"

[–] sbv@sh.itjust.works 10 points 2 days ago

Async Rust has a long way to go. Eventually someone will figure out a decent abstraction. That'll be good.

[–] leisesprecher@feddit.org 4 points 2 days ago

It would be really great to have some "Python layer" on top of Rust.

My current work is mostly data mangling web services (Java/Spring Boot) and there's simply no way I could convince anyone (including myself) that Rust is a viable alternative in terms of development speed.

[–] akkajdh999@programming.dev 6 points 2 days ago

None of the languages give the same runtime guarantees as Rust without having a garbage collector.

If you only count mature languages. There's a lot of small immature languages. For example Inko.