Repository navigation
0.28.0
Pre-releaseJennifer 0.28.0
Linux (amd64, arm64, armv7, armv6, 386, riscv64) ships two binaries - same source, same language, different compiler (riscv64: jennifer only, TinyGo has no riscv64 target):
jennifer- standard Go build. Default, full-featured; what most users want.jennifer-tiny- TinyGo build. Smaller, embeddable; noos/execor network stack.
macOS, Windows and Android (arm64, Termux prefix) get the standard jennifer only, as best-effort unsupported builds (no jennifer-tiny).
The armhf .deb carries the armv6 binaries, which run on ARMv6 and ARMv7 alike (Raspberry Pi OS's armhf baseline is ARMv6); the armv7 build ships as a tarball and an OpenWrt .ipk only.
Install jennifer unless you have a specific reason to use the constrained variant; see docs/user-guide/installing.md for guidance.
What's new
Milestone M29. The nine deprecated single-vendor modules leave the bundle for
decks (M29.33), every @jennifer deck moves to @deckyard (M29.55), and the
names and builtins deprecated in 0.27.0 are gone (M29.34, M29.35). The stance
review's fixes make the libraries agree: their own error kind for bad input
data (M29.21), verified TLS for sql (M29.36), default deadlines in net
(M29.37), one shape for caps, timeouts and closed handles (M29.44-46), and
validated UTF-8 from the OS (M29.50). A Value is 48 bytes instead of 272
(M29.11), module calls retag nothing (M29.14), and string scans on non-ASCII
text are linear (M29.13). New are binary writers (M29.54), bounded child
processes (M29.57), a per-task allocation budget (M29.3), a build-time install
prefix and resolver files (M29.4, M29.5), five more release targets (M29.6),
TrueType fonts in doctree PDFs (M29.20), a WSDL reader in soap, and a
profiler for servers (M29.30-32).
Breaking changes
- Nine bundled modules removed (M29.33):
gotify,slack,discord,
telegram,prometheus,statsd,influxdb,mikrotikandmactelnet.
Each is a deck with the same surface: add@deckyard/<name>to
deck.toml, runjvc installand writeimport "@deckyard/<name>/" as <name>;. What the modules used stays in the bundle:multipart,
crypto.mtwei*,net.bindToDeviceandhttp.requestRawBody(the last
deprecated, see below). @jennifer/*decks are now@deckyard/*(M29.55): discord, gotify,
influxdb, mactelnet, mikrotik, oauthext, prometheus, slack, statsd and
telegram. Imports read@deckyard/<name>/; the old versions are yanked and
jvc add/install/updaterefuse a moved deck, naming the new one
(jvc 0.3.0, which the container images now bundle).@jenniferkeeps no
decks.- Deprecated names removed (M29.34):
orm.hasOne/hasMany(use
oneToOne/oneToMany),validate.isInt/isFloat/isBool
(integer/number/boolean),rest.insecure/graphql.insecure,
soap/webdavwithInsecure(withSkipVerify) andwithCaCert
(withCA). - Deprecated builtins removed (M29.35);
jennifer lintreports a
leftover call asL302with the replacement:strings.substring,
lists.slice/head/tail/pop,binary.slice(slices),
strings.repeat(replicate),testing.runWith/assertThrowsWith
(runArgs/assertThrowsArgs),convert.bytesFromString/
stringFromBytes(encoding.encode/decode),crypto.hkdf/pbkdf2/
argon2id/scrypt(deriveKey),convert.toString(n, radix)
("%d|base="), the two-boundlists.range(a, b)(a..b), andio.printf
/sprintf/eprintfwith one non-string value ("%v"). - Network halves move (M29.17):
kvstore.memcacheStore(mc)/
redisStore(rc)arememcache.kvStore(mc)/redis.kvStore(rc), and the
Store.Memcache/Store.Redisvariants are gone.webhook.sendis
removed:http.post(url, "application/json", payload, webhook.signedHeaders(payload, secret)). - Data errors carry the library's kind (M29.21): bad input data read by a
built-in library throws"json","xml","toml","yaml","asn1",
"encoding","compress","archive","images","crypto"(a failed
decrypt/unwrapincluded),"time","uuid","convert","kv", and
"fs"/"io"/"os"for invalid UTF-8 read as text; it was
"runtime". Misuse stays"runtime"; messages are unchanged. webanswers a malformed body 400 (M29.29):form,formValue,
bodyJsonandmultipartFormthrowweb.WebError{kind: "web", message, status}(was"encoding","runtime"or"multipart"); a body parser's
cap is aWebErrorof kind"limit", status 413. An escapedWebErroris
answered with its status.webapireads a body only by itsContent-Type
(JSON or urlencoded form).sql(M29.36):openrequires verified TLS (sslmode=verify-full,
MySQLtls=true,verify-caonly withsslrootcert) and refuses a weaker
mode orallowFallbackToPlaintextunlessopenWith(driver, dsn, sql.Options{allowInsecure}); a Unix socket and loopback are exempt,
localhostis never looked up. Server errors aresql.SqlError{kind: "sql", message, code, sqlState}, deadlines"timeout", transport failures
net.NetError.asFloatrefuses NaN and infinity,asBooltakes only 0 /
1.net(M29.37): a connect, TLS handshake or lookup without a timeout
gives up after 30 s ("timeout");connect(addr, 0)no longer means no
deadline. Usemath.MAX_INTfor none.kv.incron an absent or expired key starts at 0 and stores the result
(was-1) (M29.38).ml.Modelis a value (M29.39): no$m.id, noml.Model{...}literal,
%vprints<ml.Model kind>.- Integers outside int64 (M29.40):
jsonandyamlkeep every digit;
asInt/asIntsrefuse them andasFloat/asFloatsrefuse any
integer a float does not hold exactly, namingasDecimal. - Strict decoding:
compress.unpackzlib / deflate refuse any byte after
the stream (M29.41); quoted-printable refuses a malformed=escape
(M29.42);yamlrefuses a float past float64's range and reads!!float
as a float;archiverefuses a drive-letter member name, a tar without its
end marker and data after the end. - Caps: a negative cap throws:
archive.unpackWith(was unlimited),
http.Optionsfields (maxBytes: -1was unlimited; also through the
deprecatedrequestWithfamily, where a negativetimeoutMswas none) and
webdav.get(M29.43, M29.44). - Timeouts (M29.45):
term.readByte/readByteTimeoutthrow"closed"
at the end of input andreadByteTimeout"timeout"(were-1/-2);
time.sleepwith a negative Duration throws. - Closed handles (M29.46): any use of a closed or consumed handle (
fs,
kv,serial,i2c,spi,gpio,term,channel,crc,net,
httpd,sql,compress,hash, and anos.Processafteros.release)
throws"closed"(was"runtime"in most); a secondclose/shutdown/discard/rollbackdoes nothing
(threw infs,net,term,channel); a repeatedfinalizeorcommit
throws"closed". toml.asDatetimerefuses a local date, time or date-time; read it with
asLocal(M29.47).- Hardware (M29.49): a
serialbyte with a parity or framing error
throws"serial"(was0x00);i2creads and writes over 8192 bytes throw
"limit"(were clamped);serial.writereturnsnull. - Outside text is UTF-8 (M29.50):
os.getEnv,os.ARGS,fs.list,
walk,readlink,realpathandsql.asStringthrow for invalid bytes,
naming the offset; the bytes forms read them. crypto.jwkToPemreturnsbytes(M29.51).- Consistency fixes (M29.52):
strings.replacewith an emptyold
throws;intl.setLocaleneeds a loaded catalog and kind"intl"is gone
(misuse is"runtime");meta.hasCapabilitythrows on an unknown name; a
kv.openFileflush throws"kv"when another writer changed the file;
httpd.serveDiranswers 404 for a symlink out ofrootunless
Options.followSymlinks;%f|precrounds the shortest decimal half to
even (1002.675prints1002.68,2.345prints2.34). - Scope (M29.9): reading a global through a hoisted function before its
defran throws (wasnull); writing to amatchbinder is a parse
error. - A module's own struct prints with its stem inside the module too
(geo.Point{x: 1}) (M29.14). - Lower caps: the lexer takes 1,048,576 tokens per file (was 4,194,304);
onjennifer-tinysplit / chars /readLinesparts 262,144 (was
1,048,576) and Argon2id / scrypt memory 128 MiB; scryptpat most 4 (was
16;verifyPasswordstill takes a stored hash up to 16);regex.findAllat most 838,860 matches for a group-less pattern (was
2,097,152);htmlnesting 256 (was 512);markdown,rstandmyst
sources over 4,194,304 characters,rstover 100,000 nodes (was
200,000);barcodequiet0-16 (was 0-100).
Deprecated
Removed in 0.29.0 (M30.25); jennifer lint reports each use as L301:
| Deprecated | Use |
|---|---|
http.requestWith, requestTls, requestWithTls, requestRawBody, requestRawBodyTls, requestBytes, requestWithBytes |
send / sendBytes (M29.43) |
http.Options.tls, http.TlsOptions (docs only) |
Options.tlsOptions as net.TLSOptions (M29.43) |
net.connect / connectTLS / startTLS trailing timeout |
connectWith / startTLSWith (M29.37) |
net.readAll / readN trailing idle timeout |
net.setIdleTimeout (M29.45) |
net.eof |
an empty readBytes (M29.46) |
sql drivers mariadb / postgresql, sql.setQueryTimeout |
mysql / postgres, Options.queryTimeoutMs (M29.36) |
positional caps of compress.unpack / images.decode, archive "tgz" |
unpackWith / decodeWith, "tar.gz" (M29.44) |
fs.watch interval, os.spawn options map |
fs.watchWith, os.spawnWith (M29.45) |
two-argument xml.decode |
xml.decodeWith (M29.47) |
ml.free (a no-op), the trailing hyper-parameters |
the *With trainers (M29.39) |
stats.multipleRegression, convert.toInt(float), os.hasFlag / flag, decimal.toString, images.rgba |
ml.linearRegression, math.trunc / round / floor / ceil, the args module, convert.toString / %v, images.Color{...} (M29.48) |
httpd.listenTLS / listenTLSWith / serveFileEtag / serveDirEtag |
Options.certPem / keyPem / etag (M29.48) |
the gpio module |
the gpio library's Chip (M29.48) |
spi.configure, gpio.chip, JENNIFER_GPIO_CHIP, pin-only gpio calls |
spi.openWith, gpio.open (M29.49) |
crypto "rsa-sha256" / 384 / 512, a string password |
"rsa-pkcs1-sha*", bytes (M29.51) |
time.fromUnixMillis / unixMillis |
fromUnixMilliseconds / unixMilliseconds (M29.52) |
Language and interpreter
Valueis 48 bytes (was 272): a 921,600-elementlist of floatpeaks at
170-200 MB instead of about 1 GB, and the benchmark suite runs in half the
time (M29.11). The element caps rise to 16,777,216 (MaxRangeElements) and
4,194,304 (channel capacity, matrix elements). Onjennifer-tinythe
latter two are 262,144 and its call depth cap is 400 (was 120); the default
binary's stays 10,000.- A module's struct has one identity on both sides of its boundary, so a call
rebuilds nothing: 200 lookups on a 6,400-node module tree went from 1.1 s
to 0 ms (M29.14). strings.indexOf(s, sub, from)and slices of a non-ASCII string resume
from the last position: a forward scan is linear (M29.13).- A parameter may shadow a global (M29.9).
- The interpreter sets Go's soft memory limit to 90% of the machine or cgroup
limit (GOMEMLIMITwins) (M29.3). make PREFIX=<dir>sets the module, docs andetcpaths;jennifer version -vprints them with their source (M29.4).- Name resolution reads
JENNIFER_RESOLV_CONF/JENNIFER_HOSTS, then
<PREFIX>/etc, then/etc; with no configuration a failed lookup names the
files looked for (M29.5).
Standard library
Libraries (use NAME;):
binary:fromInt/fromUint/fromFloat,fromInts/
fromFloatsandsetInt/setUint/setFloatwrite fixed-width
numbers, mirroring the readers (M29.54).os:SpawnOptionsgainsdir,env,cleanEnvandgroup(a new
process group);signal(p, name)signals a child or its group (M29.57).
waitTimeout/waitBytesTimeout,spawnWith(M29.45);getEnvBytes,
argsBytes()(M29.50).fs:syncDir(path);seek(f, offset)/tell(f)(M29.57).
watchWith(path, WatchOptions)(M29.45);listBytes,walkBytes
(M29.50).net:connectWith,startTLSWithwithConnectOptions{timeoutMs, tls, tlsOptions},lookupWith,reverseLookupWithwith
LookupOptions{timeoutMs, dnsServers}(M29.37, M29.5);setIdleTimeout(conn, ms)(M29.45). A name in a
chosen hosts file wins over the search list; adnsServersreply must
echo the query.sql:openWith(driver, dsn, Options{allowInsecure, queryTimeoutMs}),
SqlError(M29.36).task:setAllocBudget(bytes)/allocatedBytes(), a catchable"limit"
past it (M29.3);waitAllTimeout.channel:selectTimeout(M29.45).json,toml,yaml:asDecimal(v[, ptr])(M29.40).toml,
yaml,xml,asn1:decodeWith(s, DecodeOptions);yaml.asBytes,
toml.asLocal(M29.47).compress:unpackWith(..., UnpackOptions).images:
decodeWith(..., DecodeOptions).math:MAX_INT,MIN_INT(M29.44).encoding:"macintosh"(Mac OS Roman) (M29.56).crypto:"rsa-pkcs1-sha*"and"rsa-pss-sha*"insign/
verify;deriveKey's HKDF / PBKDF2 take the SHA-2, SHA-3 and BLAKE2
names; weak algorithms are tagged(weak)in name lists (M29.51).time:fromUnixMilliseconds,unixMilliseconds(M29.52).httpd:Options.certPem/keyPem/etag(M29.48),
followSymlinks(M29.52).spi:openWith(path, Options).gpio:open(path) -> Chip,
chip-first calls,close(M29.49).linalg:matmul,determinant,inverse,solvestop on
task.cancel;ml:pcatoo, at most 256 features.
Modules (import "NAME.j";):
kvstore,session,ratelimit,webhookload onjennifer-tiny;
news3presign(presigning withoutnet),webhook.signedHeaders
(M29.17).http:sendBytes;Options.tlsOptions(M29.43).web:allocBudget($app, bytes)per request (M29.3);
onServerError($app, handler), called only for errors answered 5xx.soap: a WSDL 1.1 reader:parseWsdl,parseWsdlWith,wsdlCall,
wsdlCallAt,wsdlCallTo,wsdlConnect,wsdlRequest.parseand the
server refuse a misplacedHeader, a header block in no namespace and
text in the Envelope or Body.doctree: TrueType faces per role with fallbacks;layoutPdfreturns
the glyphs no face has (M29.20). Bookmarks, images, fonts and pages go to
pdfonce per document: 8.4 GiB to 337 MiB of copies on 500 pages
(M29.18).jwt:PS256/PS384/PS512(M29.51).html:parseslices the source instead of a character list: about a
third faster, 40% less memory (M29.15).flatdb,oauth.save: fsync the directory after the rename
(M29.57).screen: C1 control characters are drawn as spaces too.mqtt: messages queued during an ack wait are capped at 64 MiB.
amqp: a frame over the negotiated frame-max is"limit".
Tooling
profile:--out FILE; SIGINT / SIGTERM write the report, SIGUSR1 a
snapshot (M29.30). Rows name the function and source line,--by=function,
--top N,--focus PATTERN(M29.31). A wait column for blocking builtins;
the header gives wall time and task count (M29.32).--allocscounts copies
into literals (M29.53).lint:L117checks literalprintfformats (M29.10);L302reports
removed API (M29.35), an import of a removed bundled module with the deck
that replaced it (M29.33), and a removed module function (M29.17, M29.34);L301reads@deprecatedfrom module docblocks
(M29.43). One module imported under two prefixes is one type.- Releases add
linux/arm(armv7, armv6),linux/386,linux/riscv64
and an unsupportedandroid/arm64build (M29.6). - Editors: a Pygments lexer (
editors/pygments/).
Docs
- The API pages show signatures as code with a contents table, and each module
guide links to its API page. docs/trademarks.md.
Fixed
- 32-bit targets:
profile --tracepanicked on unaligned atomics; counts were
narrowed tointbefore their range checks (M29.6). - The borrow analysis missed that
testing.runArgs/assertThrowsArgsrun
.jcode (M29.35). kv: a writer whose lock was broken as stale could still write; it now
throws"kv".crypto.jwkToPemchecks that an EC point is on the curve.yaml: a timestamp written in flow style round-trips as adatetime.
Test results
- Full Go test suite: passing (JUnit
report.xmlattached). - Interpreter code coverage: 80.3% (
coverage.htmlattached).
Artifacts
jennifer-0.28.0-android-arm64-UNSUPPORTED.tar.gzjennifer-0.28.0-darwin-amd64-UNSUPPORTED.tar.gzjennifer-0.28.0-darwin-arm64-UNSUPPORTED.tar.gzjennifer-0.28.0-linux-386.tar.gzjennifer-0.28.0-linux-amd64.tar.gzjennifer-0.28.0-linux-arm64.tar.gzjennifer-0.28.0-linux-armv6.tar.gzjennifer-0.28.0-linux-armv7.tar.gzjennifer-0.28.0-linux-riscv64.tar.gzjennifer-0.28.0-windows-386-UNSUPPORTED.zipjennifer-0.28.0-windows-amd64-UNSUPPORTED.zipjennifer-0.28.0-setup.exejennifer-manual.pdf- the full documentation as a single PDF.jennifer-module-api.pdf- the module API reference as a single PDF.
Artifacts named -UNSUPPORTED are best-effort macOS / Windows / Android builds (standard jennifer only, no TinyGo, unsigned, no support); see docs/user-guide/installing.md. The *-setup.exe is the same unsupported Windows build wrapped in an installer (PATH, .j association, bundled modules). Any of these may be missing if that build failed - it does not block the Linux release.