News for hackers. Stuff that matters.
Re:Hacking the Golang Runtime with Genereics by czx4f4bd on Wednesday December 21, 2022 @09:04AM (#34080851)
You can allocate memory manually in Go and manage it yourself using Go's `unsafe` package, so there's an escape route once Go's GC became a limiting factor. Here's a blog post about it in the context of Dgraph: https://dgraph.io/blog/post/manual-memory-management-golang-...
Re:Hacking the Golang Runtime with Genereics by notwokeno on Wednesday December 21, 2022 @09:14AM (#34080961)
The real issue with go is (or was, I haven't messed with it for a few years) its un-optimized goroutine scheduler that makes channels slow if you start using them a lot.
Re:Hacking the Golang Runtime with Genereics by flagsrule on Wednesday December 21, 2022 @09:40AM (#34081265)
Yes, refactoring from channels to atomic package can easily give 10x speedup. Sometimes we have to communicate by sharing memory :)