Jennifer - Milestones
What has shipped. Development is split into milestones; each produced a working interpreter that runs a strictly larger subset of the language, and from M28 on each milestone is one release (M28 = 0.26.0). What is planned - the next releases, governance and the requirements for 1.0.0 - is in the roadmap. A release's section moves here from the roadmap when it is tagged.
Note on compaction. Older milestone entries are periodically compacted (condensed to a short summary, sometimes grouped) to keep this file readable. The compacted text records what shipped, not the implementation design. For the detailed design, rationale, and evolution of any milestone, see the git history (the commits for that milestone), the authoritative record of how it was built.
M1 - End-to-end MVP
Smallest vertical slice that proves the pipeline (source → tokens → preprocessed tokens → AST → result):
- Types:
int,string def x as int init 5;,$varreferences, function defs (zero-arg, top level),import "file.j";,use io;, single-argprintf- Arithmetic
+ - * / %on ints; comments#and/* */ - Source-context caret in error messages
- Golden-file integration test and TinyGo build verified
Exit criterion: ./jennifer run examples/hello.j prints 42.
M2 - Types, constants, scoping, control flow
Rounds out the "ordinary" feature set:
- New types
float,null,boolwith literals3.14,null,true,false - Uninitialized
def x as T;givesT's zero value def const NAME as TYPE init VALUE;(reassignment is an error)- Nested block scoping; inner scopes cannot redeclare visible names
- Assignment statement
$x = EXPR; - Comparison
< > <= >= ==,+for string concat,int↔floatpromotion - Escape parsing in
'...'strings (previously only"...") - Control flow:
if/elseif/else,while,for, all requiringboolconditions (no implicit truthiness)
M3 - Functions with parameters and return values
func name(a as int, b as string) { ... }with typed parameters, by-value argument passing, call-site arity + type checksreturn;andreturn EXPR;; recursion workssprintfand format verbs%d %f %s %t %v %%for bothprintfandsprintf- The omnibus
stdlibretired in favor of topic-based libraries;iois the first.
M4 - Polish & ergonomics
- Logical operators
and,or,not(word-based, short-circuit) - Unary minus
- Python-3 division:
/always returnsfloat; newdivkeyword for floor division (//is taken by line comments) - Floats always display with a decimal (
5.0, not5) so the type stays visible - New libraries (all
use-gated):convert,math,strings - Interpreter gained
RegisterConstso libraries can expose constants (PI,E).
M5 - Interpreter improvements
- Cross-file error sources - errors raised inside an imported
.jdisplay the line from the imported file. See technical/interpreter.md > Errors and positions. - REPL -
jennifer repl, persistent globals/functions/imports across inputs, multi-line input via brace balancing, expression results printed. See technical/cli_repl.md > REPL. - REPL line editor - cursor keys, Home/End, word motions, Ctrl+W / Ctrl+U / Ctrl+K, in-memory history (Up/Down), Ctrl+C cancel. Non-TTY stdin falls back to plain line reading. See technical/cli_repl.md > Line editor.
- Auto-loaded
corelibrary - new library kind, pre-imported at startup; writinguse core;is a runtime error. Contents:JENNIFER_VERSION(agit describe-derived build-version constant) andlen(polymorphic over strings now; lists/maps in M6).lenmoved here fromstrings. (M15.4 later promotedlento a language built-in and deletedcore; see M15.4 for the migration.) Version injection details at technical/cli.md. - Formatter -
jennifer fmtre-emits canonical source per user-guide/style-guide.md. Token-level walker so file imports and user-written parentheses survive. See technical/cli_fmt.md > Formatter. - Inspection subcommands -
jennifer tokens <file>dumps the lexer output;jennifer ast <file>dumps the preprocessed AST as JSON. See technical/cli_inspect.md > Inspection. - Underscore-in-constants - constant names became
[A-Z]+(_[A-Z]+)*, enablingMAX_RETRIESand theJENNIFER_VERSIONrename. See technical/lexer.md > Identifier rule. - Documentation overhaul -
docs/technical.mdsplit intodocs/technical/<topic>.md;docs/lib_*.mdmoved todocs/libraries/; newdocs/user-guide/style-guide.md.
M6 - Lists and maps
Two new compound types - list and map - plus the strings library functions deferred until compound types existed.
- Syntax:
def xs as list of int init [1, 2, 3];,def m as map of string to int init {"a": 1};. Index read/write$xs[i],$m["k"], chains$g[i][j]. Iteration viafor (def x in $coll) { ... }(new keywordin). New tokens[ ] :and keywordslist,map,of,to,in. - Semantics: value-typed (copy on assignment and on function-parameter binding; no aliasing);
constis deep ($NUMS[0] = ...is a runtime error ifNUMSisconst); out-of-bounds list reads/writes and missing map keys are positioned runtime errors; map iteration is insertion-order deterministic. - Type system:
parser.Typebecame a recursive struct (Element,KeyType,ValType*Typeslots), so nesting likelist of list of intfalls out without depth cap. 3+ levels is a documented code smell. - Stdlib:
core.lenextended to lists and maps;core.has(m, key)for membership tests;strings.split,strings.chars,strings.joinfinished. - Tooling: formatter handles
[...]/{...}per user-guide/style-guide.md (no inner padding, space after,/:, block-vs-map disambiguation via a small brace stack); AST JSON emitter handlesListLit,MapLit,IndexExpr,IndexAssignStmt,ForEachStmt.
See user-guide/types-and-values.md > Lists and maps for the user-facing tour, and technical/grammar.md / technical/interpreter.md for the implementation contract.
M7 - printf modifiers, stdin input, comment/division swap
A breaking syntax change to free up // for integer division and to allow shebangs, the long-promised format-verb modifier system, and the first stdin-reading builtins.
- Comments and integer division (BREAKING). Line comments moved from
//to#, freeing//for floor division (Python 3 shape).divkeyword removed. A Jennifer file can now begin with#!/usr/bin/env -S jennifer run. (s)printfformat-verb modifiers. Each format verb except%vaccepts a pipe-separated, order-independent flag list:%verb[|key=value]*. Modifiers shape presentation only - data transformations (case=upperon strings, markdown rendering, etc.) are explicitly out of scope; libraries do that work. Verbs gained:pad/max/align/mode(%s);pad/fill/align/base/sign/group/sep(%d);prec/trim/sci/pad/align/sign(%f);case(%t); sharednull=empty|null|literal(...)across all four typed verbs.%vdeliberately takes none.- Format-string breaking change.
|immediately after a verb now starts a modifier list. Pre-M7 strings with|as a literal separator ("%d|%d") need either a different separator or the||escape (parallels%%). iostdin input. New builtinsreadLine(),readLine(prompt),eof()- one-line-at-a-time reads with an explicit EOF predicate (while (not eof()) { ... }). Refuses inside the REPL since the line editor owns stdin.- Internals. Builtin signature changed from
func(out io.Writer, args)tofunc(ctx BuiltinCtx, args)so stdin and the REPL flag are plumbed symmetrically with stdout. Mechanical refactor across the ~30 existing builtins.
See:
- libraries/io.md - full modifier and input reference.
- technical/lexer.md and technical/grammar.md - the comment / division syntax change.
- technical/rejected.md - what the modifier system deliberately doesn't do (data transformations,
%aaggregate,null=sql/null=skip) and why the literal-pipe lookahead alternative was turned down. - technical/interpreter.md > Builtins and libraries - the
BuiltinCtxsignature.
M8 - System library namespacing
A hybrid namespace model so domain libraries can ship without polluting the bare-name pool, plus the first real namespaced library (os) so the machinery has a non-synthetic exercise.
- Hybrid model. Essential libraries (
io,convert,math,strings, auto-loadedcore) stay flat - their builtins are bare names. Domain libraries register through a new namespaced API (RegisterNamespaced/RegisterNamespacedConst) and are addressed byprefix.name(...)/prefix.NAME. The library's name doubles as the namespace prefix. - Qualified calls and constants. New AST nodes
QualifiedCallExprandQualifiedConstRefExpr; parsed asIDENT "." IDENT(then(decides). Lookup is keyed by(namespace, name)and gated byuse lib;. use NAME as ALIAS;aliasing. Optionalasclause onuse. Rename-not-addition: afteruse bio as b;onlyb.resolves,bio.foo()errors with a "did you meanb?" hint; the canonical namebiois freed for ordinary identifier use. Matches Python'simport foo as bar. Aliasing is rejected for flat libraries (use math as m;errors as meaningless).- Namespace prefix is a reserved identifier. After bare
use bio;,func bio() {}errors withshadows imported namespace 'bio'. Afteruse bio as b;, onlybis reserved. - No migration. The change is purely additive; all five flat essentials continue to work unchanged.
- Demo library
os(minimal slice). First namespaced library:os.platform() -> string,os.getEnv(name) -> string,os.JENNIFER_LF,os.JENNIFER_OS. Two functions plus two constants - enough to exercise namespaced zero-arg calls, namespaced calls with arguments, namespaced constants, and aliasing end-to-end. Expands in M15.1.
See:
- libraries/os.md - the shipping demo library.
- libraries/index.md - flat vs namespaced policy and the rule for library authors.
- user-guide/imports.md > Namespaced libraries and aliasing - user-facing reference for
use NAME [as ALIAS];and qualified calls. - user-guide/style-guide.md > Namespaced calls - spacing convention around
.. - technical/grammar.md - EBNF for
qualifiedCall/qualifiedConstRefand theuse ... as ...shape; AST table entries for the new nodes. - technical/interpreter.md > Namespaced libraries (M8) - registration API,
nsPrefixes/nsAliasedAwayresolution tables, no-shadowing rule for namespace prefixes.
M9 - Collection operations
Two new namespaced libraries cover the M6-deferred list/map manipulation helpers, a small append sugar shortens the common write pattern, and two follow-on breaking changes tidy up the flat-vs-namespaced split.
listslibrary (use lists;, namespaced).lists.push,lists.pop,lists.first,lists.last,lists.head,lists.tail,lists.reverse,lists.sort,lists.contains,lists.concat,lists.slice. Non-mutating - every function returns a new list.sortaccepts numeric, string, or bool elements (mixed int/float promotes; other mixes error); comparator-based sort is deferred until functions are first-class.mapslibrary (use maps;, namespaced).maps.keys,maps.values,maps.has,maps.delete,maps.merge. Same shape.maps.deleteof a missing key errors (strict at boundaries, matching$m[missing]);maps.mergelayers the second arg over the first.- Sugar:
$xs[] = item;- write-only target meaning "just past the end of the list". Equivalent to$xs = lists.push($xs, item);. Reads of$xs[]and chained forms ($xs[0][]) are parse errors; non-list targets error at runtime. New AST nodeAppendStmt. - BREAKING:
has()moved fromcoretomapsasmaps.has(m, key). Barehas(...)callers now needuse maps;and the qualified form.haswas the only non-polymorphic name in core;lenstays because it spans string / list / map. - BREAKING:
stringslibrary moved from flat to namespaced.upper(s)→strings.upper(s),contains(s, sub)→strings.contains(s, sub), etc. across all 15 functions.use strings;itself is unchanged. The M8 library-author rule named exactly these collision-prone verbs (contains,split,replace,join); acting on it now keeps callers off the wrong shape before more libraries arrive. After M9 the remaining flat libraries areio,convert,math, and auto-loadedcore.
See:
- libraries/lists.md / libraries/maps.md - function reference for each new library.
- libraries/strings.md - now namespaced (M9 migration note at top).
- libraries/index.md - updated flat-vs-namespaced catalog and the library-author rule.
- user-guide/imports.md and user-guide/types-and-values.md > The
$xs[]append sugar - user-facing reference. - technical/grammar.md - EBNF and AST entry for
AppendStmt.
M10 - Namespace-first library architecture
A pre-language-completion API-shape correction: every library is now namespaced, with bare-name globals reserved as a narrow core-only exception. Small implementation surface, large API shape; pre-1.0 is the window for this kind of change.
- BREAKING:
io,math,convertmigrate to namespaced-only.printf(x)→io.printf(x),sqrt(x)→math.sqrt(x), etc. The "io is special, keep it flat" alternative was considered and rejected at kickoff to keep a uniform "every call carries its library name" rule.strings,lists,maps,oswere already namespaced (M9/M8). - BREAKING:
convert's four conversion callees are renamed toconvert.toInt,convert.toFloat,convert.toString,convert.toBoolso they don't collide with the type keywords (int,float,string,bool);convert.typeOfkeeps its name. Theto-prefix also reads as English ("convert to int") at the call site. - BREAKING: file-splice keyword
import→include.include "x.j";is the textual splice; theimportkeyword is reserved for the M17 module system and produces a migration-hint error today. Mixing-mistake diagnostics updated. - BREAKING for embedders: registration API renamed.
Register/RegisterConst→RegisterGlobal/RegisterGlobalConst, making their role explicit ("expose this name globally"). The namespaced API (RegisterNamespaced/RegisterNamespacedConst) keeps its name and is the recommended default. Per-library storage (globalFnsByLib,globalConstsByLib) so two libraries with the same global name can no longer silently overwrite each other at Install time; the resolution map is populated byprocessImportswhen a library activates. mathabsorbs the planned non-crypto random helpers:math.rand(),math.randInt(lo, hi),math.randSeed(n). Three functions don't justify their own library under the new threshold (next bullet); pseudo-random fitsmath's pure-numeric charter. The crypto-grade variant still ships in M20.1crypto. The originally planned M14.2randomlibrary is removed.coreis the only library publishing bare-name globals.lenandJENNIFER_VERSIONonly - nocore.len/core.JENNIFER_VERSIONqualified form, because shipping the same name two ways violates stance #1.coreis the auto-loaded escape hatch, and its asymmetric exposure is the whole point.- Three globals-publishing rules in
processImports, all forward-looking (inert today sincecoreis the only globals-publishing library and can't beused):- Duplicate
useof a globals-publishing library is rejected (library 'X' already in scope); REPL no-ops a repeat. use X as Y;whereXhas globals but no namespaced names is rejected as meaningless.- Two active libraries publishing the same global name are rejected at the second
use(library "B" collides with already-active library "A" on global "VER"). The pre-M10 flat-only-alias-meaningless check is removed for the general case but kept as rule 2.
- Duplicate
- Library-author guidance updated. The
docs/libraries/index.md"flat vs namespaced" framing is retired; the new policy is "every library is namespaced; onlycoreships globals viaRegisterGlobal." The "deserves its own library" threshold is raised from M8's "3+" to "5+ functions or constants": anything smaller folds into the most-related existing library. The non-crypto random helpers (3 functions) are the first case the new rule caught.
See:
- libraries/io.md, libraries/math.md, libraries/convert.md - migrated library references.
- libraries/index.md - retired flat-vs-namespaced framing; new library-author policy and 5+ threshold.
- user-guide/imports.md -
useandincludekeyword reference; namespaced-call and aliasing rules. - user-guide/types-and-values.md -
convert.toInt/convert.toFloatexample placement in the "explicit conversions" section. - technical/rejected.md - "Methods on structs" (M14.3 trigger; recorded here in M10's wake because M10's review touched the same call-shape question) and other related rejected alternatives.
No new language features land here - that's M11.
M11 - Control-flow completion
Closes the biggest daily-use gap in the language and rounds out the printf modifier table at the same time. Five new keywords (break, continue, repeat, until, exit) and two new printf features.
break;/continue;in every loop kind (while/for/for-each/repeat). Innermost loop only; misuse outside a loop or across a function-call boundary is a positioned runtime error.continuein C-styleforstill runs the step before re-checking the condition (matches C/Go).repeat { } until (cond);post-test loop. New keywordsrepeatanduntil;do { } while ...considered and rejected because the inverted condition is the whole point of switching tountil.exit;/exit EXPR;terminate the whole program (exit code 0 / EXPR-as-int). Distinct fromreturn(function-scoped): skips every caller frame and remaining top-level statement. Implemented as anExitSignalsentinel error the CLI translates into the OS exit status.- Bundled: printf
%s|align=centerrounds out the align set. Rejected on every other typed verb (centred numbers break columnar output). - Bundled: printf
%aaggregate verb for lists and maps (deferred from M7; unblocked by M6 + M9). Modifiers:sep,kv,open,close,depth=N,null=skip. The modifier-list parser was extended with a"..."quoted-value form (%a|sep=", ") so values can contain spaces / reserved characters; standard\n \r \t \\ \"escapes. - Post-dot name relaxation. Reserved words read as identifiers in the name slot of a qualified call (
strings.repeat,lists.breakif anyone wrote one), preserving thestrings.repeatlibrary function afterrepeatwas reserved as a loop keyword.
See:
- user-guide/control-flow.md -
repeat/until,break/continuescope rules,exitvsreturn. - libraries/io.md -
%amodifier table,%s|align=centerexample, quoted modifier values. - technical/rejected.md -
%a|json=*/%a|xml=*/%a|yaml=*(serialisation modifiers stayed rejected even after%aitself shipped) and thedo { } whileshape for the post-test loop.
M12 - Bytes and bit operators
Adds the buffer-shaped primitive and the bit-twiddling vocabulary the standard library needs for hashing, encoding, crypto, and network code in later milestones.
- New primitive type
bytes- mutable byte sequence; value semantics on assignment / parameter binding; deep-const. Reads yieldintin[0, 255]; writes accept the same range and reject anything else. Append via the existing M9$b[] = byte;sugar.len($b)returns the byte count. - New
convert.bytesFromString(s, codec)andconvert.stringFromBytes(b, codec)- bytes ↔ string codecs. Only"utf-8"today (further codecs ship in M15.7encoding). Invalid UTF-8 input is an error - no silent replacement characters. - Bit operators on
int:& | ^ ~ << >>. Python-style precedence (comparison <|<^<&< shifts <+ -), so$x & 0xff == 0parses as($x & 0xff) == 0.~is bitwise NOT. Shifts are arithmetic; negative count rejected; count >= 64 saturates to 0 / -1.^ships as a primitive operator (CPU primitive with unique algebraic properties - same justification-has against being composable from+and unary-). - Non-decimal integer literals: hex
0xff, octal0o755, binary0b1010_0110._accepted between digits in any base (including decimal1_000_000and float mantissas). Never adjacent to the prefix or another_. Lexer-only change. - Resolves M7-deferred stdin builtins:
io.readBytes(n) -> bytes(exact n; partial at EOF thenio.eof()becomes true) andio.readChars(n) -> string(n runes, UTF-8 decoded). Both compose with M7'sio.eof()unchanged.
See:
- user-guide/types-and-values.md -
bytestype, value semantics, index-write rules. - libraries/convert.md - codec functions, UTF-8 strictness.
- libraries/io.md -
io.readBytes,io.readChars. - user-guide/control-flow.md - bit-operator precedence table.
- user-guide/syntax.md - non-decimal literals + digit separator.
M13-M13.2 - structs and catchable errors
The composite-data milestone, batched in dependency order: M13.1 ships the struct mechanism, M13.2 the recoverable-error story built on it (the canonical error value is a struct), together unblocking composite library returns. Design detail: git history, the user-guide (types-and-values, control-flow) and technical/interpreter.md docs, and examples/structs.j / examples/trycatch.j (plus the matching showcase.j sections).
| M# | Topic | Summary |
|---|---|---|
| M13.1 | structs / records | def struct Name { field as type, ... }; at top level (hoisted before the first statement; duplicate names error in Run, silently redefine in the REPL). Literals Name{ field: expr, ... } with every field required; def x as Name; zero-fills, recursing nested struct fields. Field read $p.field / write $p.field = ...;; lvalue chains mix [index] and .field freely ($L.from.x = 5;, $bag.items[0] = 99;) through one shared index/field walker. Value semantics like lists / maps; const deep at any depth. Strict at boundaries - unknown struct type, missing / unknown field at a literal, field-type mismatch on write, and field access on a non-struct are all positioned errors. Runtime: a KindStruct tagged-union value. |
| M13.2 | try / catch / throw | Catchable errors (keywords try / catch / throw). try { body } catch (NAME) { handler } binds the thrown value to $NAME in a fresh per-handler scope; throw EXPR; raises any value, convention the auto-hoisted Error{kind, message, file, line, col} struct. The runtime errors today's builtins / ops raise (out-of-bounds, missing key, type mismatch) are wrapped into Error on entry to the catch (kind defaults to "runtime" until a site opts into a tag); throw $err; in a catch re-raises to the enclosing try. Not catchable: exit (propagates through try), and return / break / continue (control flow, flow through try unchanged). No finally, no typed catch in v1. Internals: an ErrorSignal sentinel parallels ExitSignal, runtimeError.Kind threads the tag, and the Error struct is reserved (user code may not redefine it). |
M14 - Lexer comment + blank-line preservation
Closes the two M5-deferred items (fmt drops comments, fmt drops blank lines). No language change - the runtime still never sees comments.
- Lexer emits trivia tokens (
TOKEN_COMMENT_LINE,TOKEN_COMMENT_BLOCK,TOKEN_COMMENT_SHEBANG,TOKEN_BLANK_LINE). Shebang on line 1 col 1 is its own kind; runs of blank lines collapse to one. - Preprocessor and parser strip trivia at entry;
jennifer fmtwalks the raw lexer stream and re-emits trivia via a dedicatedemitTriviapath that doesn't disturb the surrounding state machine. - Block comments nest via depth counter; unterminated comments error at the outermost
/*. - Token-level over AST-level: the original spec proposed AST-attached
LeadingComments/TrailingCommentslots and ajennifer ast --with-commentsflag - dropped in favour of the simpler token-level path. Add them back if a future doc generator needs structured per-statement attachment.
See:
- user-guide/style-guide.md - Comments section (block comments nest; inline-comment spacing exception).
- technical/lexer.md - trivia emission, shebang detection, nesting depth counter.
- technical/cli_fmt.md -
fmt's trivia re-emission.
M15 - foundational libraries + first public release
Nine sub-milestones - two language (M15.2, M15.4), the rest library / tooling / release - that built out the foundational stdlib and shipped the first public release. Design detail: git history and the linked per-library docs. Two API patterns established here recur across later libraries:
- Codec-table shape - the algorithm / format / codec is a string argument (
hash.compute(b, algo),crc.compute(b, algo),encoding.encode(s, codec),encoding.toText(b, format)), collapsing parallel verbs into one (stance #1) and sidestepping the letters-only identifier rule that rejectshash.md5(...). - Integer-handle struct for opaque resources - a namespaced struct with a single
id as intindexing a Go-side map (os.Process,hash.Stream,crc.Stream).
| M# | Topic | Summary |
|---|---|---|
| M15.0 | existing-library extensions | lists.shuffle(xs) (Fisher-Yates, respects math.randSeed) and lists.range(start, end[, step]) (half-open; the single-arg form is deliberately omitted, stance #2). |
| M15.1 | os reshape + meta | Immutable per-run host facts became uppercase constants (PLATFORM / ARCH / EOL / DIRSEP / PATHSEP / ARGS), operations stay functions (getEnv / hasFlag / flag); dropped the JENNIFER_ prefix. New meta library for interpreter identity (VERSION / BUILD); the CLI forwards trailing args to os.ARGS (script path at index 0). Breaking renames (JENNIFER_VERSION -> meta.VERSION, os.platform() -> os.PLATFORM, os.JENNIFER_LF -> os.EOL), old names now plain "undefined" errors. |
| M15.2 | library-provided namespaced structs (language) | def x as lib.Name; type syntax + lib.Name{field: ...} literals + the Go Interpreter.RegisterNamespacedStruct API, reusing M13.1's value-semantics / deep-const / strict-boundary machinery (only resolution differs). User code can't register structs (Go-side only); no methods-on-structs / inheritance. Unblocks os.Result/Process, time.*, the hash/crc streams, later fs/net. |
| M15.3 | os external-program execution | First consumer of M15.2. os.Result{exitCode, stdout, stderr} + os.Process{pid}; os.run(argv) -> Result (blocking), os.spawn(argv) -> Process (non-blocking) + wait / poll / kill. argv is always list of string (no shell parsing - use ["sh", "-c", $cmd] explicitly). Non-zero exit codes are values, not errors. First user-visible two-binary split: jennifer-tiny has no os/exec, so it returns a friendly "use the default jennifer binary" error. |
| M15.4 | len built-in, core removed (language) | Promoted len(EXPR) from the auto-loaded core library to a reserved keyword + primary expression (polymorphic over string / list / map / bytes). Deleted internal/lib/core/; use core; returns a friendly migration error pointing at the built-in and meta.VERSION/BUILD. Every library now lives behind a use NAME; (stance #2, no exceptions). |
| M15.5 | time | Instants, durations, fixed-offset zones, strftime format / parse, ISO 8601 round-trip. Structs time.Time{nanos, offset} (private fields), time.Duration{nanos}, time.Zone{offset, name} (public, so an IANA/DST companion can build them). Granularity is a formatting property, not a type; Unix timestamps are constructor/accessor pairs, not a type. IANA/DST stay out of the fixed-offset core (a Go-backed extension, not a .j data map). Three parts: core + Unix + calendar + 1-based-ISO-weekday + arithmetic; strftime (%Y %m %d %H %M %S %z %a %A %b %B %j %u %%) + time.zone/inZone + time.UTC const alongside time.utc() + time.iso/fromIso; and examples/benchmark.j (the TinyGo-vs-Go suite; the sieve became trial-division since value-semantic list mutation makes a sieve O(N^2)). |
| M15.6 | hash + crc | Two parallel codec-table libraries: hash (crypto-style digests md5 / sha1 / sha256), crc (crc32 IEEE / crc64 ECMA) - the split keeps "transport integrity" vs "content addressing" visible at the import line (mirrors Go's crypto/* vs hash/crc*). Output is raw bytes. compute(b, algo) one-shot + stream(algo) / update / finalize (the integer-handle pattern). No convenience wrappers like hash.md5String - compose convert + encoding (stance #1). Struct hashing deferred. |
| M15.7 | encoding | Introspection (isAscii / lenBytes / lenRunes), binary-to-text toText / fromText (hex / base64 / base64-url), character encode / decode / codecs (ascii / iso-8859-1 / windows-1252 / ebcdic). The cross-kind UTF-8 pair stays in convert (M12); encoding owns the codec proliferation. Exact-match codec / format names (the original alias / case-normalisation layer was later dropped, stance #2); Windows-1252's five undefined positions reject symmetrically. The long-tail single-byte codecs shipped later in M16.15. |
| M15.8 | distribution + first public release | Packaging / CI / release only, no language change. CI: PR gate (go vet + gofmt + go test ./... + make build + per-binary smoke + em-dash scan); release on bare-semver tags cross-compiling linux/{amd64,arm64}, QEMU-smoke-testing the non-native arch, running the benchmark, publishing a draft Release. Packaging under packaging/{debian,arch,mime,man}/ (.deb via build-deb.sh with man pages + text/x-jennifer MIME; AUR PKGBUILD-bin / -git, auto-filled by the pipeline). Docs site via pinned mdBook 0.5.3 -> GitHub Pages. Conventions kept: bare semver tags (no v prefix), no top-level LICENSE (LGPL text in packaging/debian/copyright + a README link). Deferred (not gated): the macOS / Windows cross-build and a real apt repo stay in Requirements for 1.0.0 stable. |
M16 - I/O libraries and developer tooling
System libraries that touch the OS or do significant compute, opened by the spawn concurrency primitive (M16.0) the I/O libraries build on, then a lint / profile / test developer-tooling trio and a run of self-contained data libraries. Design detail: git history and the linked per-library / per-tool docs.
| M# | Topic | Summary |
|---|---|---|
| M16.0 | lightweight concurrency | spawn { ... } (block primary expression), task of T (new compound kind), the task library (wait / poll / discard / waitAll / waitAny). Goroutine-backed but race-free by construction: snapshotForSpawn deep-copies a globals+locals snapshot at launch; tasks share only the TaskState pointer (the one value-semantics carve-out). A per-run registry loud-fails unobserved task errors at exit (an undiscarded non-terminating spawn hangs at exit - the documented trade-off); task.wait re-raises a body error at the wait site; waitAny is the runtime's only reflect.Select. TinyGo builds with -stack-size=4mb -scheduler=tasks. |
| M16.1 | fs | Blocking filesystem I/O composed with spawn (no *Async): whole-file read/write/append (String/Bytes), metadata (exists/isFile/isDir/stat -> fs.Stat), dir ops with the two-verb recursion split (mkdir/mkdirAll, remove/removeAll, rename/list/walk), buffered fs.File handles (open/readLine/.../close, eof peeks a byte). Path- vs handle-form verbs dispatch on the first-arg kind; fs.File shares state across copies (handle carve-out). |
| M16.2 | net | TCP (connect/listen/accept/readBytes/writeBytes), UDP (listenUDP/sendTo/recvFrom), DNS (lookup/reverseLookup); polymorphic close/address over three handle registries; blocking calls compose with spawn (accept-loop-per-connection). Build-tag split: jennifer-tiny returns friendly-error stubs (no netdev in TinyGo). |
| M16.3 | regex | RE2 (Go regexp, linear-time) over strings: matches/find/findAll/replace/split/escape; regex.Match{text,start,end,groups,groupsNamed} (rune indices, start=-1 = no match); implicit 128-entry LRU pattern cache. Both binaries. |
| M16.4 | testing (primitives) | The irreducible system side a .j test framework needs: testing.run(name) invokes a zero-arg user function via Interpreter.CallByName, times it, classifies failures into a testing.Result; results/reset (mutex-guarded); report (text / TAP / JUnit). The one place exit is caught (Go-level, so language try/catch still can't). |
| M16.5 | interpreter performance pass | Five sub-parts, behaviour unchanged: .1 shared-marker COW on compound Values (append-in-a-loop O(N^2) -> amortised O(N)); .2 parse-time lexical slot resolution ((Depth,Slot) coordinates + a slots slice; undefined/shadowing promoted to parse-time errors); .3 pooled + pre-resolved + slot-bound function-call frames; .4 namespaced-call / comparison / arg-bind / root-cache fast paths; .5 compile-time constant folding + a Share() scalar fast path. Numbers in tinygo.md. |
| M16.6 | lint | jennifer lint flags compile-legal-but-suspect patterns: grouped IDs (L0nn source errors / L1nn correctness / L2nn style / L3nn lifecycle), # lint-disable[-file]: IDS suppression, --checks / .jennifer-lint config, human / JSON / GitHub output (a JSON pipeline stays valid even on a source error); exit 0/1/2. !tinygo. |
| M16.7 | profile | jennifer profile attributes work to .j source positions (what go tool pprof can't): a statement profile (hit count + self/cumulative wall-clock) and an --allocs value-copy profile; table / pprof (hand-encoded gzipped protobuf) / Chrome-trace output; program output to stderr so the profile owns stdout. !tinygo. |
| M16.8 | testing framework consolidation | An assertion vocabulary on M16.4 (assertEqual ... assertThrows, throwing Error{kind:"assertion"} at the call site), CallByNameWith/runWith arg dispatch, and the jennifer test subcommand (test* discovery or --filter, setUp/tearDown, --isolated per-test subprocess, text/TAP/JUnit, exit 0/1/2). Builtins can now raise a catchable error via interpreter.RaiseError. |
| M16.9 | json | Hand-rolled RFC 8259 encode/decode onto the tagged-union Value (no encoding/json, no reflect). encode/encodePretty/decode; structs and map of string to V -> objects, bytes -> base64, integral numbers -> int else float. Also closed a type hole: a generic collection (a fresh literal or decode result) is validated entry-by-entry against the declared element type at every binding boundary. Decode's return shape was later superseded by M16.16 (json.Value). |
| M16.10 | uuid | RFC 9562: generate("v4") (random) / generate("v7") (time-ordered) - the version a string arg since identifiers were letters-only - plus parse/isValid/version and constant NIL. Randomness was later repointed from math to crypto's crypto-grade source (M20.1), making v4/v7 unguessable; M22.3 renamed generate("v4") -> v4(). |
| M16.11 | compress | Byte-stream size reduction (distinct from encoding's representation codecs): pack/unpack for gzip/zlib/deflate with an optional fast/default/best level, plus a streaming compress.Stream. Go compress/*, TinyGo-clean. |
| M16.12 | archive | tar / zip containers over bytes (no fs, value-semantic): pack/unpack (verbs shared with compress) for tar/zip/tar.gz; a bundle is a list of archive.Entry{name,data,mode,mtime}. Go archive/tar+archive/zip. |
| M16.13 | os.isTerminal | os.isTerminal("stdout"/"stderr"/"stdin") -> bool (the ANSI-colour gate) via the char-device mode bit (os.ModeCharDevice) - pure stdlib (keeps x/term CLI-scoped), TinyGo-clean; an unstattable stream reports false. |
| M16.14 | net TLS | net.connectTLS(address) (implicit) and net.startTLS(conn) (in-place STARTTLS upgrade), both yielding the transport-agnostic net.Conn. Cert verification on by default, net.TLSOptions{skipVerify, caCert} opt-out. Go crypto/tls on the !tinygo build (stubbed on tiny). |
| M16.15 | encoding completion | toText/fromText gained quoted-printable, base32/base32-hex, ascii85, z85; the full ISO-8859-{1..16} / Windows-{1250..1258} single-byte codecs, generated from the Unicode mapping files (gen_codecs.go -> codecs_gen.go) so only ascii/ebcdic stay hand-written. Exact-match codec/format names (the normalisation layer was dropped, stance #2). |
| M16.16 | json.Value | The strict home for heterogeneous JSON without a language top type: json.decode returns an opaque json.Value - the first KindObject (the opaque sibling of KindStruct: discriminated by (namespace, name), minted only by a library, rejecting operators / [i] / .field). convert.typeOf -> "object", convert.objectType -> "json.Value". Reads + non-mutating writes share JSON Pointer (RFC 6901): typeOf/get/has/keys/length/as*/isNull and map/list/set/insert/append/remove/move (strict / no-vivify, - end-marker), node types in list/map vocabulary; a displayer renders a handle as its JSON. json.decode's return type changed (a pre-1.0 break); the decoder's number grammar tightened to json.org. No any keyword (rationale in rejected.md). |
M17 - module system for Jennifer-coded libraries
Jennifer-coded libraries get their own namespace, scope, and explicit exports via a real module boundary (import "x.j" as x;, a parser
- interpreter feature) beside the textual
include "x.j";splice (a preprocessor operation for composing one module from several files). Settled cross-cutting decisions (turned-down alternatives in rejected.md): each module is its own resolution context (ownuseset, namespace + export tables); the module top level is declarations-only (no mutable state, sospawncapture is unaffected); the one globalErrorstands (modules add distinctly-named error structs, never redefine it); private by default, a leadingexportpublishes (nopublic/privatekeyword); multi-file modules assemble viaincludebehind one entry file (no directory-as-module); a module needs a filesystem (an FS-lessjennifer-tinyhost fails with the ordinary search-path error). Design detail: git history, imports.md, interpreter.md.
| M# | Topic | Summary |
|---|---|---|
| M17.1 | source tree + resolution | internal/module Classify + Resolve map an import path (local ./ / ../, absolute /, or a bare name walked on the search path) to a canonical absolute path, rejecting an ambiguous name (found in two search dirs) and a not-found. The system module dir resolves --sysmoddir > JENNIFER_SYSMODDIR > compile default (surfaced as meta.SYSMODDIR; a named-but-missing dir refuses to start, the compile default is best-effort); -I DIR (repeatable) appends after it. jennifer version -v reports the layers. |
| M17.2 | import statement + loader | import "path.j" [as NAME]; is a real statement (ModuleImportStmt - the preprocessor passes it through, the parser builds the node). The loader runs each module in a fresh sub-interpreter sharing one moduleReg, so run-once (cached by canonical path), depth-first post-order init, and cycle detection (erroring with every edge named) all fall out of the recursion. Load-time errors (a parse error or a throwing def const init) aren't catchable (import is a declaration, not an expression). fmt / ast / tokens round-trip an import line. |
| M17.3 | module scope + namespacing | Declarations-only top level (checkModuleDeclarationsOnly: only def const / def struct / func / use / import; scripts keep both). loadModuleImports binds each alias (the as NAME, or the file stem) into moduleAliases, collision-checked against library prefixes. Consumer resolution rides the qualified-reference eval layer: evalQualifiedCall / evalQualifiedConst dispatch alias.fn(args) into the module's own interpreter via CallByNameWith (args evaluated in the consumer, body run against the module's globals + functions) and read alias.CONST. use non-transitivity, run-once sharing, and -race safety all follow from the fresh-sub-interpreter-per-module model. |
| M17.4 | exports + visibility | export publishes a top-level func / def struct / def const; unmarked names stay private (reaching mod.helper is a positioned "not exported" error), and export in a run script is rejected. checkReferentialClosure rejects an exported field / parameter typed as a private module struct (library / namespaced types cross freely). Cross-module struct identity = boundary translation (retagStructs): a module's structs are bare inside it and re-tagged to (module-stem, name) as a value crosses out to an importer and back, so def p as mod.Point, mod.Point{...}, field reads, and pass-back all type-check while a.Point / b.Point stay distinct; the retag also tags the element-type metadata a list / map carries (retagType). A co-located MODULE_test.j overlay (a token splice in jennifer test) runs white-box tests against the module's private names. |
| M17.5 | ansi module | First module built on the system (pure .j, one use os; across the boundary; a real dogfood of import / export / resolution). Exports color / bgColor / style (bold / dim / italic / underline / reverse) / rgb truecolor / strip, plus per-colour and per-style shortcuts (ansi.red(s), ansi.bold(s), ...). The ESC byte is built from a one-byte bytes; strip uses regex; unknown names throw. Stateless + TTY-aware: enabled() re-reads NO_COLOR / FORCE_COLOR / os.isTerminal("stdout") per call (no toggle state; degrades to always-on when os.isTerminal is absent). Colour is a string wrapper, so a %s|color= printf modifier was rejected in its favour. |
| M17.6 | semver module | Strict SemVer 2.0.0 as a second pure-.j reference module (use strings / convert / regex, so both binaries), and the base a future jvc package manager needs. Exports Version{major, minor, patch, prerelease, build} + parse (throws on invalid) / isValid / toString; compare / lt / eq / gt (full SemVer precedence: numeric core, prerelease ranks below release, build ignored); isStable (0.y.z unstable by convention) / isPrerelease; incMajor / incMinor / incPatch; and sort (own pass over compare, since lists.sort is scalar-only). Strict - a loose 1.2.3.4 is rejected. parse uses the anchored RE2 pattern with named groups; precedence + sort are hand-written (the algorithmic dogfood). Building it surfaced + fixed the M17.4 retagType gap (a consumer list of semver.Version handed back into a module list of Version). Range / constraint matching (^1.2.0, >=1.0.0, ~1.2.3) deferred to jvc. |
M18 - Jennifer-coded modules
Built atop the existing system libraries. Forty sub-milestones (with their nested parts) shipped as pure-Jennifer modules under modules/ (the directory introduced in M17), not compiled into the interpreter binary, except where noted as a Go system library. Each carries the standard discipline: a 100%-passing *_test.j overlay, a cmd/jennifer/*_test.go integration test, a docs/modules/*.md reference, an examples/modules/*_demo.j, and catalog / README / JENNIFER.md entries. Per-function detail lives in docs/modules/; this table is the milestone-number index (numbers were assigned in rough priority order).
| M# | Module(s) | Surface |
|---|---|---|
| M18.1 | csv | RFC 4180 parse / format (+ *With for any delimiter), header-keyed toRecords / fromRecords. |
| M18.2 | htmlwriter | build an HTML element tree and render escaped HTML5 (element / text / raw / render). |
| M18.3 | markdown | Markdown -> HTML. |
| M18.4.1/.7 | mime | RFC 5322 / 2045 message build + parse, incl. RFC 2047 encoded-words. |
| M18.4.2/.4 | smtp / pop / imap | mail send + POP3 / IMAP receive over net (plaintext / STARTTLS / implicit TLS). |
| M18.4.5/.6 | sasl / idna | SASL auth encoders (incl. XOAUTH2); Punycode / IDNA domains. |
| M18.5 | redis | RESP2 client over net. |
| M18.5.1 | resque | Resque-wire-compatible background jobs on redis. |
| M18.6 | memcache | memcached text-protocol client over net. |
| M18.6.1/.2 | session / ratelimit | server-side sessions + fixed-window rate limiting on memcache. |
| M18.7 | http | HTTP/1.1 client over net (https:// via TLS). |
| M18.7.1/.3 | gotify / rest / oauth | push notifications; ergonomic REST layer; OAuth2 get-a-token - all on http. |
| M18.8 | toml (library) | RFC TOML 1.0 encode / decode; opaque toml.Value, JSON-Pointer walk. TinyGo-clean. |
| M18.9.1 | httpd (library) | HTTP/1.1 server engine over net/http; pull-loop accept / respond. |
| M18.9.2 | web + jennifer serve | .j routing framework over httpd (routes by handler name, :param, middleware, web.Context), dispatched by meta.callMain; serve runs / --watch-reloads a program. |
| M18.10 | flatdb | file-backed JSON document store over json + fs; JSON-Pointer query / edit; crash-atomic save. |
| M18.11 | gpio | Linux GPIO over the sysfs / character-device interface. |
| M18.12 | docblock | the Jennifer doc-comment format + parser (FileDoc tree, drift diagnostics). |
| M18.13 | mqtt | MQTT 3.1.1 pub / sub client over net. |
| M18.14 | prometheus | metrics exposition (produce) + retrieval (query the HTTP API). |
| M18.15 | label | industrial label printing: build / render (ZPL + cab JScript) / emit pipeline. |
| M18.16 | web cookies + sessions | cookie helpers + cookie-keyed sessions on the web framework. |
| M18.17 | totp | RFC 6238 TOTP: generate / verify / uri. Over hash.hmac + encoding + time. |
| M18.18 | webhook | GitHub X-Hub-Signature-256 HMAC sign / verify (pure) + send (over http). |
| M18.19 | s3 | S3-compatible object storage over http (AWS SigV4): connect / get / put / delete / listObjects. One module for AWS S3 + MinIO / R2 / B2. Renamed bucket -> s3 once the M22.2 digit-identifier rule made s3 a legal namespace (cf. M22.3's iic -> i2c); a pre-1.0 break, one batch across the module / overlay / Go test / demo / docs. |
| M18.20 | dotenv | .env config: parse / read / load (into env via os.setEnv). Over fs + strings + os. |
| M18.21 | cron | parse cron expressions; next(schedule, after) / matches. A calculator over time. |
| M18.22 | log | leveled structured logging (debug..error; text / logfmt / json) to stdout / stderr / file / RFC 5424 syslog. |
| M18.23 | ical | iCalendar (RFC 5545) build + parse: a Calendar of VEVENTs, escaped + line-folded, dates through time. |
| M18.24 | vcard | vCard (RFC 6350) contacts build + parse; shares the content-line codec (ical_vcard_shared.inc.j) with ical. |
| M18.25 | jsonl | JSON Lines (NDJSON): encode / decode + whole-file + streaming Reader, over json + fs. |
| M18.26 | ipnet | IPv4 / IPv6 addresses + CIDR math: parseAddress / toString (RFC 5952) / parse / contains / netmask / broadcast. |
| M18.27 | ntp | SNTP network-time client over UDP: query / queryWith -> Result (server time + clock offset + round-trip delay). |
| M18.28 | statsd | fire-and-forget StatsD metrics over UDP (count / gauge / timing / set); the push counterpart to prometheus. |
| M18.29 | influxdb | InfluxDB 1.x client on http: line-protocol Point builders + write; query -> parsed Series. |
| M18.30 | slack / discord | incoming-webhook chat notifiers on http: plain send + Block Kit / embed builders (sendMessage). |
| M18.31 | telegram | Telegram Bot API on http: sendMessage / sendPhoto / getMe, getUpdates long-poll (stateful receive loop). |
| M18.32 | websocket | RFC 6455 client over net (ws:// / wss://): handshake + masked send / receive (auto-pong, fragment reassembly). |
| M18.33 | amqp | AMQP 0-9-1 client for RabbitMQ over net: handshake, declareQueue, publish, get (Basic.Get pull), ack. |
| M18.34 | multipart | multipart/form-data (RFC 7578) build + parse (binary-safe); web.multipartForm pairs it with web. |
| M18.35 | pdfwriter | generate PDF documents (text / lines / rects, Standard-14 fonts, FlateDecode via compress); byte-identical output. |
| M18.36 | bloom / ringbuffer | data structures: a Bloom filter (probabilistic set) + a fixed-capacity ring buffer (bounded FIFO). |
| M18.37 | tengine | a text/template-subset engine over a json.Value tree (if / range / with / pipes / layout inheritance). |
| M18.38 | barcode | QR (Reed-Solomon over GF(256), masking, versions 1-10) + 1D (code128 / code39 / ean13 / ean8 / itf); SVG / PNG / terminal. |
| M18.39 | mikrotik | MikroTik RouterOS API client over net: sentence-based binary framing, talk / print / run, plaintext + MD5 login. |
| M18.40 | password | password generate / validate / score against a policy Schema; entropy-based complexity (non-crypto RNG). |
Enabling changes these modules pulled into the system side (each documented under its library):
net.setReadDeadline/net.setWriteDeadline- separate read and write deadlines for socket timeouts (M18.13, first shipped as a combinedsetDeadline; extended to UDP sockets forntp, M18.27; split into independent read/write calls so a read timeout cannot block a later write).io.eprintf- the stdout-printftwin that writes to stderr (a newInterpreter.Err/BuiltinCtx.Errwriter), the stderr sinklogbuilds on (M18.22).tomlandhttpd- two new Go system libraries (a char-by-char TOML parser and anet/httpserver engine both belong in Go, not a.jmodule); M18.8 / M18.9.1.meta.callMain/meta.definedMain- resolve a function against the entry program (retagging module-own struct args across the boundary), the capability thewebframework dispatches handlers through (M18.9.2).hash.hmac(RFC 2104) and thesha512digest - the HMAC primitivetotp/webhookbuild on (and thatjwt/ SigV4 will reuse).
M19 - cross-cutting tooling
The catch-all bucket for interpreter / tooling work belonging to neither the M18 .j modules nor the M20 Go system libraries: M19.1-M19.5 a correctness / performance hardening pass over the core + libraries; M19.6 the coverage tool; M19.7 the @scope/package vendored-module resolver; M19.8 the one-time org / vanity-path relocation; M19.9 the audit-driven hardening pass. No reflect, no TinyGo-cleanliness break. Design detail: git history and the linked docs.
| M# | Topic | Summary |
|---|---|---|
| M19.1 | interpreter concurrency-safety | Both interpreter data races fixed, each pinned by a -race stress test. snapshotForSpawn snapshots the launching goroutine's own root frame (effectiveGlobal(env)), not the live i.global, so a nested spawn no longer races the main goroutine's global writes. Declared struct types are stamped once, single-threaded, before any statement (resolveDeclaredTypesOnce, after loadModuleImports) with a parser.Type.Resolved marker, so the per-execution re-resolve is a read-only no-op (also fixes a latent aliased-library-struct "canonical is aliased" rejection). Error timing unchanged. |
| M19.2 | value representation cleanup | Removed the inert copy-on-write machinery (Value.shared, Share(), Ensure(), ensureCOW, the per-VarExpr-read Share()); the mutation sites grow the binding's own backing in place, reads return the binding directly. Value semantics rest (as before) on eager deep copies at every store site; the write-through alternative is in rejected.md. Dead COW reporting stripped from the --allocs profiler. A fresh list / map / struct literal RHS is already private, so execDefine / execAssign skip the redundant copy (rhsFreshLiteral), proven by a profiler-backed test. |
| M19.3 | runtime perf: maps + call/loop hot path | Maps gained an advisory hash index (Value.mapIdx, encoded scalar key -> position) guarded by a len(mapIdx) == len(Map) stamp, so $m[$k] = $v over N keys is O(N) not O(N^2) while insertion order + value semantics are untouched (any stale / duplicate-key / non-hashable case fails the stamp and falls to the linear scan; a 100k-key build + for-each runs sub-second where the quadratic path took minutes). Plus: execForEach / execFor borrow frames from envPool; DefineAt skips the shadow walk on the slot path; Run pre-sizes i.global's slots; the three mutation sites write the root binding through (Depth, Slot); lists.reverse/head/tail/slice/concat shallow-copy instead of deep-copying an argument they overwrite. |
| M19.4 | resource lifecycle + numeric strictness | os.spawn handles keyed by a monotonic id, not the OS pid (a recycled pid can't alias a handle or misroute wait/poll/kill); the reaper drains captured buffers to strings and drops the live *bytes.Buffers (idempotent wait / poll-after-wait preserved). Numeric strictness: convert.toInt and math.floor/ceil/round reject NaN / +/-Inf / out-of-int64 floats; math.abs(MinInt64) errors; the toml decoder errors on an int past int64 (json keeps its deliberate fallback); the most-negative int literal -9223372036854775808 parses to MinInt64 (folded at unary-minus with a 2^63 range check). |
| M19.5 | module struct identity: canonical path | Module structs were tagged only by the file stem, so two modules sharing a basename (a/util.j, b/util.j, or two @scope/package decks) produced identical (namespace, name) identity and a foreign struct passed the other's type check. Identity is now keyed by the module's canonical (resolved) path: Value and parser.Type gained a ModPath field that Equal / MatchesDeclared compare alongside StructNS (which stays the stem, for display, so %v still reads benchmark.Point); the boundary retag + function-parameter stamping thread the path. Two imports of the same file stay one type; different files differ - no import error. |
| M19.6 | .j code coverage | jennifer test --coverage[=text|json] reports statement coverage by reusing the profiler's per-position hits (no second counting path): a statement profiler runs from top-level init through every test function, and renderCoverage intersects those hits with the AST's executable positions (statementPositions, mirroring execStmt's recording). Scoped to the tested program's files (an imported-but-only-ran module does not skew it), per-file + total; text names the never-executed positions, json owns stdout (the human report moves to stderr). The plain jennifer test path is unchanged (a nil collector). An HTML view is a later htmlwriter consumer. |
| M19.7 | @scope/package resolution (vendored decks) | A leading @ is a vendored-deck reference expanded by one function (resolveVendor): the @ swaps in the vendor root and a reference not ending in .j gets the package-named entry appended, so @jennifer/bitcoin, @jennifer/bitcoin/, and @jennifer/bitcoin/utils.j all reduce to a plain absolute path (after which run-once cache + M19.5 path identity are untouched). The entry is <package>.j, so moduleStem gives the package name and the display namespace / default alias fall out (import "@jennifer/bitcoin/" binds bitcoin.); two same-package decks across scopes are distinct types, colliding only on the default alias (resolve with as). Vendor root via FindVendorRoot: --vendor > JENNIFER_VENDOR > nearest vendor/ above the program. Path safety: @ front-only, no ./.., the file must stay inside the deck; a missing root is a guided error. The jvc manager over this is M26. |
| M19.8 | relocation: jennifer-language org + vanity path | A one-time mechanical relocation, no language / interpreter behavior change: the repo moves to a jennifer-language GitHub org, and (separately) the Go module path moves off GitHub to a vanity path jennifer-lang.dev/jennifer served by a go-import meta page, so module identity is host-independent. Two distinct targets: the Go module path -> the vanity domain (go.mod + 112 .go imports rewritten; the meta page maps it to the org repo, plus a go-source tag for pkg.go.dev); human-facing URLs -> github.com/jennifer-language/jennifer (the -lang.dev vs -language org spelling is deliberate; the redirect keeps old links working, but canonical in-tree URLs are updated). Metadata / CI / packaging swept until grep -rn 'mplx/jennifer-lang' is empty; the first-party deck scope placeholder flips @mplx/ -> @jennifer/ (doc-only until jvc). |
| M19.9 | audit-driven correctness + hardening | A systematic severity-ordered sweep of ~190 findings from a full bug / performance audit of internal/ + modules/, each fix with a regression test (Go test or _test.j overlay). Crash / safety: OS-entropy RNG seeding (predictable UUIDs / session ids / passwords fixed; math.randSeed stays the deterministic opt-in), json / toml decode nesting caps, a try-body scope fix (a throw-skipped def reads undefined, not null), tengine recursion guards, archive zip-slip + aggregate-decompression caps, a JSON-pointer overflow guard, the two interpreter -race races + REPL-vs-spawn table mutation. Correctness: lvalue writes re-fetch their root after the RHS, index / append stamp the element type, path-keyed module structs, barcode (Code 128 stop / EAN check digit / Code 39 * / QR mask 3), pdfwriter WinAnsi / Info encoding, a full toml conformance pass, http / web (CSRF / cookie / CORS / ETag) hardening, quote-aware vcard / ical. Performance: the O(N^2) accumulation patterns retired (map hash index, json object decode, wire-framing reads in redis / amqp / mqtt / mikrotik / imap / websocket, list-join builders in csv / barcode / influxdb / jsonl / statsd, GF(256) inline). Lifecycle: os.release + capped child output, non-blocking net.eof + mutex-guarded net.Conn, httpd admission bounds / must-respond timeout / TLS-1.2 floor / safe unix-socket unlink, per-stream mutex + a discard verb on hash / crc / compress streams, lint descending into spawn / repeat. Plus six coordinated pre-1.0 strictness breaks (each with tests + operator / scoping docs): % is floored (Python; -7 % 3 == 2, 7 % -3 == -2); integer arithmetic overflow is a positioned error, not a silent wrap; a duplicate map-literal key is an error; mixed int / float comparison is exact (no lossy promotion, so 9007199254740993 == 9007199254740992.0 is false); a function may not share a top-level var / const name (no-shadowing both directions); reading a constant with the $ sigil ($MAX) is a parse error. |
M20 - system libraries
Go system libraries (cryptographic primitives, plus formats too heavy or too reflect-bound for a Jennifer-coded .j module - the json pattern, M16.9), plus two cleanup keywords (defer / errdefer) and Unix-signal support that the libraries needed. Ten sub-milestones, each shipped with the standard discipline: a cmd/jennifer / *_test.go suite, a docs/libraries/*.md reference, cheatsheet + JENNIFER.md entries, and a runnable example. Per-function detail lives in docs/libraries/; this table is the milestone-number index.
| M# | Library / feature | Surface |
|---|---|---|
| M20.1 | crypto | Security primitives above hash, Go stdlib only: crypto-grade randBytes / randInt (rejection-sampled, unseedable), constant-time hmacEqual, key derivation hkdf / pbkdf (algo sha1/256/512). Repointed uuid's random source here, so v4 / v7 are unguessable. |
| M20.2 | xml | Hand-rolled XML encode / decode over an opaque xml.Value (KindObject) element tree; read (tag / text / attr / children) + XPath-style get / findAll / has (name / name[k] / *) + build (element / setAttr / setText / append). No encoding/xml. |
| M20.3 | yaml | YAML 1.2 over yaml.Value, the same read / walk / write surface as json / toml + asDatetime; decode / decodeAll, anchors / aliases by value, << merge keys. Backed by gopkg.in/yaml.v3 (the one config parser that earns a dep); pre-parse depth + node-budget guards. |
| M20.4 | intl | Message catalogs + locale-aware tr(key[, params]) ({name} interpolation, locale -> base -> default -> key fallback); load / setLocale / locale. A system library (global mutable state + O(1) Go-map lookup); single-pass, output-capped interpolation. |
| M20.5 | term | Terminal host control for TUIs: raw mode (makeRaw / restore, single-use State), size -> Size{rows, cols}, readByte. Over golang.org/x/term, build-tag split (stub on jennifer-tiny); refused in the REPL. |
| M20.6 | signals | Cooperative Unix signals: SIGUSR1 -> live interpreter diagnostics (dump-and-continue); os.catchSignal / os.gotSignal (opt-in int / term / hup / usr2) for graceful shutdown; CLI terminal-restore-on-abort. Establishes the checkpoint hook the loop-cancellation follow-on will build on. |
| M20.7 | defer / errdefer | defer CALL(args); - single call, args snapshotted, block-scoped LIFO, runs on every exit path, never crosses the function / spawn boundary (no finally - rejected). errdefer (Zig-style) fires only on a propagating error; adopted by the seven connect-then-handshake modules. Paired with the new fs.sync. |
| M20.8 | serial / spi / iic / gpio | Device I/O over Linux /dev + ioctl (x/sys/unix), build-tag split linux && !tinygo: three buses + character-device GPIO (reusing the sysfs M18.11 module's pin-keyed shape). I2C is iic (letters-only). Shared plumbing in internal/lib/devio; ioctl struct layouts pinned to the kernel ABI by size assertions. |
| M20.9 | sql | Relational client over database/sql: MySQL / MariaDB (go-sql-driver/mysql) + PostgreSQL (jackc/pgx), both pure-Go. open -> Connection, query / exec, pull cursor + typed as* accessors, begin / commit / rollback, prepared statements. Values bind only through placeholders. The first heavyweight library-layer dependency (design-decisions.md); build-tag split, default binary only. |
| M20.10 | crypto AE + signatures | AES-256-GCM encrypt / decrypt (32-byte key, nonce prepended, AEAD-only) + Ed25519 signKeypair / sign / verify (crypto.Keypair); added sha384 to hash. All Go stdlib, TinyGo-clean. Safe-by-construction: AEAD-only, one algorithm per verb, length-validated keys, internal nonce. Out: password hashing, raw block modes, RSA / ECDSA, x509, AAD. |
Cross-cutting additions these pulled into the language / system side (each documented under its library):
defer/errdefer(M20.7) - the deterministic-cleanup keywords; thefinallyrejection and theprintf-for-translation rejection (M20.4) are recorded in rejected.md.fs.sync(M20.7) - fsync a write / append handle to the device, distinct fromclose's reach-the-OS: durability you check, versus cleanup you defer.sha384/sha512(M20.10) - the SHA-2 digests filled out acrosshash.compute/hmac/ streaming; MD5 / SHA-1 stay checksum-only.- The nesting cap (
internal/limits.MaxNestingDepth) shared by the language parser and thejson/toml/xmldecoders - build-tag split so it stays belowjennifer-tiny's fixed-stack crash point (see technical/tinygo.md). - The
SIGUSR1diagnostics checkpoint hook (M20.6) - the loop-iteration / call checkpoint the deferred cooperative loop-cancellation follow-on (interruptible loops, REPL Ctrl-C, terminating-signal terminal restore) builds on.
M21 - general backlog
The catch-all bucket: milestones that fit no other track - not a Jennifer-coded module (M18), not interpreter / tooling work (M19), not a Go system library (M20), and not a beyond-1.0.0 idea (those live in the horizon collection). Anything worth recording with no natural home landed here, and graduated out once a cluster grew big enough to earn its own bucket. Thirteen sub-milestones across Jennifer-coded modules, security hardening, interpreter / language work, byte throughput, and Windows packaging. Each shipped module carries the standard discipline (a 100%-passing *_test.j overlay, a cmd/jennifer/*_test.go integration test, docs/modules/*.md + catalog + JENNIFER.md entries, a runnable demo); per-item detail lives in those docs - this table is the milestone-number index.
| M# | Topic | Summary |
|---|---|---|
| M21.1 | screen module | Terminal UI. Output-only layer (both binaries): a value-semantic cell Buffer (text / textColor / box / fill / hline / vline), ANSI control builders, and a flicker-free render / diff paint loop (repaints only changed row-runs). Interactive layer (term, default binary): a pure decodeKey(seq) -> Key (printable / arrows / nav / F1-F12 / ctrl-* / alt-*) plus nextKey / begin / end / size over raw mode. 0-based coords; drawing past an edge is clipped. The curses / bubbletea subset. |
| M21.2 | feed module | RSS 2.0 + Atom 1.0 build and parse in one module (format chosen on build, sniffed on parse); a value-semantic Feed of Entry plus fetch(url). Rides xml (parse / escaped build) and time (RFC 822 / 3339 dates). Hardened for untrusted feeds: xml's nesting cap + no-custom-entity decode, lenient dates, and a new 64 MiB http body cap closing an unbounded-body OOM. |
| M21.3 | jwt module | JWT (RFC 7519) sign / verify / decode / header, claims a json.Value; ten algorithms (HS* / RS* / ES* / EdDSA). verify pins the expected alg (blocks algorithm-confusion), enforces exp / nbf, HMAC-compares constant-time. Brought M20.10's deferred asymmetric crypto due: extends crypto with rsaSign / rsaVerify / ecdsaSign / ecdsaVerify over PEM keys (build-tag split - RS* / ES* need the default binary; HS* / EdDSA on both). |
| M21.4 | acme module | ACME (RFC 8555) client over http + json: directory / account / order / authorization / challenge (HTTP-01 keyAuthorization + DNS-01 dnsRecord math) / accept / finalize(CSR) / downloadCertificate. Per-request JWS + a fresh anti-replay nonce; CA problem docs surface as a catchable Error. Second crypto expansion: rsaGenerateKey / ecGenerateKey, jwkPublic (RFC 7638 thumbprint), csr (PKCS#10). Default binary only. |
| M21.5 | orm module | Data Mapper over sql (value-semantic, method-less structs rule out Active Record): repository CRUD keyed off an explicit orm.Schema (no reflection), a non-mutating functional query builder (from / where / orderBy / limit / join -> toSql) with per-dialect placeholders (mysql / postgres backend selector, injection-safe), records as map of string to string, plus a createTable DDL emitter. Enabling sql change: toDriverArgs spreads a single list argument (Jennifer has no spread). |
| M21.6 | font module | Pure-.j TrueType / SFNT parser (no Go - bytes + bitwise + fs, both binaries): parse / open -> Font, then unitsPerEm / name / advance / glyphPath (SVG d) / glyph (contours). Parses head / cmap (fmt 4 + 12) / maxp / hhea / hmtx / loca / glyf (simple and composite) / name. Closed the dogfood gap: scripts/genwordmark.j reproduces the wordmark byte-for-byte without fontTools. |
| M21.7 | injection / DoS hardening | Real wire-boundary fixes, each with a regression test: CRLF / control rejection in smtp (envelope + EHLO), http (method), websocket (handshake URL), web (cookie Path / Domain); jwt.verify rejects an unsupported crit; acme control-char escaping + validated nonce; websocket 64 MiB message cap (refused before allocation, 1009 close). Shipped the security model (SECURITY.md + security-model.md): full host access is by design, untrusted data on a wire is the bug class, the untrusted-code sandbox is DRAFT#11. |
| M21.8 | call-depth limit + profiler metric | Deep recursion that overflowed the Go stack (fatal crash / jennifer-tiny segfault) now raises a catchable "call stack too deep" - Python's RecursionError analogue. The counter lives on the per-goroutine root env (spawn-safe); the cap is build-tag split in internal/limits (10000 default / 48 tiny, whose stack rose 2 -> 4 MiB). Feeds a jennifer profile max-call-depth metric. |
| M21.9 | network + credential hardening | Sensible-default / optional checks, one regression test each: an optional timeoutMs on net.connect / connectTLS / startTLS, fs.chmod / chown, web Secure cookies, smtp no-cleartext-auth + anti-downgrade STARTTLS check + envelope validation, oauth 0600 token file, jwt.verifyWith (iss / aud), 64 MiB received-data caps across the network clients, amqp AMQPS. |
| M21.10 | byte-oriented throughput | The binary library (concat / slice / indexOf / contains / split / startsWith / endsWith - the byte counterpart to strings, value-semantic, TinyGo-clean) plus net.readAll / readN (bulk reads with catchable size / close-mid-frame caps). Reworked http / mqtt / imap onto bulk reads; a binary.indexOf benchmark fixture. |
| M21.11 | range syntax (..) | Half-open lo..hi (int bounds), three materializing / value-semantic uses: list construction (0..n), lazy for-each (for i in 0..n, no list built), and slicing ($xs[a..b] + open forms, over list / bytes / string). lo > hi a positioned error; materialisation bounded by a catchable limits.MaxRangeElements (int64-span-overflow-safe, not the uncatchable makeslice panic). New RangeExpr / SliceExpr AST; fmt emits .. tight. |
| M21.12 | per-frame allocation elimination | A call / block frame now does no per-binding or per-call heap allocation: a slot-backed binding (Slot >= 0) writes only the pooled slots slice (the identifier travels in Binding.Name; the rare name-based readers scan the small slot slice via lookupLocal), and evalCall binds args interleaved with no intermediate []Value. Recursive fib ~300k -> ~59 allocs/op; Go's minor page faults fell ~7x. Value semantics and the vars fallback (REPL) intact; guarded by TestFrameAllocationsStayLow. |
| M21.13 | Windows installer | An Inno Setup script (packaging/windows/jennifer.iss) built by a windows-latest CI job into jennifer-<ver>-setup.exe: per-user (no admin), adds to PATH, bundles the system modules + sets JENNIFER_SYSMODDIR, opt-in .j association, Apps & Features uninstaller. Unsigned, best-effort unsupported build. scripts/build-windows-installer.sh recreates it locally via Wine. Promoting Windows to supported is the follow-on, M31.1. |
Cross-cutting threads:
- The
cryptoasymmetric surface grew here, not in M20: M21.3 addedrsaSign/rsaVerify/ecdsaSign/ecdsaVerify(PEM; PKCS#1 v1.5 / JOSE R||S) for JWT interop, and M21.4 addedrsaGenerateKey/ecGenerateKey/jwkPublic/csrfor ACME - all build-tag split off the TinyGo build (crypto/x509is absent there), so the asymmetric verbs are default-binary only while the symmetric primitives and Ed25519 stay on both. - A 64 MiB received-data cap became the standard DoS guard across the network clients (
http/redis/pop/imap/mqtt/websocket, in M21.2 / M21.7 / M21.9), so an attacker-declared length or an unbounded stream fails catchably instead of OOMing. - Not all of M21 is modules. M21.8 / M21.11 / M21.12 are interpreter and language work (the call-depth guard, range syntax, the allocation model), M21.10 is the throughput library, and M21.13 is packaging - which is why this bucket is the general catch-all rather than an M18 module run.
- The
sqllist-spread (M21.5) -toDriverArgsspreading a singlelistargument into the placeholder sequence - is the one small language-adjacent enabler this track pulled in, for runtime-shaped parameterized queries.
M22 - additional libraries and language refinements
Post-backlog work belonging to neither the M20 system-library set nor the M21 catch-all: focused standard-library and .j-module additions or enhancements, plus small language cleanups, each landing when the need was concrete. Eighteen sub-milestones. Each shipped with the standard discipline (a library adds a Go package + internal/stdlib.InstallAll line + docs/libraries/ reference + cheatsheet rows; a .j module ships a 100%-passing *_test.j overlay + a cmd/jennifer/*_test.go integration test + docs/modules/ doc + catalog + JENNIFER.md bullet + a demo; a language feature updates the spec + grammar EBNF/PEG + the editor highlighters). Per-item surface detail lives in those docs; this table is the milestone-number index.
| M# | Topic | Summary |
|---|---|---|
| M22.1 | path library | OS-aware path manipulation over Go path/filepath, the pure-string counterpart to fs's I/O: base / dir / ext / stem / join (variadic) / clean / isAbs / split. Manipulation subset only (no disk-touching Abs / Glob / Walk), so no build-tag split, TinyGo-clean, both binaries. Host separator (portable). Explicitly not a filename sanitizer. |
| M22.2 | digits in identifiers | Relaxed letters-only to letter-initial [A-Za-z][A-Za-z0-9]* (still no _, <= 64); constants [A-Z][A-Z0-9]*(_[A-Z][A-Z0-9]*)* (digits within a chunk). Additive / non-breaking - so sha256 / SHA256 / HTTP2 / SCRAM_SHA256 legal, AES_256 still illegal (write AES256). One IDENT token, so it applies uniformly (vars / params / functions / struct type and field names / use as / import as aliases); constants the one separately-lexed class. Graduated DRAFT#20; unlocks the M22.3 renames. |
| M22.3 | library renames | The breaking renames the digit rule unlocked, one pre-1.0 batch (no deprecation window): use iic; -> use i2c;; uuid.generate("v4"/"v7") -> uuid.v4() / v7() (generate removed); crypto.pbkdf -> pbkdf2. Not renamed: binary (the bytes keyword, not a digit), intl (JS Intl). Each batch updated the library, its overlay + Go test, docs, cheatsheet, and every caller. Rejected (stance #1): per-algorithm digest shortcuts (hash.sha256 / crc.crc32) - the hash / crypto family is irreducibly algorithm-as-value (SCRAM / JWT / TLS negotiate the hash), so compute(b, algo) stays canonical (rejected.md). |
| M22.4 | match statement | Multi-way value dispatch match (EXPR) { when V [, V ...] { } ... else { } }: subject evaluated once, strict == (Value.Equal), first match wins, values short-circuit left-to-right, no fall-through, not a break target (break / continue act on the enclosing loop), optional else last, no-match-no-else is a no-op; a statement, each arm its own scope. Keywords match / when (pre-1.0 break). fmt lays arms out flat (each when / else on its own line, not cuddled). New MatchStmt; the header { ambiguity (when Name { vs a Name{...} literal) is resolved by the parser's noStructLit flag. Designed to grow into M22.5 patterns. |
| M22.5 | sum types (enums) + pattern match | def enum Name { Variant [ { field as type, ... } ], ... }; (top-level, hoisted like def struct); Name.Variant{...} / Name.Variant construction; match gains variant patterns when Variant(bind) { } binding the payload into a fresh per-arm scope, with exhaustiveness checked at resolve time for a local / same-module enum subject. New Value KindEnum mirroring KindStruct (value semantics, deep-const, cross-module identity by canonical path, retag), tagged-union / reflect-free. Case-agnostic naming - Prefix.Member resolved from the tables at eval, not capitalisation, so no PascalCase rule is forced on a teaching language (only the pre-existing "ALL-CAPS is a constant" rule still applies). Graduated DRAFT#19. |
| M22.6 | TLS options for http / rest | Reach an HTTPS host with a self-signed / private-CA cert. http.TlsOptions{skipVerify, caCert} + send variants http.requestTls / requestWithTls; rest.Client.tls field + a rest.client(baseUrl) constructor (the added required field breaks the bare literal) + rest.withCA(c, pem) (preferred) / rest.insecure(c). Secure by default (verification stays on unless explicitly relaxed). Pure .j plumbing to net.connectTLS (M16.14) - no interpreter or system-library change. Verified end-to-end against a self-signed loopback (http_tls_test.go). Dogfoods M22.9 (http.TlsOptions as a struct field across main -> rest -> http). |
| M22.7 | graphql client module | Thin GraphQL client over http / rest: client(endpoint) + bearer / basic / header / withCA / insecure builders, query(c, query, variables) -> json.Value (POST {query, variables}; result under /data). Gets the GraphQL convention right - a non-empty top-level errors array is an HTTP 200, not a non-2xx - raising a graphql error with the joined messages; a non-2xx also raises. queryNamed / tryQueryNamed add an operationName; tryQuery / tryQueryNamed return the raw envelope (no raise on GraphQL errors) for structured-error handling via exported hasErrors / errorMessages + json accessors. POSTs the endpoint verbatim via http.requestTls (rest's joinUrl would append a trailing slash). The GraphQL dependency the M27 Unraid deck consumes. |
| M22.8 | self-referential struct guard | A struct containing itself by value (direct or mutual) has no finite zero value and used to fatally stack-overflow when its zero / a literal was built; Interpreter.checkStructCycles (a gray/black DFS over direct struct-typed fields, run after hoisting at both Run and EvalInteractive) now rejects it at hoist time with a positioned error pointing at list of Self. Recursion through a list / map / task field and ordinary nesting stay legal. |
| M22.9 | module structs as struct fields | A module struct used as a struct field type now type-checks (was rejected "expects geo.Point, got struct" though it worked as a variable type). resolveDeclaredTypesOnce now also stamps struct field types with the module's (stem, path) identity (recursing into list / map elements), and a module struct's own sibling-struct field types retag to the module identity at the boundary check (construction + field assignment, via retagType). Value semantics + chained lvalues into a nested module-struct field work. |
| M22.10 | byte-capable http download | http could not fetch a binary body (the response was always convert.stringFromBytes(_, "utf-8"), which throws on non-UTF-8). Added a byte path reusing the already byte-exact framing: http.BytesResponse (body as bytes) + requestBytes / requestWithBytes / getBytes (parseResponse split into a parseRaw byte core + a text decoder). Text verbs unchanged (still throw on non-UTF-8, by design); rest stays text / JSON. Pinned by http_bytes_test.go (a gzip round-trips with matching sha256). |
| M22.11 | hardening: injection & output-encoding | From two security / robustness audits (internal/ + modules/; per-finding detail - severity, reproducer, sites - in the two report files). orm identifier / operator allowlists; imap / pop CRLF rejection; statsd metric validation; htmlwriter tag / attr checks + exported safeUrl; json.encode HTML-escaping (< > & U+2028 U+2029); a new constant-time hash.equal; http.parseUrl authority split; dotenv env-name validation (OM-021); ipnet v4-mapped ::ffff:0:0/96 fold (unmap). Reasoned non-literal: a tengine no-auto-escape SECURITY warning, not an auto-escape mode (OM-012, keeps text/template semantics); OM-010 folds only the well-defined ::ffff:0:0/96 mapped form. |
| M22.12 | hardening: network / resource / path robustness | 64 MiB caps on server-declared lengths; connect / read timeouts + cleartext warnings; a net.readAll default cap; net.startTLS locking; bounded handle registries + a sql query deadline + DSN-password redaction; archive per-entry budget; httpd.serveDir traversal rejection + unix:-socket perms; the json / toml / yaml write-API depth guard. Reasoned non-literal: OF-007 applied full bounds + deadline + teardown to sql (the worst instance) and registry bounds to fs / os / compress / net. |
| M22.13 | hardening: web framework | web.sessionId trusts only a minted-UUID-shaped cookie + web.renewSession; the web.onError hook (else stderr); lenient form / percent decoding + csrf content-type gate; a HEAD served by the matching GET route; httpd per-request timer cleanup. Reasoned non-literal: OM-003 shipped serial for v1 with loud docs because concurrent dispatch raced shared interpreter state - later removed properly in M22.17; OF-006 (unrestricted meta.call) shipped a docs allowlist pattern + meta.md example, not a new primitive (a two-line .j allowlist suffices; web only dispatches author-registered handler names). |
| M22.14 | imap criteria-based search | imap.search(session) -> imap.search(session, criteria) (breaking; an empty imap.criteria() = the old SEARCH ALL). imap.Criteria filters hybrid: server-side fields map to one IMAP SEARCH (substring on subject/from/to/text, a since / before day-range as time.Time, flags, size - all ANDed, one round-trip), client-side fields refine the candidates by fetching only headers / BODYSTRUCTURE (subjectRegex / fromRegex, hasAttachments heuristic). Injection-safe (quoteArg + control-checked line); a time-of-day bound is transparently refined client-side against each candidate's INTERNALDATE. Pure .j. |
| M22.15 | imap browse / APPEND / rename | Rounded imap into a full read / browse / manage / save client: folders (LIST) + status (STATUS, no select), append / appendWith (APPEND via the synchronizing-literal continuation flow). Terminology rename (pre-1.0 breaking): mailbox -> folder (selectFolder / createFolder / the Folder struct); the LIST verb is folders (list is a reserved type keyword). |
| M22.16 | core hardening sweep | Small internal/ correctness / resource / performance residuals, one reviewed pass: sql cursor deadline split from the acquire / statement deadline (caller-settable sql.setQueryTimeout); httpd registry maxServers bound + catchable "too many open"; md5 / sha1 labelled non-cryptographic; the json / toml / yaml write-depth guard checks only the touched node (not a full re-scan) and folds three exceedsDepth copies into a shared helper; an include total-token cap (a diamond that re-includes the previous file expands 2^n); the printf field cap lowered from 1<<20 + closed-form padding; incremental json / xml decoder error positions. |
| M22.17 | web hardening (concurrent dispatch) | Turned web from strictly-serial into safely-concurrent, interpreter-first (four ordered steps, each with a gating test; reasoning in design-decisions.md). (1) Error crosses meta.callMain intact - track a module's declared structs separately from the auto-injected Error, retag only the former. (2) Race-safe dispatch - the call-depth counter became a per-chain *int threaded down the frames (fresh at each goroutine root, incremented at evalCall and every cross-boundary dispatch), fixing both the -race data race and a fatal re-entry Go-stack overflow; the rest of the reachable shared state (map hash-index reads, resolver caches, profiler, diag) audited clean. (3) spawn-per-request in web (errors caught inside; task.discard prunes; concurrency bounded by httpd). (4) web.onError fail-safe - always stderr and the hook, which now binds as Error. The 1700 ms -> 3 ms latency probe is the regression gate. Supersedes the M22.13 OM-003 "web stays serial" note. |
| M22.18 | dotenv layering, profiles, interpolation | Grew dotenv into a layered loader: readCascade / resolve / loadCascade / autoload merge .env -> .env.local -> .env.<profile> -> .env.<profile>.local from one fixed dir (no walk-up, closing the file-hijack class), with a real OS env var always winning over a file value; profile from JENNIFER_ENV (empty = base files only). Enhanced parse: backward-reference ${VAR} (unquoted + double-quoted, resolving earlier keys -> real OS env -> "", so cycles are impossible; no $(...) command substitution), multi-line double-quoted values (positioned unterminated-quote error). Strict profile validation ^[A-Za-z0-9_-]{1,64}$ (no traversal). Single-file load keeps unconditional-override (the primitive); the cascade loaders are real-env-wins. os.getEnv(k) != "" is the "already set" test (no os.hasEnv; "" counts as unset). Consolidated the ${VAR} / multi-line items parked in M23.8. |
M23 - module improvements
Done. M22 lifted a handful of modules (imap, http); M23 generalized that across the module ecosystem. A survey of all 63 .j modules found the gaps cluster into cross-cutting themes rather than scattering per module, so the work was organized by theme - a shared pattern (a receive loop, a persistent connection, a backend selector) built once and applied to every module that needs it. Fifteen sub-milestones. Each shipped the standard per-module discipline (a 100%-passing *_test.j overlay, a cmd/jennifer/*_test.go integration test where a live server applies, docs/modules/ + catalog + JENNIFER.md entries, a demo, both binaries build); per-item surface detail lives in those docs, and the biggest sub-milestones keep their own reference docs. This table is the milestone-number index. Deliberate non-goals: password hashing (needs x/crypto) and fully-typed orm rows (awaits struct reflection).
| M# | Topic | Summary |
|---|---|---|
| M23.1 | streaming / server-push read loops | One cooperative receive-loop-over-net shape - a blocking receive* (+ timeout-bounded poll), no callbacks, the app opting into concurrency via spawn - across redis (pub/sub + one-round-trip pipeline + multi/exec + scan), amqp (Basic.Consume + exchanges + publisher confirms), mqtt (QoS-1 + retained + Last-Will + reconnect), mikrotik (.tag-correlated + /listen), imap (RFC 2177 IDLE). Wire framing factored into pure encode/parse (100% overlay); live loops on mock-server Go tests. Fixed redis coalesced-frame buffering and imap stale-deadline. Residual: a value-semantic Session can't retain a cross-call buffer (a buffered net reader is the general fix). |
| M23.2 | connection reuse / persistent sessions | Reusable connections so a loop stops re-handshaking: http.Session (reused net.Conn + cookie jar, framed one-response reader) + a policy http.send over http.Options (3xx redirects, cookie jar, 429/5xx retry+backoff); rest.Client routes through it (tls folded into Options, pre-1.0 break; paginate / paginateCursor walk every page); smtp split into open / sendOn / close so N messages pay one TLS+auth handshake. Pinned by keep-alive / cookie / pagination / session-reuse Go tests. |
| M23.3 | stable-identity verbs | Volatile sequence numbers broke "fetch only what's new": imap went UID-only (every verb sends its UID form + search returns UIDs + atomic move + ranged fetchPartial; pre-1.0 break, a seq+UID twin set rejected on stance #1), pop added uidl -> MessageId + top / reset / noop (additive). Pinned by exact-wire-command fake-server tests. |
| M23.4 | byte-exact binary values | redis / memcache threw on a non-UTF-8 bulk value; added bytes-valued setBytes / getBytes (text verbs unchanged, still strict-throw) plus typed redis hash/list/set helpers and memcache getMulti / gets / cas. NUL/CR/LF/0xFF byte-count-framed round-trip tests. |
| M23.5 | selectable backends | session / ratelimit were memcache-only; added the kv system library (in-process per-key-TTL store, integer handle shared across spawn, openFile persisted) and the kvstore module selector (Store a sum-type enum Memcache/Redis/Local, exhaustiveness-matched), and moved session (values now a json.Value) and ratelimit (fixedWindow / slidingWindow -> Result) onto it (both pre-1.0 break). Interpreter fix: a module enum as a struct-field type across a boundary. |
| M23.6 | format & coverage completeness | The broadest track (13 pieces) - the deepest per-module gaps. ipnet subnet math + scope classifier; orm ordinary-query surface (select / aggregate / join / groupBy+having, render-time allowlist re-check); markdown images / blockquotes / nested lists; vcard full N / TYPE; ical recurrence + TZID + VTODO/VALARM; mime charset-on-decode + RFC 2231; feed enclosures + author/categories; s3 presign + byte bodies + multipart; barcode UPC / code93 / DataMatrix + QR 11-40; font a CFF/OTTO backend + an O(1)-per-query fix; pdfwriter embedded TrueType fonts + image XObjects + text layout. Several pre-1.0 struct-shape breaks; each validated against an independent reference. |
| M23.7 | observability completeness | prometheus histogram + summary types (cumulative buckets, nearest-rank quantiles, exact text format, observeAt / pushgatewayPath); statsd *Rate / *Tagged / *Float verbs + a Batch datagram packer + a control-char-validated prefix; influxdb 2.x / 3.x via a Version enum (Flux queryFlux, token redaction). Each validated against an independent reference parser. |
| M23.8 | ergonomic papercuts + notifier richness | Cheap high-value wins across 15 modules: log child logger + fatal; cron named months/weekdays + @-macros; jwt verifyLeeway / verifyWithKeys / verifyJwks; totp generateSecret / hotp / verifyWindow; bloom optimal / serialize; csv formatSafe + Dialect + streaming; richer discord / telegram / slack / gotify messages; webhook replay-protected signing; and more. Core fall-out: http.requestRawBody / requestRawBodyTls (a byte request body, for telegram uploads). |
| M23.9 | fmt: shape-aware wrapping + raw-literal fidelity | Rebuilt jennifer fmt (token-stream, no AST): width-aware wrapping (one element/arg per line past 100 cols, struct/map over 6 members, calls hug ), inline single-statement when arms, operator-chain fill-break), tight Go-style literal spacing, and raw-literal fidelity via a lexer Token.Raw (digit separators / base prefix / quote style / embedded newlines survive verbatim). -w is atomic + self-verifying (re-lexes its output, refuses to corrupt). Corpus reflowed (~700 -> ~215 over-limit lines). Pre-1.0 break (canonical output changed); TestFmtPreservesTokenStream proves a format changes only whitespace. |
| M23.10 | interactive stdin for os.run / os.spawn | os.run(argv, stdin) feeds an optional trailing string / bytes to the child's stdin then closes it (variadic - one-arg calls unchanged), output drained into the 16 MiB-capped buffers - deadlock-free by construction. Unblocks a stateless filter / subprocess exchange (M23.13's mcp.connectStdio built on it). Deferred: interactive streaming pipes on a spawned Process. |
| M23.11 | jsonrpc module | JSON-RPC 2.0 client + server, pure .j over json + http. Client call / notify (json.Value params/results, every failure a unified catchable Error); a transport-agnostic handle(requestBody) runs the whole protocol (single / notification / batch / reserved codes) dispatching each method to a top-level func by name via meta.callMain; a thrown handler yields a generic -32603 (detail stays server-side). Chosen over gRPC (protobuf + HTTP/2 + codegen would be a heavy Go library, not a .j module). |
| M23.12 | match / enum adoption | Applied match / enum to the genuine closed-variant-set cases (open sets stayed strings): non-breaking match in 14 modules; a non-breaking private enum (markdown); breaking API enums (htmlwriter.NodeKind, prometheus.MetricType, barcode.SymbolKind, orm.Dialect / ColumnKind, totp.Algorithm); and a shared transport.Security{None,Tls,Starttls} replacing the stringly-typed security field on six socket clients (the mail three accept all modes, the other three reject Starttls). Exhaustiveness-checked. |
| M23.13 | mcp module (Model Context Protocol, stateless) | A server exposing tools / resources / prompts (server / addTool / addResource / addPrompt, handle / serveStdio) plus a client (HTTP connect / stdio connectStdio over os.run) sharing one call surface; MCP is JSON-RPC 2.0 so the client reuses jsonrpc.call. tools/call is allow-listed (only a registered handler; a thrown handler yields a generic message). Validated end-to-end against the official MCP Python SDK. Not planned: the stateful Streamable-HTTP transport (needs an SSE push primitive httpd lacks). |
| M23.14 | raw single-quoted string literals | Breaking split so each delimiter does one job: "..." stays cooked (escapes processed), '...' becomes raw (verbatim to the next ', spanning newlines - a free heredoc); embed a ' via the cooked form ("it's"). No r"..." prefix (rejected - the delimiter is the mode). Lexer-confined (raw := quote == '\''); src is []rune so multibyte content is exact; Token.Raw round-trips (incl. multi-line). Migration a no-op; docs / grammar / four editor highlighters updated. |
| M23.15 | orm: a batteries-included data-mapper ORM | Lifted orm from a thin query builder to a full ORM (still Data Mapper): a Session unit-of-work + column-attribute DDL builders (.1); migrations split into the sibling sqlmigrate module (.1b); associations + joinRelation (.2); eager loading in a fixed 1+R queries (.3); a write path - upsert / insertMany / insertReturning / updateWhere / deleteWhere / save (.4); finders + whereNull / whereBetween / distinct / page (.5). Rows stay map of string to string (no reflection), relations attach via a side Result (no any); whereRaw / typed-struct mapping / Active Record rejected. Keeps its own docs/modules/orm.md + sqlmigrate.md. |
Cross-cutting threads:
- Not all of M23 is modules. M23.9 (
fmt), M23.10 (os.runstdin), and M23.14 (raw single-quoted strings) are tooling / interpreter / language work; the rest is the module ecosystem. - Build once, apply everywhere was the payoff of organizing by theme: a shared receive-loop shape (M23.1) and a shared backend selector (the
kvlibrary +kvstoreenum, M23.5), each built once and threaded through every module that needs it. match/enum(M22.4 / M22.5) landed across the ecosystem in M23.12, and the largest sub-milestone - M23.15'sorm+ the newsqlmigrate- is a full batteries-included ORM in its own right.
M24 - language, concurrency, and libraries
Done. The first batch of horizon drafts graduated into a scheduled track, then grew into the broadest single milestone: a CLI ergonomic, the language's biggest expressiveness feature (first-class functions), a concurrency-coordination layer, a numeric / ML library stack, two ASN.1 protocol clients, and a run of library / language refinements. Twenty-three sub-milestones. Each shipped with the standard discipline - spec + grammar EBNF/PEG + editor highlighters where a language feature lands; a Go package + internal/stdlib.InstallAll line + docs/libraries/ reference + cheatsheet where a library lands; a 100%-passing *_test.j overlay + cmd/jennifer/*_test.go + docs/modules/ + catalog + JENNIFER.md + demo where a .j module lands; both binaries build; the full test close-out. Per-item surface detail lives in those docs - this table is the milestone-number index.
| M# | Topic | Summary |
|---|---|---|
| M24.1 | run profiles / --env flag | jennifer run --env=prod script.j sets JENNIFER_ENV=prod before Run - identical to the env var, no interpreter change (dotenv's .env.<profile> selection is the first consumer). cmd/jennifer-only: parseRunArgs + a validRunProfile allowlist ([A-Za-z0-9_-], 1-64, blocks a .env.<profile> traversal); an explicit flag overrides an inherited env. Both binaries. Graduated DRAFT#26. |
| M24.2 | first-class functions | Closed the largest expressiveness gap - a function held in a value (type func), immutable, not a pointer (so the value-semantics stance is untouched); a bare function name in expression position is the value, a name + ( is a call (no &NAME sigil). New KindFunc / TypeFunc; a CallValueExpr postfix-( node calls any function-valued expression ($f(x), $fns[0](x), makeAdder(1)(2)). Enables the higher-order lists layer (map / filter / reduce / find / any / all / sortBy, via BuiltinCtx.Invoke). Deferred: Tier 2 closures + migrating string-name dispatch. Graduated DRAFT#18. |
| M24.3 | concurrency coordination | Gave spawn / task cancellation, bounded waits, and channels. task.cancel / cancelled - cooperative, observed at a shared loopCheckpoint (a catchable "task cancelled" at loop safe points; one atomic-nil check per iteration, hot path untouched); waitTimeout / waitAnyTimeout throw on timeout. channel of T + the channel library (make / send / recv / close / select / len / capacity): a KindChannel shares a *ChannelState while send deep-copies the value in (conduit shared, data copied), and channel is a contextual keyword. Buffer capacity capped (OOM guard); send-on-closed / double-close catchable. Graduated DRAFT#21. Deferred: cancellable channel ops, index-returning select. |
| M24.4 | stats library | 26 descriptive statistics over list of int / list of float - central tendency (geo / harmonic / weighted means, modes), spread (population + sample* Bessel, iqr, mad), shape (skewness / excess kurtosis), order (percentile / quartiles), sum / zscore, bivariate (correlation / covariance), describe -> stats.Summary. Strict like math (an undefined result is a catchable error, never a NaN); real reductions -> float, selections preserve the input kind. Pure Go, TinyGo-clean. Graduated DRAFT#5. |
| M24.5 | ml library | A classical / predictive ML core (scikit-learn-lite) over stats / linalg, not deep learning. Fit/predict: a fit fn -> an opaque ml.Model handle applied with predict / transform / predictProba / free. Regression (linear / ridge / lasso / kNN / tree / forest), classifiers (kNN / naiveBayes / logistic / CART tree / forest), kMeans, pca, scalers; metrics (accuracy / precision / recall / f1 / rocAuc / rmse / r2 / ...); trainTestSplit / kFold / polynomialFeatures. Random draws from math's seedable source; hyper-parameters bounded (a runaway value -> catchable). Pure Go, both binaries. |
| M24.6 | linalg library | Linear algebra over Jennifer's value types, the stats companion. Vectors (list of float): dot / distance / cross / normalize; matrices (list of list of float): transpose / trace / determinant / inverse / solve / identity / zeros / shape; polymorphic norm / scale / add / sub; matmul dispatches on operand shape. Direct algorithms (Gaussian / Gauss-Jordan), no gonum. Strict (dimension mismatch / singular / non-finite -> catchable); every value bounded by MaxMatrixElements. Pure Go, both binaries. |
| M24.7 | asn1 library | ASN.1 BER decode / DER encode, the byte enabler for LDAP / SNMP. Hand-rolled (Go's encoding/asn1 is DER-only + reflect-bound). An opaque asn1.Value element tree (like json / xml) walked by (node, pointer) accessors whose tokens are child indices (tagClass / tagNumber / asInt / asOid / ...); typed constructors (integer / oid / sequence / tagged EXPLICIT / retag IMPLICIT). A decode-node budget + nesting cap turn a bomb into a catchable error; output byte-verified against Go's encoding/asn1. Pure Go, both binaries. |
| M24.8 | snmp client + agent | SNMP v1 / v2c client and agent (modules/snmp.j) over asn1 + net UDP. Client get / getNext / set / walk -> list of Varbind typed by SNMP type (counter32 / gauge32 / timeTicks via asn1.retag); request-id check, deadline + retries. Agent agent / serve answers GET / GETNEXT / SET for a MIB (GETNEXT in numeric OID order so a walk traverses it). Codec factored pure (socketless overlay); live loopback + real-hardware verified. No v3 / traps / GETBULK. Default binary only. |
| M24.9 | ldap client + directory server | LDAP v3 (RFC 4511) client and lightweight directory server over asn1 BER + net, LDAPS / StartTLS via transport.Security. Client bind / SASL bindSasl, search (RFC 4515 parseFilter or constructors) / searchPaged, writes add / modify / delete / modifyDn / passwordModify. Server answers simple bind (password schemes) + filtered search - read-only over the wire, mutable from code via a shared kv store (in-memory or file-backed), enough to back Authelia. Codec factored pure. Default binary only. |
| M24.10 | math foundations + special fns | Filled the math gaps for 1.0, folded in. Everyday: trig (+ inverses, atan2), hyperbolic, exp / log (exp / ln / log2 / arbitrary-base log), cbrt / hypot / sign, combinatorics (factorial / comb / perm / gcd / lcm, exact-int overflow-checked), TAU. Special: erf / gamma / lgamma / beta + the regularized incomplete gamma (regGammaP / regGammaQ) / beta (regBetaI) the CDF engine needs, hand-rolled to machine precision. Strict (domain / overflow / non-finite -> catchable). Go stdlib base; both binaries. |
| M24.11 | distributions + inferential stats | The classical numerical-inference layer (the scipy.stats / Excel surface) folded into stats on M24.10's specials - no separate prob library. Distributions (normal / t / chi-square / F / binomial / Poisson): pdf/pmf, cdf, quantile (Acklam + bisection), Box-Muller normalSample. Inference: linearRegression / multipleRegression, confidenceInterval, proportionCi (Wald / Wilson / Clopper-Pearson), tTest / chiSquareTest / fTest / anova, histogram -> Regression / Interval / Test structs. Every p-value finite-guarded, clamped [0, 1]; a degenerate input -> catchable. Pinned to scipy; both binaries. |
| M24.12 | scientific-notation float literals | Float literals accept an [eE][+-]?digits exponent (6.022e23, 1e10 - the exponent makes a literal a float even with no fraction), no _ in the exponent, decimal-only (0xe5 keeps e a hex digit). Lexer-only, additive / non-breaking. Strict at the edge: overflow (1e400) a positioned parse error (never Inf); underflow (1e-400) rounds to a finite 0.0. Reasoned in design-decisions.md. |
| M24.13 | uri module + encoding codecs | URL handling factored - byte encoding in encoding, URL semantics in a .j module. encoding gains "uri-percent" (RFC 3986) + "uri-form" (form-urlencoded, space +) toText / fromText codecs. The uri module (pure .j, both binaries): parse -> Uri / build (round-trips), encode / decode / encodeForm / decodeForm, buildQuery / parseQuery, RFC 3986 resolve(base, ref). Seven modules de-duplicated onto them. Pre-1.0 break: rest query strings now form-encode a space as +. |
| M24.14 | args CLI parser module | A declarative argparse-style parser (the "write your tools in Jennifer" gap os.flag / os.ARGS left). A value-semantic Parser: typed optional flags (flag / intFlag / boolFlag / countFlag -vvv / listFlag), nargs positionals, subcommands, version; args.parse($p, os.ARGS) -> a Result with typed accessors. Normalises --flag=value, bundled shorts, -- end-of-flags; an error is a catchable Error{kind:"args"} (not exit(2)), -h / --version set done. Pure .j, both binaries. 32-test overlay. |
| M24.15 | validate module | Declarative validation of a map of string to string -> a structured failure list. Value-semantic rules (required / isInt / min / maxLen / pattern / email / url / datetime / oneOf / password / custom func predicate + withMessage), grouped per field; validate.check -> list of Failure, plus ok / messages / byField / localize (i18n %param% markers). An absent / blank field passes every rule but required. Pure .j over regex / uri / time / password; both binaries. 16-test overlay. |
| M24.16 | module suite hardening | A security / robustness pass whose audit findings collapsed to systemic root causes, each fixed once across its cluster (~35 fixes / ~24 modules, both binaries clean), remotely-exploitable first. Received-data caps (shared transport.checkReceiveSize); injection (label digits-only command class, CRLF / control stripping in log / ical / vcard, barcode colour); a cross-origin redirect credential leak (http.send drops Authorization / Cookie behind allowCrossOriginRedirect); typed error propagation; numeric clamps; correctness (semver.satisfies(v, garbage) -> false). |
| M24.17 | html module (rebrand + parser) | Fold HTML building and parsing into one bare-named html. Rebrand htmlwriter -> html (pre-1.0 break; a format module is named for the format, like xml / json). A tolerant hand-rolled parse (pure .j, no x/net/html) producing the same transparent Node the writers do (build / parse round-trip): void / self-closing / unquoted-boolean attrs, mismatched-nesting auto-close, comments, DOCTYPE, raw script, entities; depth + node budget. Added parse / attrOf / hasAttr + XPath-ish get / findAll / has. Both binaries; 23-test overlay. |
| M24.18 | markdown reader | Gave markdown reading (the consistency move M24.17 set up). markdown.parse(md) -> a public Node (a string kind, recursive over children) walked by the xml / html vocabulary (typeOf / children / text / level / attr / get / findAll / has); the private Block / Span model is converted, inline spans eagerly expanded (a link's href walkable), the fence language captured. One model: toHtml / toAnsi became render(parse(md), ...) wrappers (old renderers deleted; byte-identical output). Nesting cap + node budget. Pure .j, both binaries; +16 overlay tests. |
| M24.19 | string interpolation | Cooked-string interpolation "total: {$sum}, up {strings.upper($x)}" - sugar over concat + convert.toString. Only a cooked "..." interpolates, each {expr} one expression (a statement / empty {} is a parse error); a raw '...' never (the off form); a literal brace is \{ / \}; f"..." rejected. Part 1 moved the two {name}-template consumers (intl.tr, validate) to a %name% marker. Part 2 added the lexer TOKEN_STRING_INTERP (Parts) + the parser sub-lex / sub-parse of each slot -> InterpStringExpr. The whole toolchain treats a slot as real code (resolver / lint L204 / profile); every literal-brace cooked string was migrated (prefer raw). Graduated the horizon entry; both binaries. |
| M24.20 | module version + capability header | A per-file # pragma-jennifer-<key>: <value> header stating the minimum interpreter version + required host capabilities, checked at read time (the lightweight sibling of the M26 jvc / deck.toml constraints, no package manager). version (>=0.25.0, a min-compare via version.AtLeast; any dev build bypasses) + capability (net / exec / sql, from a build-tag-split set, queryable as meta.CAPABILITIES / hasCapability). Enforced per file at three first-read seams (CLI / include / loadModule), with bounded diagnostics; a malformed or duplicate-version directive is a hard error. Ships an L303 lint + fmt canonicalisation. Every module carries a >=0.24.0 floor; capability: only where mandatory (an optional backend stays ungated). No interpreter-core change. |
| M24.21 | Markdown -> PDF (markdown.toPdf) | The markup-driven document story for pdf, folded into markdown as a third target beside toHtml / toAnsi: toPdf(md) / toPdfWith(md, opts) / renderPdf(doc, opts) lay a document out to a paginated PDF over pdf's layout primitives. A flow engine threads a value-semantic Layout through per-block renderers (heading, word-wrapped paragraph with per-run fonts, nested lists, ruled GFM table, code, blockquote), paginating at the bottom margin; PdfOptions sets size / margins / standard-14 fonts. Folded in (reasoned in design-decisions.md) at ~2x markdown import time / +~6 MB RSS; needed M24.18's parse tree. Graduated DRAFT#13. Pure .j, both binaries; +15 overlay tests. Dogfooded by gen-module-docs.j -> jennifer-module-api.pdf. |
| M24.22 | dot module | Graphviz DOT graph description: build a graph of nodes and edges with attributes (digraph / graph, node / nodeWith, edge / edgeWith, graphAttr / nodeAttr / edgeAttr) and render it to .dot text for an external Graphviz tool to lay out (dot -Tsvg). Value-semantic builders; DOT-escaped strings; emits the description only (graph layout is Graphviz's job, deliberately not reimplemented). Pure .j over strings / lists, both binaries. |
| M24.23 | plot module | Data plotting to SVG: a unified chart(series, opts) renders one or more Series (line / points / both / area, dashed, error bars, marker shapes) on shared axes with a positioned legend; line / scatter / bar / bars (grouped / stacked / diverging) / histogram wrap it. Automatic "nice" ticks, log scales, a time-labelled date axis, reference lines (hline / vline), fonts / margins, data labels, <title> hover tooltips, and save. The visual companion to stats / ml; pure .j over math / time / fs / strings / lists / convert, both binaries. |
Cross-cutting threads:
- Graduated horizon drafts. M24 drained the first scheduled batch from the horizon collection:
DRAFT#26(M24.1--env),DRAFT#18(M24.2 first-class functions),DRAFT#21(M24.3 concurrency coordination),DRAFT#5(M24.4stats), andDRAFT#13(M24.21 Markdown -> PDF), plus the string-interpolation entry (M24.19). - A numeric / statistical stack landed together:
stats(M24.4) +linalg(M24.6) +ml(M24.5) + themathspecial functions (M24.10) + the distributions / inference layer folded back intostats(M24.11) - each strict (an undefined result is a catchable error, never a NaN) and bounded by a materialised-value cap. - An ASN.1 protocol stack: the hand-rolled
asn1byte layer (M24.7) enabled thesnmp(M24.8) andldap(M24.9) clients-and-servers, each factoring its codec pure so the overlay round-trips without a socket. - Consistency across the format modules. The
htmlrebrand + parser (M24.17) and themarkdownreader (M24.18) gave both modules the same build-and-parseNodemodel asxml/json, which M24.21'stoPdfthen consumed. - Not all of M24 is libraries. M24.2 (first-class functions), M24.3 (cancellation / channels), M24.12 (scientific-notation literals), and M24.19 (string interpolation) are language / interpreter work; M24.1 is a CLI flag; M24.16 / M24.20 are a cross-suite hardening pass and a read-time guard.
M25 - read-only-parameter borrow (compound copy elision)
Done. Parameter binding deep-copies compound arguments (list, map, struct, bytes) to uphold value semantics; when the callee never writes the parameter, a read-only alias to the caller's backing is observationally identical to a copy, so the parameter is bound by alias. The "borrow" half of copy-on-write, narrower and more clearly sound than the shared-marker COW that was tried and reverted as inert (see technical/rejected.md): a borrowed parameter is never written, so it never has to detach. No syntax, no .j changes - a pure interpreter optimization. Mechanism: technical/interpreter.md.
| M# | Topic | Summary |
|---|---|---|
| M25.1 | borrow where no mutable global exists | Resolve runs markBorrowableParams: a write-scan of each body sets Param.Borrow for a never-written parameter of a borrow-safe type (a flat list / map, a struct, bytes; a list of list copies). "Never written" alone is not sound - an argument aliasing a mutable global the body mutates would observe the write - so bindArg aliases only in a script with no mutable top-level def (entryGlobalsImmutable). Removed accidental quadratics: the markdown block collectors went linear (a 160-chapter book: 5.1 s -> 0.85 s). Pinned by internal/parser/borrow_test.go and internal/interpreter/borrow_test.go. |
| M25.2 | per-function escape analysis | Borrow in scripts that do hold mutable globals, per function: computeEntryGlobalSafe scans each function for a local hazard (a non-local write, a func-value call, a module call, a callback builtin from the jCallbackBuiltins denylist, an unresolved call; unknown nodes count as hazards) and propagates it along call edges, stamping hazard-free functions GlobalSafe. A read-only helper in such a script goes linear. Pinned by globalsafe_internal_test.go and borrow_test.go. |
Since revised. M25.1 also borrowed in modules ("declarations-only, so no mutable global"), which was unsound: a module method can reach meta.callMain and mutate a host global its argument aliases. Modules now rely on the M25.2 analysis. M28.19 closed two further holes and records the current gate, i.entryGlobalsImmutable || (m.GlobalSafe && !spawnReentry), plus argument snapshots. Nested collections (a list of list) still copy; M30.3 plans their borrow.
M26 - jvc package manager (decks)
Done. jvc (jennifer vendor console) is a standalone project (jennifer-language/jvc, docs at https://jvc.jennifer-lang.dev/) with its own releases. The interpreter's packages carry no copy; only the container image bundles it.
Bundled modules and decks. Niche or product-specific bundled modules graduate out into decks (archetype: gotify); language-fundamental modules stay bundled. A move changes the import, so it ships both ways (bundled + deck, the bundled copy @deprecated) before the bundled copy goes: in any later minor release before 1.0, at the next major from 1.0 on. The first batch (gotify, slack, discord, telegram) and the metrics clients (prometheus, statsd, influxdb) and the MikroTik pair (mikrotik, mactelnet) leave in 0.28.0 (M30.1). New service integrations ship as decks from the start; M27 collects them.
| Sub | Feature | Notes |
|---|---|---|
| M26.1 | the package manager | jvc 0.1.0, deck-spec 0.4.1, written in Jennifer. A deck.toml manifest (YAML / JSON accepted); jvc install resolves and vendors into the vendor/ tree the M19.7 @scope/package form reads; camcorder.lock pins the result. Decks are sha256-verified .tar.gz archives or commit-pinned git sources; [engines] / [conflicts] checked across the graph; jvc app install puts programs on PATH; publishing runs a lint / overlay / docblock gate. Client of registry.jennifer-lang.dev. Naming conventions live in jvc's docs. |
| M26.2 | distribution | jvc ships its own .deb, Arch package, tarball and jvc app install <url>; it runs on the default jennifer only (needs http / os.run / archive) and depends on the interpreter at its [engines] floor, with the M24.20 version pragma failing a too-old engine at read time. The interpreter side added only the Arch provides=("jennifer=${pkgver}"). The slim image bundles jvc (fetched at ARG JVC_REF, a release tag, staged in its .deb layout, checked by jvc version at build); alpine too, behind an sh wrapper (busybox env lacks -S); static does not (no /usr/bin/env: vendor in slim, copy into static). No git in the image; git-sourced decks need a derived image. |
| M26.3 | release gate | release.yml's jvc job runs jvc's overlays, lint and a launcher smoke test against the linux/amd64 release tarball; publish requires it. It reads the Dockerfile's JVC_REF, so image and gate share one pin. The pin is a jvc release known-green against the RC: an unintended break is a red here, an intended one moves the pin in the same batch (or the release waits). Needs git and a writable temp. jvc is the widest integration test: toml / json / semver / archive / http / fs / os / path / hash / encoding / docblock / flatdb, exec, and the module system. |
| M26.4 | core stays manager-agnostic | The core reads no manifest or lockfile, so jvc is endorsed, not required (deck-spec 0.4.1 section 5 agrees); a @scope/deck/ import only resolves under vendor/ (M19.7). The binding engine check is the per-file pragma at every import seam: version refuses a too-old engine, capability (net / exec / sql) a deck tiny cannot run. term / serial / spi / i2c / gpio / crypto RSA-ECDSA are not capabilities; their tiny stubs fail at first call. An import-time gate for them is deferred until a miss bites. |
M27 - candidate decks (deck ecosystem)
Done. Vendor and service clients ship as decks (installed with jvc, M26), not as core modules/; core keeps general primitives. The deck sections M27.1 to M27.10 and their status live in decks.md. A core change a deck needs is still an entry here.
M28 - 0.26.0
Done. The 0.26.0 release; the tag waits only for open bugs. On 2026-11-15 its open entries moved to M29 (0.27.0) and M30 (0.28.0), keeping (was M28.n), and the former M29 / M30 became M31 / M32. Retired: M28.35, merged into M30.6 (was M28.26).
| M# | Topic | Summary |
|---|---|---|
| M28.2 | non-blocking / timed terminal read | term.readByteTimeout(ms) returns the byte, -1 at EOF or -2 on timeout, losing nothing; screen.nextKey now reports a lone Escape. Stub on tiny; mixing with io came in M28.38, no term.pollByte. |
| M28.3 | append sugar for any place expression | [] = appends in place through any lvalue chain ($obj.field[] = v, $xs[i][] = v), so filling a list in a struct is linear. Additive. |
| M28.9 | static call-site checking in jennifer lint | L109 arity, L110 argument type and L111 binding type, reported only where a type is certain, against the internal/libsig signature table. Calls to user functions, which declare no return type, are skipped. |
| M28.11 | httpd reads the body before taking an in-flight slot | The maxInFlight slot is taken after the body arrives, under a maxInFlight x maxBodyBytes buffer budget (503 past it) and httpd.Options.bodyTimeoutMs. Breaking: a late body is 408 (was 400). |
| M28.12 | html.escape escapes quotes | html.escape also escapes " and ', so it is safe in a quoted attribute; render output is unchanged. Breaking for strings with quotes. |
| M28.13 | linear json / toml / yaml list building | An end append grows the list in place, so building a list is linear (20,000 appends: 5.3 s to 27 ms). list(xs) / map(m) convert a Jennifer list / map in one step. |
| M28.14 | httpd hardening pass | serveDir* answers 404 for dotfiles and unindexed directories (dirListing opts in), . / .. path segments are 400, and setHeader, etag, respond and shutdown are stricter. Breaking: those inputs used to pass. |
| M28.15 | httpd follow-ups | unix: sockets are never connectable under a looser mode, shutdown frees the address, and the write timeout is httpd.Options.writeTimeoutMs (default 5 minutes). Additive. |
| M28.16 | php2shell-class request hardening | Request headers are capped at 64 KiB (431; httpd.Options.maxHeaderBytes), web.serveOn runs at most httpd.maxInFlight(srv) handlers, and a failed kv.openFile write leaves memory unchanged. |
| M28.19 | borrow soundness and argument snapshots | An argument aliasing a global is snapshotted when a later argument may mutate globals, a re-entering spawn turns GlobalSafe off, and local defs borrow again. |
| M28.22 | in-place int / bool fast path | intfast.go evaluates int and bool expressions and assignments in place; the benchmark run went from 34.3 s to 10.2 s (Go) and 42.2 s to 13.4 s (TinyGo). |
| M28.24 | release notes for tagged releases | One CHANGELOG.md section per version instead of a file per release; the release fails when the tag's section is missing or still "(unreleased)". The docs site does not publish it yet. |
| M28.34 | xml namespace resolution | decode resolves names to (URI, local name), strictly; new localName, namespace, lookupPrefix, attrNS, hasAttrNS, elementNS, setAttrNS, and a prefix map for get / findAll / has / decode. feed matches Atom and Dublin Core by URI; streaming is M30.11. |
| M28.37 | deep values: tiny crash and recursive copy | A store that would nest a value past limits.MaxNestingDepth (1000, 64 on tiny) throws "limit", so deep values no longer overflow the stack. An iterative rewrite was rejected as slower. |
| M28.38 | term and io share one stdin reader | internal/stdinbuf owns stdin, so term key reads and io stdin reads mix in any order and a timed-out read loses nothing. |
| M28.40 | crypto: one function per operation, block modes, RSA-OAEP | Breaking. One function per operation with the algorithm first (encrypt, blockEncrypt, sign, keypair, agree, encapsulate, wrap, ...), adding AES block modes and RSA-OAEP; see crypto.md. Encrypt-then-MAC is a recipe there; @deckyard/sealbox is the convenience layer. |
| M28.41 | uniform argument order: the algorithm first | Breaking. Every function taking an algorithm, format or codec name takes it first, after any handle (hash.compute(algo, b)); full list in the 0.26.0 release notes. The migration script's mistakes are the input to DRAFT#31 (jennifer fix). |
| M28.42 | upper bounds for engines.jennifer, enforced | Ranges are >=X.Y.Z or >=X.Y.Z <A.B.C, enforced by the pragma, jvc's resolver and the registry; a dev build fails every upper bound. The deck template's AGENTS.md has the two-release recipe for a breaking release. |
| M28.43 | canonical-only base32 / base64 decoding | Breaking. encoding.fromText base32 / base64 decodes only the canonical spelling (no line breaks, exact padding, zero unused bits). Quoted-printable stays lenient. |
| M28.46 | read and write deadlines on serial ports | serial.setReadDeadline / setWriteDeadline throw "timeout" past the deadline; task.cancel wakes a blocked read, and a port closed under one is "closed". |
| M28.47 | TLS options for oauth | oauth.Config.tls (http.TlsOptions) applies to every request; discoverTls / discoverMetadataTls carry it. Existing literals are unchanged. |
| M28.48 | channel.recvTimeout | channel.recvTimeout(ch, ms) throws "timeout" without taking a value; task.cancel wakes it. Index-returning select (M24.3) stays open. |
| M28.49 | for-each over bytes | for (def b in $data) walks bytes, binding each byte as an int; a string is still refused. |
| M28.50 | L104 accepts error-shaped structs | L104 accepts throwing any struct with string kind and message fields. |
| M28.51 | error structs in rest, graphql, jsonrpc, mcp, oauth | One struct per module for every error of its kind (rest.HttpError, graphql.GraphqlError, jsonrpc.RpcError, mcp.McpError, oauth.OAuthError), kinds and messages unchanged. testing.assertThrows sees the struct's kind. |
| M28.52 | error structs in smtp, ldap, amqp, acme, soap, webdav, mqtt | The same for smtp, ldap, amqp, acme, soap, webdav and mqtt; field lists in JENNIFER.md. A parameter typed Error rejects these structs. |
| M28.53 | error structs in snmp, mikrotik, imap, redis, s3, pop | The same for snmp, mikrotik, imap, redis, s3 (with s3.errorOf(resp)) and pop. web.onError hands such a struct to the hook as an Error. |
| M28.54 | a reached cap is kind "limit" | net.readAll's and http's caps throw kind "limit", messages unchanged. |
| M28.55 | generic kinds across the bundled modules | Caps in all 93 modules are "limit", a short net.readN is "closed", a cancelled task "cancelled"; the control-flow guide has the "Error kinds" table. |
| M28.56 | a thrown module struct keeps its identity | A thrown module struct is retagged like a returned one (14fad43), so a caught a.HttpError can go back to a. |
| M28.57 | the decks follow the error conventions | Fifteen decks throw error structs, caps in 20 decks are "limit", and cancelled tasks match by kind, with message matches kept as fallbacks until floors rise. |
| M28.58 | golang.org/x/crypto: sealed box, password hashing, SHA-3 | ChaCha20-Poly1305, "nacl-sealedbox", crypto.hashPassword / verifyPassword (argon2id, bcrypt, scrypt), raw argon2id / scrypt, SHA-3 and BLAKE2, on both builds. The SSH client is not taken. |
| M28.59 | http.send keeps only safe headers across origins | A cross-origin redirect keeps only an allowlist of safe headers; allowCrossOriginRedirect keeps everything. |
| M28.60 | soap passes timeout and closed on | soap.send passes "timeout", "closed" and "cancelled" on instead of rewrapping them. |
| M28.65 | transport errors have their own kind | Socket failures throw net.NetError (kind "net", with op, reason, and http's sent / replied), a generic kind modules pass on. Decks retrying on "runtime" need "net" added. |
| M28.68 | document decoder caps throw "limit"; json.decodeWith | The json, toml, yaml, xml and asn1 caps throw "limit"; json.decodeWith(text, json.DecodeOptions{maxDepth, maxNodes}) lowers them. |
| M28.69 | http.send honours an HTTP-date Retry-After | send reads an HTTP-date Retry-After too, still clamped to 30 s. |
| M28.70 | one body copy less in http | Bodies are cut from the raw response once; a 20 MiB download peaks at 159 MiB RSS instead of 179 MiB. |
| M28.71 | net.abort(conn) | net.abort closes a TCP connection with a reset, so tests can fake a crashed peer. |
| M28.72 | jennifer-tiny corrupts struct field names (geo) | The corruption was an untrapped stack overflow; jennifer-tiny now throws "limit" "call stack too deep" past 3 MB of stack. Shrinking TinyGo frames is not done. |
| M28.73 | generic kinds in jsonrpc, oauth, amqp, mqtt, imap | These modules pass the generic kinds on, and a peer closing mid-read is "closed". |
| M28.74 | generic kinds in telegram, pop, redis, websocket, mikrotik | The same for these modules, plus mikrotik / mactelnet fixes found moving them to decks (M30.1). |
| M28.75 | jennifer-tiny-dev: dev subcommands on TinyGo | jennifer-tiny plus fmt, lint, profile, test and friends (-tags tinygo_devtools), at /usr/bin/jennifer-tiny-dev in the container images; the deck template's tiny job uses it. |
| M28.76 | lint L116: a slot holding only a literal | L116 warns on a {expr} slot whose expression is a literal, such as the brace accident ["{", "}"]. |
| M28.77 | doctree PDF: no space between adjacent inline nodes | PDF output no longer puts a space between inline nodes written together, such as a code span and its comma. |
| M28.78 | 0.26.0 pre-release validation | A final review of every change since 0.25.0: more "limit" and "closed" kinds and hardening across a dozen modules. Left open: SCRAM without a server proof, ldap.bind with an empty password, images memory, asn1 SET order. |
M29 - 0.28.0
Done. The 0.28.0 release. Eleven entries were done early and shipped in 0.27.0, a release without a milestone (marked "0.27.0"). M29.12 moved to M30.24; retired: M29.16, merged into M30.21. The rest of M29.23 moved to M30.28.
| M# | Topic | Summary |
|---|---|---|
| M29.1 | resource-exhaustion errors under kind: "limit" | 0.27.0. The remaining caps throw "limit": a materialised range, channel.make, the KDF size and work caps, intl.tr, the printf field cap, and the handle caps of net, httpd, sql and term. |
| M29.2 | bounded request parsing in Go | 0.27.0. Form, query, cookie and multipart parsing moved to Go (encoding.parseForm, parseCookies, parseMultipart) with pair, header and name caps; web.form became strict. |
| M29.3 | per-task memory budget | A Go soft memory limit at 90% of the machine or cgroup (GOMEMLIMIT wins); opt-in task.setAllocBudget / allocated and web.allocBudget throw a catchable "limit" in the task that overspends. |
| M29.4 | install paths set at build time | make PREFIX= sets the module, docs and etc paths in internal/version; jennifer version -v reports each with its source; jvc app install writes a shim when /usr/bin/env is missing. |
| M29.5 | DNS without /etc/resolv.conf | internal/dnsconf picks resolv.conf and hosts from JENNIFER_RESOLV_CONF / JENNIFER_HOSTS, <PREFIX>/etc or /etc; net.lookupWith with dnsServers asks only those servers. No public fallback. |
| M29.6 | more release architectures | Releases add linux/arm (armv7, armv6), linux/386, linux/riscv64 and an unsupported android/arm64, each smoke-tested under QEMU; a GOARCH=386 job found and fixed 32-bit narrowing and profiler atomics. |
| M29.7 | strings cutset / affix trim | 0.27.0. trimPrefix / trimSuffix and trimSet / trimLeftSet / trimRightSet; the whitespace trim* are unchanged. |
| M29.8 | bulk number reads from json | 0.27.0. asFloats / asInts / asStrings read a whole array in one call, in json, toml and yaml. |
| M29.9 | scope-rule and binder diagnostics | A parameter may shadow a global; a write to a match binder is a parse error; a global read before its def ran throws. |
| M29.10 | compile-time check of literal printf formats | Lint L117 runs io's format parser over a literal format: bad verbs or modifiers, verb count, value types. |
| M29.11 | a smaller Value | 48 bytes instead of 272: one scalar word, one slice, one pointer to an interned Identity or handle. Lists of floats take a fifth of the memory, the benchmark suite half the time; element caps rose fourfold. |
| M29.13 | string positions without a rescan on non-ASCII text | A 16-slot rune cursor table resumes rune-to-byte walks, so indexOf loops and slices over non-ASCII text are linear (79 s to 0.17 s on 460,000 runes). |
| M29.14 | cheaper calls into another module | One struct identity on both sides of a module boundary: nothing is retagged, retagStructs is gone, arguments bind as evaluated. A 6,400-node module tree lookup went from 1.1 s per 200 calls to 0 ms. |
| M29.15 | html.parse without a per-character copy | The tokenizer slices the source: about 40% less memory and a third less time, identical trees. |
| M29.16 | wrong return type versus a fault in a callback | Retired: merged into M30.21. |
| M29.17 | local halves of network modules on jennifer-tiny | kvstore, session, ratelimit, webhook and the new s3presign load on tiny. Breaking: memcache.kvStore / redis.kvStore replace kvstore.memcacheStore / redisStore; webhook.send is gone (http.post with webhook.signedHeaders). |
| M29.18 | doctree.renderPdf without a rebuild per bookmark | Bookmarks, images, fonts and pages go to pdf once per document, text once per paragraph: 8.4 GiB to 337 MiB of copies on 500 pages, byte-identical output. |
| M29.19 | io.printf %f: zero fill and digit grouping | 0.27.0. %f takes fill=0 and group / sep. |
| M29.20 | doctree PDF with embedded TrueType fonts | PdfOptions takes a face and fallbacks per role; layoutPdf returns PdfResult{doc, missing} listing undrawable glyphs; without faces the output is unchanged. |
| M29.21 | the libraries' own kind for bad input data | internal/dataerr: bad outside data throws the library's kind ("json", "compress", "crypto", ...), misuse stays "runtime"; each library pins its kinds in a test. Breaking for catches of "runtime". |
| M29.22 | fs.readSecretBytes | 0.27.0. readSecretBytes / readSecretString refuse a file others can read or write (only write on a read-only mount); over 1 MiB is "limit". |
| M29.23 | the conventions survey: stance 8, checked | First round done (0.27.0): the catalogue, scripts/conventions-survey.j, 42 findings to 0. The rules not yet tested and the checks that stay moved to M30.28 (0.29.0). |
| M29.24 | time.format: numbers without zero padding | 0.27.0. The numeric codes take printf's pad (%d|pad=0); time.parse reads the same layouts. |
| M29.25 | lists.replicate (and strings.replicate) | 0.27.0. lists.replicate(xs, n); strings.repeat renamed replicate. |
| M29.26 | decimal: a digit cap big integers fit under | 0.27.0. 1,000,000 digits on the default build, 100,000 on tiny. |
| M29.27 | lists.sortWith | 0.27.0. A stable sort by an int comparator. |
| M29.28 | match destructures an indexed subject | 0.27.0. List, map and index-then-field subjects resolve to their element type, inside spawn too. |
| M29.29 | web answers 400 for a malformed request body | web.WebError{kind, message, status} for an unreadable form, JSON or multipart body, answered with its status; a body cap is 413. Breaking for catches of "encoding", "runtime" or "multipart". |
| M29.30 | profiling a program that does not exit | profile --out FILE; SIGINT / SIGTERM write the report, SIGUSR1 a snapshot to FILE.<n>. |
| M29.31 | profile rows a reader can place | Rows name the function and source line with relative paths; --by=function, --top N, --focus PATTERN; pprof carries the names. |
| M29.32 | profile: waiting apart from working | A wait column for blocking builtins, kept out of self; the header states wall time and task count. |
| M29.33 | remove the deprecated bundled modules | Breaking. gotify, slack, discord, telegram, prometheus, statsd, influxdb, mikrotik and mactelnet are removed; each is a @deckyard deck with the same surface. |
| M29.34 | remove the stance-8 deprecated names | Breaking. The thirteen names renamed in 0.27.0 (orm.hasOne, validate.isInt, insecure, withInsecure, withCaCert, ...) are gone. |
| M29.35 | remove the slice duplicates and the one-value printf | Breaking. Fifteen builtins, convert.toString's radix, the two-bound lists.range and the one-value printf are gone; lint L302 names the replacement. The borrow table learned runArgs / assertThrowsArgs. |
| M29.36 | sql: verified TLS by default, testable errors | Breaking. open requires verified TLS except over a socket or loopback (openWith with allowInsecure opts out); SqlError{code, sqlState}, "timeout", net.NetError; Options.queryTimeoutMs. |
| M29.37 | net: a default deadline | Connects, handshakes and lookups default to 30 s; connectWith / startTLSWith take ConnectOptions, lookupWith / reverseLookupWith LookupOptions; math.MAX_INT means none. Breaking: connect(addr, 0) has a deadline. |
| M29.38 | kv.incr on an absent key | Breaking. An absent key starts at 0, as Redis's INCR; -1 is an ordinary count. |
| M29.39 | ml models as values | Breaking. ml.Model is a GC-owned value (no id, no literal); ml.free is a no-op; hyper-parameters move to *With options structs. |
| M29.40 | integers outside int64 in json, toml, yaml | json and yaml keep every digit, asDecimal reads it, asInt / asFloat refuse what they cannot hold exactly; toml refuses it naming the fix. |
| M29.41 | compress refuses data after the stream | zlib and deflate refuse any trailing byte; gzip reads every member. |
| M29.42 | strict quoted-printable | A malformed = escape is kind "encoding"; hex in either case. |
| M29.43 | http: one request function | sendBytes and Options.tlsOptions; seven request* variants deprecated; a negative Options field throws. Lint L301 reads module @deprecated docblocks. |
| M29.44 | one shape for a caller-set cap | Options structs where 0 is the default and a negative value throws: compress.unpackWith, images.decodeWith, archive; math.MAX_INT / MIN_INT; "tgz" deprecated. |
| M29.45 | timeouts: the shapes a wait may take | net.setIdleTimeout, channel.selectTimeout, task.waitAllTimeout, os.waitTimeout, fs.watchWith, os.spawnWith. Breaking: term.readByte* throw "closed" / "timeout", a negative time.sleep throws. |
| M29.46 | handles: one rule for use after close | A second close does nothing; any other use of a closed or consumed handle throws "closed", in every library; net.eof deprecated. |
| M29.47 | decoders: the same options and accessors | decodeWith for toml, yaml, xml, asn1; yaml.asBytes; toml.asLocal, and asDatetime refuses a local form. |
| M29.48 | second ways that remain | Deprecated for one way: stats.multipleRegression, convert.toInt(float), os.hasFlag / flag, the gpio module, httpd.listenTLS / *Etag (now Options fields), decimal.toString, images.rgba. |
| M29.49 | hardware libraries alike | serial parity errors throw, i2c over 8192 bytes is "limit", spi.openWith, gpio.open -> Chip, serial.write returns null. |
| M29.50 | outside text is validated UTF-8 | os.getEnv, os.ARGS, fs.list / walk / readlink / realpath, sql.asString throw for invalid bytes; getEnvBytes, argsBytes, listBytes, walkBytes. |
| M29.51 | crypto: names and types | "rsa-pkcs1-*" and "rsa-pss-*"; passwords are bytes; jwkToPem returns bytes (Breaking); more KDF hashes; weak names tagged; jwt gains PS*. |
| M29.52 | small consistency fixes | strings.replace with an empty old throws, lib.fn: message prefixes, one intl locale rule, meta.hasCapability strict, time.*Milliseconds, kv refuses a lost update, serveDir contains symlinks, %f|prec rounds the shortest decimal. |
| M29.53 | profile --allocs counts copies into a literal | Copies into struct, list, map and enum literals and the other unrecorded copy sites are reported. |
| M29.54 | binary: writing numbers | fromInt / fromUint / fromFloat, fromInts / fromFloats, setInt / setUint / setFloat, mirroring the readers. |
| M29.55 | release every deck before 0.28.0 | Every deck whose newest tag called a removed builtin (57) has a newer release on the registry; all ten @jennifer names carry a "moved" record to @deckyard. |
| M29.56 | encoding Mac OS Roman | "macintosh", generated from Apple's mapping, all 256 bytes round-trip. |
| M29.57 | spawn options; fs.syncDir, fs.seek | SpawnOptions gains dir, env, cleanEnv, group; os.signal reaches a process group; fs.syncDir, fs.seek / tell. flatdb and oauth.save sync the directory. |
Next: the roadmap: the open part of M29 (0.28.0), then M30 (0.29.0) to 1.0.0.