News for hackers. Stuff that matters.
Re:We found a bug in Go's ARM64 compiler by yvdriess on Thursday October 09, 2025 @07:34AM (#45526226)
Go users can only insert assembly wrapped in a function call. That might be safety related, I am not entirely sure.

(Well technically there is a way to inject assembly without the function call overhead. That's what https://pkg.go.dev/runtime/internal/atomic is doing. But you will need to modify the runtime and compiler toolchain for it.)

Re:We found a bug in Go's ARM64 compiler by pjmlp on Thursday October 09, 2025 @01:21PM (#45530558)
If you look the docs, they expect the developer to add specific information and use the registers in a specific way, otherwise Go will face runtime issues.

Whereas when you go over CGO, you get a marshaling layer similar to how JNI, P/Invoke work, that take care of those issues.