feat: add hidden closure environment ABI - #96
Open
cpunion wants to merge 53 commits into
Open
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
LLGo baseline benchmarks
Program measurements
Core language and compiler benchmarks
Compared only with the latest matching platform in the main series. Warning
|
cpunion
force-pushed
the
codex/closure-env-2170-v2
branch
4 times, most recently
from
July 31, 2026 18:13
e0c4796 to
f1cd563
Compare
cpunion
force-pushed
the
codex/closure-env-2170-v2
branch
2 times, most recently
from
July 31, 2026 19:53
a008bd1 to
2b7837e
Compare
…skeleton # Conflicts: # cl/_testmeta/ifaceuse_basic/meta-expect.txt # cl/_testmeta/interface_anyonmous/meta-expect.txt # cl/_testmeta/interface_generic/meta-expect.txt # cl/_testmeta/interface_named/meta-expect.txt # cl/_testmeta/reflect_dynamic/meta-expect.txt # cl/_testmeta/reflect_named/meta-expect.txt # cl/_testmeta/typechildren_basic/meta-expect.txt
cpunion
force-pushed
the
codex/closure-env-2170-v2
branch
2 times, most recently
from
August 1, 2026 09:48
46155aa to
f49fac7
Compare
cpunion
force-pushed
the
codex/closure-env-2170-v2
branch
2 times, most recently
from
August 1, 2026 11:29
3912ebe to
eca0053
Compare
…olation-02-compiler-state compiler: isolate per-invocation frontend state
cpunion
force-pushed
the
codex/closure-env-2170-v2
branch
from
August 1, 2026 16:41
a009e26 to
5b379e0
Compare
…skeleton build: Go Linktime-like Unreachable Method Pruning
…o-pages ci: publish benchmarks in repository Pages
cpunion
force-pushed
the
codex/closure-env-2170-v2
branch
from
August 2, 2026 18:09
b407f0e to
572a29f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fork-side CI validation for xgo-dev/llgo#2170. The upstream draft is temporarily closed and will be reopened after this matrix is green.
Summary
llssa.Functionnest/swiftselfon validated native targets and exact typed env/no-env edges on Wasm and portable fallbacks__llgo_stubsret, callback-wrapper, and C ABI rewritesffi_call_gopath and a final-hop fallback; no libffi rebuild is required{fn, env}with nil meaning no-env; box nil/typed-nil method values and elide provably zero-sized lexical environmentsCoverage
The matrix covers nest, swiftself, and Wasm explicit transport for plain Go/C functions, captured and required-empty environments, zero-sized source captures, nil receiver and interface method values, direct interface invocation, reflect/libffi, variadics, aggregates, O2, and LTO.
Local validation includes full
ssa,internal/abi,internal/cabi,internal/build,_testrt,_testgo,_testlibgo, and metadata groups. The ARM/AArch64 final-hop assembly was cross-compiled and inspected; nested reflect calls with stack integer/FP arguments pass.Same-machine A/B on Apple M4 Max:
printlnexecutable: -3.6%;fmtprintf: -20.9%