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.
Tagged 2026.11.25. One fix for the terminal REPL.
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).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.
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).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.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.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 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).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.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.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.
-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).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.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).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).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).colvmn submodule uses an https address, so git clone --recursive works for everyone (#504).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.
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.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.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.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).deps/wasi-sdk before ~/wasi-sdk, so the SDK can live inside the project (#519). CI and release builds now use wasi-sdk 25.Tagged 2026.11.19. Errors now say where they came from, and a failing script reports failure to the shell.
Exception stackTraceLines returns it as a list, and pass keeps the original.-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.make rebuilds the objects that include a changed header; a clean build is no longer needed after editing one (#515).Tagged 2026.11.18. A memory fix for programs that never return to the top level: servers, actors, and long-lived coroutines.
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).yield, pause or resume left a stray marker on the retain stack that kept a few objects alive per switch.for and foreach — loops counting through small integers released the wrong retain-stack entries on each iteration, which could corrupt the stack.Tagged 2026.11.17. The first release since the WASM merge, and the first on npm.
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.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).Io.load(), eval, lobby, onOutput, dispose (#507).x := ( raises a catchable compile error; it used to trap the VM and end a REPL session (#511).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.make component builds the VM as a WebAssembly component (wasm32-wasip2) alongside the core WASI module.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.future/stream) once host and toolchain support land.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.
Vector primitive gains a WebAssembly SIMD128 backend, restoring AltiVec-era vector acceleration on modern hardware and in the browser.Map implements comparison for equality (#28).asJson added to nil, true, and false (#27).isKindOf fix — ancestor checks use identity comparison (#201).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.
BigInt — arbitrary-precision integers with transparent round-tripping across the Io↔JS bridge.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.
callcc, behind the IO_CALLCC build flag).if branches.setjmp/longjmp.signal / withHandler: a handler can resume at the signal site, fall through, or unwind.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.