Go Experiments Explained

alexedwards.net

35 points by ingve 4 days ago


nasretdinov - 3 hours ago

I'm really looking forward to SIMD becoming standard in Go. It might sound very niche, however SIMD intrinsics (which is different from how they are available now, which is via non-inlinable assembly) allow to generate similar vector code to C intrinsics, with very little in terms of overhead due to bounds checking, etc. This allows to write programs that are highly optimised for modern CPU and get maybe 80% of performance compared to the same variant in C. This is much better than the current state where C typically outperforms Go by at least 2x/3x, and SIMD typically allows you to get 10x or more speedup already, which gives UNLIMITED POWER to Go when CPU performance is a bottleneck

losthobbies - 20 minutes ago

I bought Alex's "Let's Go Further" book a while back, I really should spend some time with it.

I want to learn Go.

jiehong - 3 hours ago

Perhaps the Go community should take a look at JEP or PEP to better document features and their life cycles and statuses overall.

ktpsns - 4 hours ago

I find the arena experiment very interesting. If done right, whole programs can be structured as as a set of arenas. I've read some things on arenas here such as https://news.ycombinator.com/item?id=37670740

yjftsjthsd-h - 5 hours ago

So, these are feature flags by any name, right?

verdverm - 2 hours ago

CUE, originally starting as a fork of Go, has the experiments capability too and even extended it to per-file scoping. This makes trying out changes like `try { a: b?.c }` in isolation really nice

Go remains my favorite language for the tooling alone (while not forgetting about so many other great features)