Repository navigation
Release v1.2.3
Compared with v1.2.2, v1.2.3 includes 74 commits across 36 files. The main improvements are:
- Interpreter performance
- Multi-result calls now write directly to extract registers, reducing temporary Tuple allocations.
- GC stack cleanup skips non-reference slots.
- Removed redundant parameter and free-variable liveness loops.
- Reduced boxing on successful bounds-check paths.
- Avoided unnecessary pointer dereferencing when ranging over constant-length arrays.
- Reduced repeated work in return-value wrapping and defer handling.
- GC and closure reliability
- Added worklist-based GC liveness propagation for nested closures.
- Keeps captured allocations alive under the experimental GC.
- Fixed GC unique-name matching for nested generic types.
- Added coverage for nested closures and nil-function initialization.
- DirectFunc support
- Added DirectFuncVal, RegisterDirectFunc, and RegisterDirectFuncFor.
- Interpreted functions can be exposed as ordinary Go functions with less reliance on reflect.MakeFunc.
- Added built-in support for func().
- Added github.com/goplus/ixgo/directfunc for common func() T signatures.
- Added typed callback support for LLGo.
- cmd/ixgo now loads directfunc by default.
- Go compatibility and runtime fixes
- Fixed defer ownership and execution for range-over-function code.
- Preserved nil interface map keys and values.
- Fixed signed bounds, three-index slicing, unsigned overflow, and related panic messages.
- Correctly distinguishes unexported methods with the same name from different packages.
- Improved generics, type parameters, and nested type handling.
- More Go standard-library tests now pass, allowing several old skips to be removed.
- Safety and engineering quality
- Made unsafe built-ins checkptr-safe, including under the race detector.
- Raised test coverage above 95% and added Codecov reporting.
- Added extensive tests for the interpreter, type system, DirectFunc, GC liveness, nil maps, ranges, and bounds checks.
Overall, v1.2.3 focuses on interpreter performance, DirectFunc extensibility, closure and GC correctness, broader Go compatibility, and stronger test coverage.
What's Changed
- ssa: lazily create Builder and reset it in SetDebug by @visualfc in #524
- Add Codecov coverage reporting by @visualfc in #525
- Make unsafe builtins checkptr-safe under -race by @visualfc in #527
- Raise test coverage above 95% by @visualfc in #526
- Make typed callbacks a registerable plugin by @visualfc in #528
- Support typed callbacks on LLGo by @visualfc in #529
- Rename typed callbacks to DirectFunc by @visualfc in #530
- xtypes: keep unexported methods from different packages distinct by @visualfc in #531
- ixgotest: drop GOROOT skips that now pass by @visualfc in #532
- interp: print unsigned overflow in bounds panic messages by @visualfc in #533
- interp: run yield-only defers on range-over-func return by @visualfc in #534
- test: drop TestDirectFuncReceiverNil so llgo test builds by @visualfc in #536
- fix: preserve nil interface map keys and values by @joeykchen in #535
- ixgotest: drop slow GOROOT skips that now pass by @visualfc in #537
- interp: skip unused *array deref for constant-len range by @visualfc in #538
- interp: attach range-over-func defers to the enclosing function by @visualfc in #539
- cmd/ixgotest: enable typeparam test by @visualfc in #540
- cmd/ixgo: import directfunc by @visualfc in #541
- interp: keep captured allocs live across experimental GC by @visualfc in #542
- interp: match gc unique names for nested generic types by @visualfc in #543
- interp: skip clearing non-reference stack slots by @visualfc in #544
- interp: write multi-result calls into extract registers by @visualfc in #545
Full Changelog: v1.2.2...v1.2.3