Ancestors

Written by Giooschi@lemmy.world on 2024-10-27 at 15:26

A comparison of Rust's borrow checker to the one in C#

https://lemmy.world/post/21334791

=> More informations about this toot | More toots from Giooschi@lemmy.world

Written by solrize@lemmy.world on 2024-10-27 at 16:14

That is interesting and I didn’t know C# had anything like that. I saw another article recently saying at some point we were likely to see Rust get garbage collection.

=> More informations about this toot | More toots from solrize@lemmy.world

Toot

Written by arendjr@programming.dev on 2024-10-27 at 17:24

Would you have a link to that? I know there are many third-party garbage collectors for Rust, but if there’s something semi-official being proposed or prototyped I’d be most curious :)

=> More informations about this toot | More toots from arendjr@programming.dev

Descendants

Written by solrize@lemmy.world on 2024-10-27 at 18:32

It’s not official or semi-official, it was just someone (a well known Haskell guru if that matters) speculating in a blog post.

chrisdone.com/posts/rust/

=> More informations about this toot | More toots from solrize@lemmy.world

Written by nous@programming.dev on 2024-10-28 at 00:41

So someone that is not involved in rust at all and does not seem to like the language thinks it will get a GC at some point? That is not a very credible source for such a statement.

Rust is very unlikely to see an official GC anytime soon if ever. There are zero signs it will ever get one. There was a lot of serious talk about it before 1.0 days - but never made it into the language. Similar to green threads which was a feature of the language pre 1.0 days but dropped before the 1.0 release. Rust really wants to have a no required runtime and leans heavy on the zero-cost abstractions for things. Which a GC would impose on the language.

=> More informations about this toot | More toots from nous@programming.dev

Written by solrize@lemmy.world on 2024-10-28 at 01:35

It sounds like he uses Rust and has some issues with it. IDK about green threads but Ada has had tasks (implemented in gnat with posix threads) from the beginning. If you pin a task to a CPU core and don’t use gc in it, that can handle your realtime stuff. Or these days, it’s becoming more common to use an fpga for cycle level timing control.

Note that traditional Forth cooperative multitaskers used a few hundred bytes of code or even less. This stuff doesn’t have to be bloaty.

=> More informations about this toot | More toots from solrize@lemmy.world

Written by nous@programming.dev on 2024-10-28 at 09:43

Could, could, could. You could do a lot of things. Rust had a gc and it [was removed] (…github.io/…/2013-06-02-removing-garbage-collecti…) so they have already explored this area and are very unlikely to do so again unless there is a big need for it that libraries cannot solve. Which I have not seen anyone that actually uses the language a lot see the need for.

Not like how async was talked about - that required a lot if discussion and tests in libraries before it was added to the language. GC dies not have anywhere near as many people pushing for it, they only noise I see is people on the outside thinking it would be nice with no details on how it might work in the language.

=> More informations about this toot | More toots from nous@programming.dev

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113380548528228026
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
290.877218 milliseconds
Gemini-to-HTML Time
1.721496 milliseconds

This content has been proxied by September (ba2dc).