v1.5.0 - apollovm: 0.1.40#7
Merged
Merged
Conversation
Update to ApolloVM 0.1.40 (folding in 0.1.38 and 0.1.39) and grow the playground with examples for the new features. Every example is verified to run: interpreted examples through ApolloVM, and the new Wasm examples executed end-to-end in the browser via the Wasm runtime. New examples: - C# lambdas (0.1.38 C# lambda parsing). - switch/case (Dart/Java11/JS/TS/C#), Kotlin `when`, Python `match` (0.1.38). - do/while (Dart/Kotlin) and Lua `repeat ... until` (0.1.38). - Bitwise: Dart/Java11/C# (& | ^ << >> ~), Kotlin (and/or/xor/shl/shr), Lua (& | ~ << >>) (0.1.38; Kotlin/Lua added 0.1.40). - Enum runtime value access: Dart/Java11/Kotlin/Python (ordinal) and C# (explicit values) (0.1.38 declarations + 0.1.39 value access). - Generics: Box<T> for Dart/Java11/Kotlin/TypeScript/C# (0.1.39). - Wasm: switch/case, bit count and do/while, exercising the new 0.1.40 Wasm control-flow / bitwise support. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Update to ApolloVM 0.1.40 (folding in 0.1.38 and 0.1.39) and grow the playground with examples for the new language features.
Every new example is verified to run: interpreted examples through ApolloVM, and the new Wasm examples executed end-to-end in the browser via the Wasm runtime (results checked:
classify(7)→200,bitCount(13)→3,sumTo(5)→15).Upstream changes covered
switch/case,do/while,break/continue, bitwise operators, C# lambda parsing, enum declarations.switch/case+do/while+ bitwise; Kotlin/Lua bitwise; Kotlin member visibility.New "Example" picker entries
Funcdelegate).2.3.& | ^ << >> ~), Kotlin (and/or/xor/shl/shr), Lua (& | ~ << >>). Run with12, 10(Lua uses literals).10.🤖 Generated with Claude Code