Skip to content

playground: load the rbgo_core Ruby interpreter (99.9 MB -> 23.1 MB, 5.7 MB gzipped) - #42

Merged
tannevaled merged 2 commits into
mainfrom
rbgo-core
Oct 12, 2026
Merged

tannevaled merged 2 commits into
mainfrom
rbgo-core

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The Ruby tab's interpreter is now go-embedded-ruby v0.6.0 built with -tags rbgo_core (go-embedded-ruby/ruby#814). That build keeps the Ruby language and its numeric stack (NDArray, FFT, Complex, Rational, Set, BigDecimal, Matrix, …) and none of the ~160 gem bindings, which the playground never calls.

rbgo.wasm (stripped) before (v0.5.0) after (v0.6.0, rbgo_core)
raw 99,921,220 23,117,327
gzip -9 ~22.3 MB 5,658,206

Changes:

  • playground/rubywasm/go.mod: go-embedded-ruby v0.5.0 -> v0.6.0. go-ndarray is not touched.
  • hugo.yml (deploy), playground.yml (proof) and browser_test.go's local fallback build add -tags rbgo_core.
  • The progress bar needs no change: layouts/_default/playground.html reads the size from os.Stat at Hugo build time.
  • The README gives the new sizes. The proof's timeout comment now says ~23 MB instead of ~100 MB.

Checked locally: TestRubyAgreesWithGo passes, with 111 Ruby programs run on the v0.6.0 core build under node.

🤖 Generated with Claude Code

tannevaled and others added 2 commits October 12, 2026 09:35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit a9a5c89 into main Oct 12, 2026
7 checks passed
@tannevaled
tannevaled deleted the rbgo-core branch October 12, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant