Yes, I read or interpreted that wrong at first.
Formerly u/CanadaPlus101 on Reddit.
- 2 Posts
- 2.73K Comments
Yeah, it might be better, I don’t actually know. It’s not as novel as OP maybe thinks it is, though.
CanadaPlus@lemmy.sdf.orgto Asklemmy@lemmy.ml•What tv shows are set in the Medieval Dark Age(s)?1·12 hours agoMethinks you were either looking at a century BC by accident, or specifically the 7th century. Although it’s China stuff, not SE Asia necessarily.
Did you think rust doesn’t free up memory for you? That would be the biggest memory leak in history! No! Rust does reference counting, it just makes sure that that number is always one! What did you think the borrow checker was for?
There is no runtime garbage collection in Rust. Given a legal program, it can detect where free-type instructions are needed at compile time, and adds them. From there on it works like C, but with no memory leaks or errors because machines are good at being exactly correct. If you want to say that’s just a reference counting algorithm that’s so simple it’s not there, sure, I guess you can do that.
Roc has runtime overhead to do garbage collection, it says so right on their own page. It might be a post-Rust language but this feels like the same conversation I’ve had about D and… I can’t even remember now. Maybe Roc is a cool, innovative language. It’s new to me. But, it doesn’t sound like it’s doing anything fundamentally new on that specific part.
Edit: Reading your follow up to the other person, it sounds like it has both a Rust-style compile time algorithm of some sort, and then (reference count-based) garbage collection at run time for parts of the program that would just be illegal in Rust.
It’s still mentioned as one of the main approaches to garbage collection in the garbage collection Wikipedia article.
Statistically, there might be somebody. And there’s a small crowd worth of people who possibly were, to within the minute.
Oh, you just mean it’s a kind of garbage collection that’s lighter on pauses. Sorry, I’ve had the “my pre-Rust pet language already does what Rust does” conversation on here too many times.
That sounds pretty great. My impression is that relatively little code actually runs that often.
but with none of the footguns of manual memory management, no garbage collection pauses, but yet also no evil stepparent style borrow checker to be beaten by.
That part sounds implausible, though. What kind of memory management are they doing?
CanadaPlus@lemmy.sdf.orgto Asklemmy@lemmy.ml•What kind of things can you do in Minecraft by building computers out of that redstone stuff?10·5 days agoI feel like you need to give more details about what you mean by “do”. It’s a Turing complete system, but if you mean to advance gameplay objectives, that’s a more complicated question. Especially because it’s a fairly open-ended game in the first place.
This being Lemmy, everyone is going straight to computer science.
CanadaPlus@lemmy.sdf.orgto Asklemmy@lemmy.ml•What kind of things can you do in Minecraft by building computers out of that redstone stuff?3·5 days agoAnd by limited, we mean like, on the order of Hertz probably.
Man, these pretty much need historical annotations at this point.
CanadaPlus@lemmy.sdf.orgto Programmer Humor@programming.dev•When people encounter Lisp syntax for the first time4·7 days agoAnd then there’s Haskell which takes the whole thing a step further still.
Wait, what works in Haskell that doesn’t in Lisp, exactly? Are the spaces not just function composition?
Well, I don’t know about okay. I’d give it a pretty shit review actually.
Dope! So glad for you.
Trying to get a bit stronger and more ready for whatever awful thing every day. Activism with political parties and politicians that can potentially win, although that still feels like trying to piss out a forest fire.
Sure, except you get all the same issues with countries not getting along, and now something the federal government could handle, like a space program, has to either be done redundantly by all the states separately which is wasteful and might render the whole thing impractical, or in some politicised clusterfuck of an international organisation.
There’s a reason the trend has been towards less sovereign countries and borders over time.
CanadaPlus@lemmy.sdf.orgto Asklemmy@lemmy.ml•would you rather 100 upvotes or 10 replies?6·14 days agoConstructive replies are much more fun, so probably that, but if hundreds of people read what I wrote that does make it feel like it was worth the time to write. Especially if some devoted research or math went into it.
If there’s 100 upvotes on something socially relevant I want tens of downvotes. If it’s all upvotes you’re preaching to the choir, and that’s a circlejerking waste of time.
CanadaPlus@lemmy.sdf.orgto Asklemmy@lemmy.ml•would you rather 100 upvotes or 10 replies?4·14 days agoLiked.
(:
It says some overheads. It’s different overheads, because Rust does not have reference counting garbage collection, even when safe.
Either you should go back and read what I said about reference counting being a runtime garbage collecting algorithm, or I think we’re just done. Why say more if it’s ignored anyway?
I don’t think I’m the zealot here.