Repository navigation
ZIPP v0.0.38
ZIPP 0.0.38
A compatibility and performance release resolving Node ESM module resolution and exit-code handling, expanding Python standard library parity for real-world HTML extraction and CI policy workloads, fixing zipfile deflate compression, text-mode universal newlines, initPythonProject entry paths, and quadratic Python regex astral-offset conversion, and accelerating DOM/HTML parsing throughput in the JavaScript JIT and runtime.
Thank you to @codeandsolder for reporting issues #99 through #107 with clear minimal reproductions, exact expected behavior, and real-world HTML and Python benchmarks — your reports made every one of these fixes and speedups straightforward to pinpoint and verify.
New in 0.0.38
- Node ESM
import.meta.resolveandprocess.exitCode(#99):- Implements
import.meta.resolve(specifier, parent?)using the same ESM resolution algorithm as actualimportstatements (node:builtins,package.jsonexports/imports, scoped/subpath packages, and relative/file URLs). - Propagates
process.exitCodethrough normal script, module, and TypeScript completion (with numeric/string coercion and0default).
- Implements
- DOM/HTML parsing & JS JIT throughput (#101):
- Unlocks native JIT cross-calls and ES module leaf inlining when
global_route_epoch != 0(as after Node's lazyglobalThisbootstrap), unboxes uncaptured destructured locals in arrow functions, enablesFloat32Arrayon the XMMDOUBLEregister-allocated loop tier with NaN canonicalization, and folds hoisted pinned-receiver nullish checks (bias === void 0 ? 0 : bias[row]). - Adds a direct-mapped
class_member_cachewith GC/prototype epoch invalidation, fastWalked::ClassGetterrouting,%RegExp.prototype%fast-slot caching plus a pristine non-globalstr.match(re)path, and pooled allocation reuse (upval_pool,byte_pool,arr_pool, interned ASCII) across closures, regex slices, arrays, and string operations. - On the #101 steady-state HTML parsing reproduction (fat-LTO vs. fat-LTO, exact outputs): WebforAI repeat median drops from
216.6 msto123.3 ms(1.76× faster, first call251.9 ms→183.0 ms) and Defuddle repeat median drops from232.0 msto174.8 ms(1.33× faster, first call309.0 ms→241.9 ms).
- Unlocks native JIT cross-calls and ES module leaf inlining when
- Python standard library parity for real-world packages & CI oracles (#100, #103):
- Adds 23 original Apache-2.0 stdlib modules:
_markupbase,html,html.entities,html.parser,urllib,urllib.parse,urllib.error,urllib.response,urllib.request,warnings,codecs,logging,copyreg,threading,binascii,base64,tempfile,datetime,shlex,tomllib,importlib.util,unittest, andunittest.mock. - Runs unmodified
html2text,markdownify(beautifulsoup4,soupsieve,typing_extensions), and pure-PythonPyYAMLwith output matching CPython byte-for-byte.
- Adds 23 original Apache-2.0 stdlib modules:
- Python
pathlib/read_textand compiledre.findallthroughput (#102):- Adds a native
py_re_findallfast path (safe-sandbox compatible) and streamlinespathlib.Path.glob/rglob/read_texttraversal; cuts the 353-file / 31,770-match Markdown scan from0.304 sto0.084 s.
- Adds a native
- Python
zipfileZIP_DEFLATED,compresslevel,zlib, andshutil(#104):- Implements zero-dependency RFC 1950/1951 deflate/inflate across compression levels 0–9, wires
zlibandshutil, and addsZIP_DEFLATEDandcompresslevelsupport tozipfile.
- Implements zero-dependency RFC 1950/1951 deflate/inflate across compression levels 0–9, wires
- Python text-mode universal newline translation (#105):
- Translates
\r\nand\raccording tonewline=None,"","\n","\r", and"\r\n"on text-mode reads and writes inopen()andpathlib.Path.
- Translates
initPythonProjectwith non-identifier entry directories (#106):- Fixes
zipp-wasmPython project execution when the entry script lives beneath a directory segment that is not a valid Python identifier (for examplefixtures/with-hyphen/verify.py).
- Fixes
- Python
relinear astral-offset conversion (#107):- Replaces quadratic per-match UTF-16↔code-point scanning with an O(N) prefix table and O(log N) lookup so regex workloads with astral characters scale linearly.
Downloads
| File | What it is |
|---|---|
zipp-0.0.38-windows-x86_64-portable.exe |
The Windows command line; run it from anywhere. |
zipp-0.0.38-windows-x86_64-installer.msi |
The same binary, installed for the current user into %LOCALAPPDATA%\Programs\ZIPP and added to PATH; no administrator rights. Uninstall from Settings > Apps. |
zipp-0.0.38-linux-x86_64 |
The Linux command line, x86-64 (glibc 2.35 or later). chmod +x it after downloading. |
zipp-0.0.38-linux-arm64 |
The same for 64-bit Arm. |
zipp-0.0.38-linux-armv7 |
The same for 32-bit Arm (hard float); interpreter only, and WebAssembly on wasmi. |
zipp-0.0.38-javascript.wasm |
The JavaScript engine for browsers, Node, Deno and Bun. |
zipp-0.0.38-javascript-typescript.wasm |
The same with TypeScript and TSX. |
zipp-0.0.38-javascript-lite.wasm |
The JavaScript core without Intl and Temporal, built for size. |
zipp-0.0.38-javascript-python.wasm |
JavaScript and Python, torch built in. |
zipp-0.0.38-javascript-python-base.wasm |
JavaScript and Python without torch. |
zipp-0.0.38-javascript-php.wasm |
JavaScript and PHP 8.x, with PhpApp SAPI and SQL bridge support. |
zipp-0.0.38-javascript-rust.wasm |
JavaScript and Rust, with Axum/SQLx worker-boot support. |
zipp-0.0.38-torch-package.wasm |
The torch package for the -python-base engine. |
zipp-0.0.38-<engine>.wasm.br |
Each WebAssembly module compressed with Brotli (quality 11), about a quarter of its size. Serve it with Content-Encoding: br and Content-Type: application/wasm, or let zipp.mjs load it; the plain .wasm is the default. |
zipp-0.0.38-wasm-embed-kit.zip |
zipp.mjs (the loader and sandbox, version 1.5.0) and its types, the host SDK (1.4.0), the engine's TypeScript declarations, the browser GPU adapter, docs and examples. |
SHA256SUMS |
Checksums of every file. |
Verification
- All release binaries, WebAssembly variants, and the embed kit are built and verified from the tagged commit in release.yml and release-build.yml.
- Every WebAssembly engine module retains the audited 51-function host import surface (plus
zippTorchKernelon Python builds) and the 1 GiB linear memory cap.
Full Changelog: v0.0.37...v0.0.38