Repository navigation
·
839 commits
to master
since this release
As with the earlier releases, the release name says when it was cut and nothing about how finished the compiler is; what it promises is in docs/limitations.md and in the tests, and ruby tools/promise_diff.rb 2026.10.25 2026.11.29 lists what changed since the last one.
What this one stands on:
- CRuby's load model. A program is loaded the way CRuby loads it: each file has its own top level, a
requireruns when execution reaches it, and definitions take effect in the order they run. The old model, which spliced required files into one text, is gone (--load-model=inlineis refused with a message). A require that names no file is a compile-time warning and a run-timeLoadError.--strict-require(formerly--require-gate) refuses a program whose requires the compiler cannot resolve, and-D NAME[=VALUE]prunes branches on compile-time constants before requires are resolved (docs/require.md, docs/spin.md). - Encodings as in CRuby. Joining text of incompatible encodings raises
Encoding::CompatibilityError, and the methods that need valid text (stripand its kin, socket reads appended to text, ...) check it as CRuby does. - The behaviour is pinned more widely. 12,084 test programs and 626 package tests, each diffed against CRuby 4.0.10's output (8,622 and 362 at
2026.10.25). 3,206 ruby/spec examples pass and are held to, over six suites (language, core/array, core/string, core/hash, core/integer, core/range).. - Faster where it matters. Over the 15 benchmarks the pre-push lane measures, the compiled programs run 4% fewer instructions and 4% fewer cycles than at
2026.10.25(geometric mean, the same machine); the string-heavy ones gained most (bm_template-21% cycles,bm_threaded_render-33%,bm_wordfreq-10%), andbm_sudokulost 11%. - Threads and memory. An FFI function declared
offload: trueruns on an offload thread while its caller waits as for I/O, leaving the worker to the other threads, and a callback from a C call that sleeps or waits on I/O parks its thread.SPINEL_GC_HEADROOM_KBcaps how far the heap grows past the live data (docs/thread.md, docs/FFI.md). - Types from signatures. Inline RBS takes more of the language:
top,bool,selfandinstance, the element type parameters of Array, Hash, Range, Set and Struct, and#|continuation lines (docs/inline-rbs.md). - More of the standard library and more ways to ship. Ten new packages (
abbrev,English,etc,racc,resolv,sqlite3,syslog,tsort,unicode_normalize,weakref;require "English"aliases the special globals, resolved at compile time); a compiled program as a shared library (docs/spin.md, docs/windows.md for a DLL);--no-bigintfor a program that must never allocate a Bignum (docs/int-overflow.md).
What changed on purpose:
--share-stringsis removed (it did nothing since2026.10.25, where every String became one shared object).--require-gateis now--strict-require.Symbol#to_sanswers a frozen String, as a string literal is; CRuby 4.0 answers a chilled one (docs/limitations.md).- Redefining or removing the builtin
lambdaby a form the source does not spell (a computedsend, a computeddefine_method, a String eval) is not supported (docs/limitations.md). - A program class that subclasses a socket class (
class MySock < TCPSocket) is refused at compile time; it compiled before and failed atnew. A reopen with the builtin's own superclass (class Socket < BasicSocket) is unchanged (docs/limitations.md). Class#allocateon a class whose instances are a native struct (StringIO.allocate) is refused at compile time, naming the form;newconstructs the object (docs/limitations.md).- The reference Ruby is CRuby 4.0.10.
8,715 commits since 2026.10.25, including 2,539 merged pull requests from 45 authors. Thank you all.
Build from source (make deps && make); spinel --version prints the build revision and this release name. See the README for the quick start and docs/spin.md for projects and packages.