-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
The playground's t-ruby-wasm integration has issues that need to be addressed for a reliable user experience.
Current Architecture
The playground uses CDN-loaded WASM files:
- T-Ruby library:
@t-ruby/wasm@0.0.8from jsdelivr - Ruby WASM runtime:
@ruby/wasm-wasi@2.7.1 - Ruby binary:
@ruby/3.4-wasm-wasi@2.7.1
Issues to Fix
- Network failures - No retry logic for CDN fetch failures
- Timeout issues - 30-second compile timeout may be too tight
- Memory management - No cleanup of loaded files between compiles
- Error handling - Generic error messages need improvement
- Worker lifecycle - No cleanup on component unmount
Files Affected
src/lib/ruby-wasm.ts- WASM loader and worker managementsrc/pages/playground.tsx- React component
Acceptance Criteria
- Playground loads reliably
- Compilation works correctly
- Error messages are user-friendly
- Verification tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done