News for hackers. Stuff that matters.
Re:Sustainability with Rust by igouy on Saturday February 12, 2022 @01:29PM (#30314999)
> I'm not sure what the right way to do these…

In which case, maybe what you see is as good as you'll get.

> … some languages get to preallocate…

Here's Go using a library pool —

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re:Sustainability with Rust by sirwhinesalot on Saturday February 12, 2022 @05:02PM (#30316971)
The sync library is part of Go's standard library and is meant to allow safe concurrent access by multiple goroutines. It's pretty idiomatic Go!
Re:Sustainability with Rust by igouy on Saturday February 12, 2022 @05:55PM (#30317202)
Yes — so "allowed to preallocate memory" ?