News for hackers. Stuff that matters.
Re:Go Optimization Guide by 9rx on Tuesday April 01, 2025 @01:56PM (#43549682)
> and if it's on by default there'd then have to be some opt-out which there isn't a good mechanism for.

Good is subjective, but the mechanism is something already implemented: https://pkg.go.dev/structs#HostLayout

Re:Go Optimization Guide by CamouflagedKiwi on Wednesday April 02, 2025 @09:51AM (#43556694)
Oh interesting, I've not encountered that before - I suppose because it is currently the default behaviour.

What I was hoping not to find (and fortunately didn't!) was one of Go's magical syntactic comments.