Release Notes

← Home
Io

Notable changes in Io over the past twelve months.

Io uses date-based versioning. This page collects the notable changes of the last twelve months — a period in which the VM was rewritten around a stackless evaluator and re-targeted from native binaries to WebAssembly. Entries marked tagged correspond to release tags in the repository; the rest are development milestones on the road between them. For the longer arc, see the Timeline.

2026.11.25 — The REPL prompt appears before you type

Tagged 2026.11.25. One fix for the terminal REPL.

  • The REPL prompt appears before you type — under wasmtime the Io> prompt stayed in the output buffer until a line had been entered, so it showed up after the input instead of before it. Standard output is now flushed before File standardInput is read, which also fixes scripts that print a question and then call readLine (#556).

2026.11.23 — Stop and time slices in the browser, live output, Sandbox limits

Tagged 2026.11.23. Long-running code in the browser: the page stays live, output appears as it is printed, and both an eval and background code can be stopped. Sandbox limits now work.

  • Browser: stopping long-running code — io.interrupt() stops the eval in progress with an “interrupted” error that try cannot catch. A new option, Io.load({ timeSlice: 50 }), makes the VM hand control back to JavaScript whenever Io has run for that many milliseconds, so the page stays live during a loop that never waits and interrupt() can stop it. Without the option nothing changes: code runs until it waits or finishes. The Live Interpreter uses it, and its Run button becomes Stop while code is running; Ctrl-C does the same (#441).
  • Browser: stopping background code — a coroutine left running by an earlier eval that never waits, such as coroDoLater(loop(nil)), could not be stopped: interrupt() is only for the eval. Nothing stops such code automatically, since a loop may be exactly what was wanted. io.backgroundBusy and io.onBackgroundBusy(listener) report when background code has been running without waiting, and io.interruptBackground() stops the coroutine responsible. Coroutines that wait or yield between bursts of work are never reported or stopped. The Live Interpreter shows a separate “Stop background code” button while this is happening. Needs a timeSlice.
  • Browser: yield with time slices — with a timeSlice set, a coroutine that called yield in a loop could be parked partway through it and never run again. yield and pause now finish before a time slice ends.
  • Browser: output while an eval runs — io.eval(code, { onOutput }) delivers what the eval prints as it prints it, then the result or error when it ends. Without the option, output still arrives all at once in the result. The Live Interpreter now shows a long-running eval’s output as it appears.
  • Sandbox limits are enforced — Sandbox setTimeLimit and setMessageCount stored a number that nothing read, so Sandbox clone setTimeLimit(0.2) doSandboxString("loop(nil)") never returned. Code that runs past either limit is now stopped, and doSandboxString raises “Sandbox: time limit exceeded” or “Sandbox: message count limit exceeded” in the calling VM. Code inside the Sandbox cannot catch it, and the Sandbox can be used again afterwards. The message count is counted in evaluator steps. A limit of 0, the default, means none (#353).
  • More code can wait in the browser — lexicalDo, the #{...} expressions of interpolate and interpolateInPlace, and the expression given to sortInPlace now run as ordinary frames, so they can wait, await a JS Promise or use an actor’s result. The comparison block of sortBy and sortInPlaceBy still cannot.
  • sortInPlace(expression) is faster — the expression is sent to each item once and the list is sorted on the results; it used to be evaluated twice per comparison. Sorting 20,000 numbers this way takes about a third of the time. Adds List rawSortInPlaceWithKeys.
  • Source text with non-ASCII characters — doString, asMessage, Message fromString and interpolate failed or gave wrong results when the string held a non-ASCII character: doString("\"é\" size") was a compile error, and an expression inside a string such as "日本#{1 + 1}" was cut short. Messages containing a non-ASCII string literal also printed it truncated. Source files were not affected.

2026.11.22 — Negative literals, mid-file operators, return in try

Tagged 2026.11.22. A round of parser and exception-handling fixes for long-standing bug reports. Several change how existing code is read; those are called out in each entry.

  • Negative number literals — -1 acos now means (-1) acos. A - written directly before a number, with nothing to its left, is part of the number; it used to negate the whole rest of the expression, so -1 acos gave 0. Subtraction (3 -1) and negation with a space (- 1 acos) are unchanged. Code that relied on the old reading, such as -2 ** 2 giving -4, now gets 4; write -(2 ** 2) (#489).
  • No space needed before a minus — a:=-1, x*-1 and x*-y now work. The lexer reads :=- and *- as one operator name; when that name is not an operator but is one without its final -, it is split. An operator that really is named *- in the OperatorTable is left alone.
  • Operators added mid-file take effect — a file run with doFile or doString is now rearranged for operators one statement at a time, just before each statement runs. An operator, assign operator or precedence change made by one statement applies to the statements after it; it used to apply only in the REPL or in a separately loaded file. A compile error such as x := with no value is now raised when its statement is reached, after earlier statements have run (#494, #438).
  • a:=2 works — a colon is no longer part of an identifier, so assignment needs no space before the operator. A name containing a colon, such as at:put:, is no longer one identifier (#253).
  • return inside try and catch — try(return x) and try(...) catch(Exception, return x) now return from the enclosing method, and break and continue act on the enclosing loop. They used to leave only the try block or the handler. Adds Coroutine finalStopStatus (#37).
  • Futures with code arguments — list @select(x, x > y) raised “Object does not respond to ‘x’”. When the target reads its arguments as code (select, map, foreach and the like), a future send now leaves them unevaluated and the actor runs them in the sender’s context. Value arguments are still evaluated when the message is sent. Adds CFunction isLazyArgs (#55).
  • Assignment with arguments on the left — a foo(1) := 5 + 2 used only 5 as the value and then evaluated the value a second time; it now passes the whole expression once. a foo(1) := with no value is a compile error instead of a crash (#534).
  • Cloning without an SSH key — the colvmn submodule uses an https address, so git clone --recursive works for everyone (#504).

2026.11.20 — Waiting in more places, Date and List fixes

Tagged 2026.11.20. In the browser, code can now wait almost anywhere, and several long-standing Date and List bugs are fixed. One breaking change for pages that load io.js.

  • Browser: more code can wait — wait, await, actor futures and yield now work inside map, select, repeat, Sequence foreach, perform, do, call evalArgAt and an object’s init, which used to raise “can’t wait or switch coroutines here”. A few primitives still can’t: sortBy, interpolate and lexicalDo. On every target, clone of an object with an init is about twice as fast and perform about 1.6 times.
  • Browser: io.js is removed — the classic-script loader that kept <script src="io.js"> pages working is gone, along with its loadIo() and ioEval() globals and window.IO_WASM_URL. Import the module instead: import { Io } from "./src/index.js", then Io.load() and io.eval(). The browser kit now includes the REPL page, index.html.
  • Browser: no limit on Io objects held by JS — the table of Io objects that JavaScript refers to, which also counts Promises that haven’t settled, was fixed at 1024 entries and rejected new Promises when full. It now grows as needed.
  • Date setDay checks every 30-day month — day 31 was accepted for April, June and September and silently became the 1st of the next month. It now raises an error, as it already did for November. Reported and fixed by Weixie Cui (#492).
  • Date setMonth and setYear keep the month — setting the month on a date whose day the new month doesn’t have used to spill into the month after: January 31 with setMonth(2) became March 3. The day now becomes the last day of the month (February 28 or 29). setYear does the same for February 29.
  • Nested lists print correctly — a list inside a list showed its numbers as quoted strings, with more quoting at each level: list(list(2)) printed as list(list("2")). It now prints as written.
  • List fromEncodedList passes reference ids — objectForReferenceId was always called with nil instead of the id, so encoded object references could not be resolved. An error raised while resolving one now stops the decode. Reported and fixed by Weixie Cui (#491).
  • Build — the Makefile finds wasi-sdk in deps/wasi-sdk before ~/wasi-sdk, so the SDK can live inside the project (#519). CI and release builds now use wasi-sdk 25.

2026.11.19 — Backtraces and exit status

Tagged 2026.11.19. Errors now say where they came from, and a failing script reports failure to the shell.

  • Backtraces are back — an uncaught error prints the calls that led to it, with file and line, instead of “nothing on stack”. An exception records its trace when it is raised: Exception stackTraceLines returns it as a list, and pass keeps the original.
  • Failing scripts exit non-zero — a script or -e expression that ends with an uncaught exception exits with status 1, so shell scripts and CI can tell it failed. It exited 0 because the CLI looked for the exception on the wrong coroutine.
  • Build — make rebuilds the objects that include a changed header; a clean build is no longer needed after editing one (#515).

2026.11.18 — Long-running programs stop growing

Tagged 2026.11.18. A memory fix for programs that never return to the top level: servers, actors, and long-lived coroutines.

  • Loops release their temporaries — while, loop, for and foreach kept every value a loop body created until the enclosing method returned, so a top-level script or an actor that loops forever grew without bound. A 300,000-iteration loop used to leave 300,000 objects behind; it now leaves two (#513).
  • Coroutine switches no longer leak — each yield, pause or resume left a stray marker on the retain stack that kept a few objects alive per switch.
  • A possible crash in for and foreach — loops counting through small integers released the wrong retain-stack entries on each iteration, which could corrupt the stack.

2026.11.17 — Io on npm, and inside the JS event loop

Tagged 2026.11.17. The first release since the WASM merge, and the first on npm.

  • npm package — npm install @iolanguage/io runs the VM from JavaScript in Node and browsers (@iolanguage/io). Releases publish to npm from the release workflow with provenance.
  • Io inside the JS event loop — in the browser and Node build, Io coroutines, actors, wait and await on JS Promises run without blocking JavaScript; an eval that waits resolves when it finishes, and callbacks JS calls later can wait too (#509).
  • ES module — the browser bridge is an ES module with a small API: Io.load(), eval, lobby, onOutput, dispose (#507).
  • Syntax errors no longer crash the VM — unfinished source such as x := ( raises a catchable compile error; it used to trap the VM and end a REPL session (#511).
  • Closures over method locals — a block created inside a method keeps its scope after the method returns; the locals used to be recycled while the block still used them.
  • Fixes found along the way — a message chain sent to an actor future ran more than once; then/catch/finally ran the rest of the statement twice; JS Promises stopped resolving after about a thousand; List_removeLast_ never removed anything, so retained objects were never released.
  • WASI 0.2 component build — make component builds the VM as a WebAssembly component (wasm32-wasip2) alongside the core WASI module.
  • Cooperative scheduler timer queue — wait parks the calling coroutine on a timer queue instead of busy-spinning; timed coroutines run concurrently and the VM idles in a single host wait until the next deadline.
  • Live Interpreter — an in-browser REPL running the full VM, linked from the home page.
  • Performance tracking — a benchmark page recording interpreter, shootout, and SIMD results over time.
  • WASI 0.3 notes — design notes on adopting native-async components (future/stream) once host and toolchain support land.

2026.04.20 — WASM becomes the default target

Tagged 2026.04.20-native-final. The WASM branch merged to master (#495); WebAssembly/WASI is now the default and only build target. The final native build — CMake, Eerie, and DynLib — is frozen at this tag, with ongoing native work on the native branch.

  • SIMD128 Vector backend — the Vector primitive gains a WebAssembly SIMD128 backend, restoring AltiVec-era vector acceleration on modern hardware and in the browser.
  • 64-bit integer literals — integer literals no longer truncate to 32 bits (#420).
  • Map equality — Map implements comparison for equality (#28).
  • JSON singletons — asJson added to nil, true, and false (#27).
  • isKindOf fix — ancestor checks use identity comparison (#201).
  • Site and Book restructured for the WASM era; continuous integration rewritten for the WASM toolchain.

2026.03.06 — Stackless alpha, WASM port, and the JS bridge

Tagged 2026.03.06-stackless-alpha. The first alpha of the stackless VM, together with the initial WebAssembly port and a new JavaScript integration model.

  • WASM/WASI cross-compilation — the VM compiles to a single portable WebAssembly module that runs under wasmtime, Node.js, or the browser.
  • Bidirectional Io↔JavaScript bridge — Io can call JavaScript functions and JavaScript can call Io methods, replacing the native addon model. DynLib, AddonLoader, and the Eerie addon infrastructure were removed.
  • Async/await across the bridge — futures integrate with JavaScript Promises: the eval loop yields and resumes across the JS boundary, and an unrecognized message sent to a pending future implicitly awaits its result.
  • BigInt — arbitrary-precision integers with transparent round-tripping across the Io↔JS bridge.
  • Browser REPL — an interactive interpreter hosted in a web page, with demos for the bridge, DOM access, async, and callbacks.
  • Strings default to UTF-8.

2026.02 — Stackless evaluator

The recursive, C-stack-based evaluator was replaced with a heap-allocated frame state machine — the foundation the WASM port builds on. With no native C stack to switch, the platform-specific coroutine assembly is no longer needed.

  • Iterative eval loop — evaluation runs on a frame state machine instead of C recursion.
  • First-class continuations — the current computation can be captured, resumed, stored, or serialized (callcc, behind the IO_CALLCC build flag).
  • Tail-call optimization — including through if branches.
  • Robust exception unwinding — Io-level exceptions are unwound by the eval loop rather than C setjmp/longjmp.
  • Resumable exceptions — Common Lisp–style signal / withHandler: a handler can resume at the signal site, fall through, or unwind.
  • GC-managed eval frames — frames are pooled, garbage-collected objects; coroutines became frame-based and the old platform-specific coroutine library was removed.

2025.07 — ARM64 coroutines

Native ARM64 coroutine support for Apple Silicon and modern Linux (#476) — the last major addition to the native-era coroutine implementation before the stackless rewrite made platform-specific coroutine code unnecessary.