Repository navigation
Xo 0.55.1 is a fix release on 0.55.0. It fixes the xo debug regressions on Windows amd64 that 0.55.0 listed as a known issue, adds xo debug on Windows arm64 and XO_TRACE on Windows and FreeBSD, and fixes build cache, LLVM backend, std/sqlite, std/http and profiling bugs. Nothing that compiled with 0.55.0 stops compiling.
Coming in 0.56
use go and the Go backend are being retired. Xo 0.56 removes use go, --hybrid and the Go binding generator; the Go backend follows in a later release. A program that calls a Go package ports it to Xo (the standard library covers what most did) or calls it as a separate process or over the network. use c stays.
Fixes
xo debugon Windows amd64 (0.55.0's known issue, task #681): frames, breakpoints andtasksname a function the devirtualization pass copied by its source name (main.worker, notmain.worker#once; task #597), and variables of a loop the compiler split for register allocation show their values again instead of<optimized out>(task #603; linux/amd64 had it too).- std/http (task #671): a program whose scope ended right after a request to its own HTTP/2 server sometimes ran 30 s longer (std/grpcreflect showed it as a stall).
- Windows: SQLite's math functions link and run on windows/amd64 and windows/arm64 (task #621); a program using
os.secretsDpapi links (task #597); a runtime helper with a frame over 4 KiB no longer segfaults (task #597);--backend=llvmon windows/arm64 links again (task #605);XO_PROF=cputakes its samples at the requested rate (task #646);xo test --since C:\xruns only the tests the change reaches (task #605). - macOS on Intel (LLVM backend): a fault in a debug build prints its report and exits 70 instead of dying with SIGSEGV (task #650);
xo dumpshows the line a blocked task waits at (task #649). - Run cache on macOS (LLVM backend): an unchanged
xo build,xo runorxo testis a cache hit again (task #649). - Build cache (tasks #573, #574, #584): three more cases where a warm build rebuilt from source ("did not replay", "built from source").
- Heap profile (task #658):
XO_PROF=heap XO_PROF_HEAP_RATE=1 xo buildof a large program no longer dies with SIGSEGV after writing its profile. xo build --raceon macOS (task #608): building again into another directory puts the ThreadSanitizer runtime beside that binary too.- Files: a sub
Fsand wasm32 refuse"a.txt/"as not a directory, as nativeos.fsdoes (tasks #597, #616, #629). - std/sqlite: an INTEGER in a
BOOLEANcolumn reads as a Boolean, as mattn/go-sqlite3. - Go backend (task #580):
1e308 * Float(12)builds and gives+Inf. xo bench --abon Linux (task #645): a side keeps theXO_STDit was given.
Added
xo debugon Windows arm64 (decision 0253, task #634).XO_TRACErecords on windows/amd64, windows/arm64, freebsd/amd64 and freebsd/arm64 (task #635).Cmd.new_group()andChild.kill_group(signal)start and signal a child's whole process group (decision 0739, task #660; not on Windows).- std/sqlite has FTS5 full text search, the percentile aggregates and the math functions on every target; the Linux archives ship its prebuilt object, so a first build no longer compiles sqlite3.c (task #622).
- Faster LLVM builds of very large functions (tasks #586, #590): a 1,500 statement function from 108 s to 4 s on an M-series Mac.
- Opt in,
XO_SEPCOMP_LLVM=1(decision 0738, task #607):--backend=llvmcompiles only the program's own code and links std from cached objects.
Known issues
--racememory grows per task spawned, as in Go's-race.- windows/arm64 has no
--race(ThreadSanitizer has no windows/aarch64 runtime). - A C sleep can end early on arm64 when the scheduler's preemption signal lands in it (the call returns EINTR; about 1 in 80 short sleeps in one test run). Since 0.53; fix planned for 0.55.2 (task #697).
CHANGELOG.md lists every change.