Commit 7661757
Add Live Interpreter page at /repl/ with card on the home page
A public-facing Io REPL in the style of dekorte.com/projects/aiapps:
chat-like transcript (input echoes right, VM output left, exceptions
in error bubbles), one-click examples including live DOM manipulation
via the JS bridge, and a collapsible How It Works section.
The page reuses browser/io.js and io_browser.wasm — io.js gains a
window.IO_WASM_URL override so pages outside browser/ can locate the
wasm. io_browser.c now tracks top-level exceptions with a flag (set
by the exception callback) so do_eval can return status 1; previously
IoState_tryToPerform cleared errorRaised after printing, so uncaught
exceptions reported success and rendered as normal results.
The Pages workflow installs wasi-sdk and runs `make browser` so the
gitignored wasm is built for deploys, and repl/browser/Links paths now
trigger it. Home page card added to _index.json; static HTML
regenerated (the prefetch blob embeds the root index, hence the
sweep across generated pages).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 5c987b4 commit 7661757
105 files changed
Lines changed: 366 additions & 103 deletions
File tree
- .github/workflows
- FAQ
- Links
- Timeline
- browser
- docs
- Book
- Appendix
- Concurrency
- Control Flow
- Introduction
- Objects
- Primitives
- Syntax
- Guide
- Implementation
- How to Write C Bindings
- Overview
- Reference
- BigInt
- Block
- CFunction
- Call
- Collector
- Compiler
- Continuation
- Coroutine
- Date
- Debugger
- Directory
- Duration
- Error
- EvalFrame
- File
- Lexer
- List
- Map
- Message
- Number
- Object
- Profiler
- Sandbox
- Sequence
- State
- System
- Tag
- Token
- WeakLink
- Paper
- Reference
- Block
- CFunction
- Call
- Collector
- Compiler
- Continuation
- Coroutine
- Date
- Debugger
- DirectoryCollector
- Directory
- Duration
- Error
- EvalFrame
- Exception
- FileCollector
- FileImporter
- File
- Importer
- List
- Map
- Message
- MutableSequence
- Number
- Object
- Path
- Profiler
- Sandbox
- Scheduler
- Sequence
- State
- System
- TestRunner
- UnitTest
- WeakLink
- false
- nil
- true
- Style Guide
- Technical Notes
- Future Work
- Exceptions
- Stackless
- Examples
- Report
- WASM
- Browser Target
- DOM Interop
- Tutorial
- repl
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
150 | | - | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
| 185 | + | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| |||
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
210 | | - | |
| 218 | + | |
211 | 219 | | |
212 | 220 | | |
213 | 221 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments