feat: upgrade fink to v0.69.0 and adopt JS interop host shim#23
Merged
Conversation
Switch the playground's WASM target from the Rust interop to the new JS interop landed in fink v0.69.0. Adopt upstream fink.js as the host shim instead of hand-rolling host imports. - crate: pin fink = v0.69.0; compile() now uses to_wasm_for(..., Interop::Js). - crate: handle new NodeKind::PostfixOp in token collection and AST serialization. - runner: rewrite on top of fink.js init_wasm. Capture stdout/stderr via host overrides; if the imported module exports `main`, call it with 'playground'; otherwise surface the module's last expression. - runner: split timing into four buckets (compile / init / import / run). - main: render stdout/stderr panels and the timing breakdown. - build.mjs: vendor fink.js from the cargo-resolved fink source so the shim always matches the pinned crate. - gitignore: add src/fink.js (vendored at build time); collapse .claude patterns into a single .claude rule. - Makefile: make clean removes src/fink.js.
|
This PR will release v1.16.0 |
|
🎉 This PR is included in version 1.16.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
fink.jsas the host shim (vendored at build time from the cargo-resolved fink source). Drops hand-rolled host imports and thestd/strempty-$ByteArraybootstrap hack.main('playground')if the module exports it, and reports four timing buckets (compile / init / import / run).NodeKind::PostfixOpvariant added by fink's open-end-range feature.Test plan
make buildclean.mainis invoked correctly.Notes
host_readis a no-op stub; programs reading stdin will park.