Tag: compilers
All the articles with the tag "compilers".
Go escape analysis: reading -gcflags=-m on a small game server
Which Go values the compiler moves to the heap, and the exact message it prints for each case: returned pointers, maps, goroutines, fmt.Println, callbacks in Go 1.26 vs 1.27, 64 KB and 128 KB size limits, and the 32-byte buffer for variable-size make. With benchmarks and a heap profile.
An 11-year-old hole in the Rust borrow checker, reproduced on stable, nightly and Rust 1.4
Issue #164250 shows safe Rust with no unsafe block that reads a String after it was freed. Here is the program, the one-line change the compiler rejects, AddressSanitizer's verdict, a run on Rust 1.4.0 from 2015 in Docker, and what the open fix changes.