-
Notifications
You must be signed in to change notification settings - Fork 1
Add Ruby runtime with ruby.wasm web worker #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: na-trium-144 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
my-code | 8b04d28 | Commit Preview URL Branch Preview URL |
Oct 31 2025, 07:33 PM |
…ture Co-authored-by: na-trium-144 <[email protected]>
Co-authored-by: na-trium-144 <[email protected]>
Co-authored-by: na-trium-144 <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: na-trium-144 <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot mainブランチにRuntimeのテストを実行する機能をpushしました。mainブランチをpullし、app/terminal/page.tsx と app/terminal/tests.ts を編集しrubyのテストが実行されるようにしてください。 |
|
@copilot /public/_headers にpyodideと同様にrubyのworkerの記述を追加してください。 |
…t/add-ruby-runtime-api
Co-authored-by: na-trium-144 <[email protected]>
実装しました (43d5db4)。 変更内容:
Ruby の構文に合わせてテストコードを作成しています( |
Co-authored-by: na-trium-144 <[email protected]>
Implements Ruby language support in the terminal runtime system, mirroring the existing Python implementation using ruby.wasm.
Changes
New Ruby runtime module (
app/terminal/ruby/)RuntimeContextinterface with REPL, file execution, and syntax checkingWeb worker implementation
@ruby/wasm-wasiand@ruby/3.3-wasm-wasivia jsDelivr CDN (not bundled)Language integration
rubytoRuntimeLangtype, integratedRubyProviderinto provider treeTest integration
Features
Interrupt Support
The Ruby runtime includes full interrupt functionality that:
This allows users to interrupt long-running code while preserving the execution state from previous commands.
Usage
Ruby runtime uses same patterns as Python: mutex-based execution, output buffering, virtual filesystem for file I/O.
Note
Ruby WASM packages are loaded from CDN at runtime rather than bundled with the application, reducing bundle size by ~36MB.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.