Skip to content

ZIPP v0.0.38

Choose a tag to compare

@github-actions github-actions released this 23 Nov 04:42
· 154 commits to main since this release

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.resolve and process.exitCode (#99):
    • Implements import.meta.resolve(specifier, parent?) using the same ESM resolution algorithm as actual import statements (node: builtins, package.json exports/imports, scoped/subpath packages, and relative/file URLs).
    • Propagates process.exitCode through normal script, module, and TypeScript completion (with numeric/string coercion and 0 default).
  • 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 lazy globalThis bootstrap), unboxes uncaptured destructured locals in arrow functions, enables Float32Array on the XMM DOUBLE register-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_cache with GC/prototype epoch invalidation, fast Walked::ClassGetter routing, %RegExp.prototype% fast-slot caching plus a pristine non-global str.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 ms to 123.3 ms (1.76× faster, first call 251.9 ms → 183.0 ms) and Defuddle repeat median drops from 232.0 ms to 174.8 ms (1.33× faster, first call 309.0 ms → 241.9 ms).
  • 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, and unittest.mock.
    • Runs unmodified html2text, markdownify (beautifulsoup4, soupsieve, typing_extensions), and pure-Python PyYAML with output matching CPython byte-for-byte.
  • Python pathlib/read_text and compiled re.findall throughput (#102):
    • Adds a native py_re_findall fast path (safe-sandbox compatible) and streamlines pathlib.Path.glob/rglob/read_text traversal; cuts the 353-file / 31,770-match Markdown scan from 0.304 s to 0.084 s.
  • Python zipfile ZIP_DEFLATED, compresslevel, zlib, and shutil (#104):
    • Implements zero-dependency RFC 1950/1951 deflate/inflate across compression levels 0–9, wires zlib and shutil, and adds ZIP_DEFLATED and compresslevel support to zipfile.
  • Python text-mode universal newline translation (#105):
    • Translates \r\n and \r according to newline=None, "", "\n", "\r", and "\r\n" on text-mode reads and writes in open() and pathlib.Path.
  • initPythonProject with non-identifier entry directories (#106):
    • Fixes zipp-wasm Python project execution when the entry script lives beneath a directory segment that is not a valid Python identifier (for example fixtures/with-hyphen/verify.py).
  • Python re linear 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 zippTorchKernel on Python builds) and the 1 GiB linear memory cap.

Full Changelog: v0.0.37...v0.0.38