Upgrade Shen kernel to 41.1 - #51
Merged
Merged
Conversation
Refresh the bundled Shen sources and generated Go kernel so the port starts from the 41.1 initialise/repl entry points. Made-with: Cursor
tiancaiamao
approved these changes
Jun 8, 2026
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.
Summary
Upgrade the bundled Shen kernel from S39.2 to S41.1. This refreshes the
Shen sources and the generated Go kernel so the port starts from the 41.1
initialise/replentry points. The test programs move fromS39/Test Programs/tokernel/tests/.The REPL banner now reports
version: S41.1.Testing
go build ./...andgo test ./...pass.kernel/tests/programs, e.g.(prime*? 1000003)→trueand(cartesian-product [1 2 3] [4 5])→[[1 4] [1 5] [2 4] [2 5] [3 4] [3 5]].Relationship to the bytecode-VM PR
This is independent of the bytecode-VM compiler PR (#50): that PR only
touches
kl/, while this one only touches the generated kernel(
cmd/shen/), the bundled sources, and the test programs — zero fileoverlap, so the two can merge in either order without conflict.
I've verified the two compose: with both applied, the 41.1 kernel compiles
through the bytecode VM, loads cleanly, and the
kernel/tests/programsabove produce the same correct results.
🤖 Generated with Claude Code