Skip to content

v0.14.4 SliceVM Runtime

Choose a tag to compare

@siktec-lab siktec-lab released this 26 Nov 02:10
· 70 commits to main since this release
83c1f7b

Slice v0.14.4 - Native Built-in Resource Cage Hardening

Closes all five native built-in fuel, memory, and timeout cage bypasses tracked in milestone v0.14.4 with zero measured regression on Criterion hot-path benchmarks and 33/33 real-world workload wins over Bun, Deno, and Node.js.

Security & Resource-Cage Fixes

  • #183 - RegExp catastrophic backtracking metering: Vendored regress 0.12.0 (vendor/regress), added with_step_budget with amortized 4,096-step fuel, wall-clock deadline (timeoutMs), and IsolateInterruptHandle checks plus a local MatchAttempter.aborted flag, and wired RegExp::builtin_exec.
  • #184 - ArrayBuffer / SharedArrayBuffer / TypedArray / Buffer metering: Added upfront O(1) heap + fuel checks in create_byte_data_block, create_shared_byte_data_block, and ArrayBuffer.prototype.transfer (also enforcing max_buffer_size), 64-element chunked fuel in TypedArray bulk loops (fill, set, copyWithin, reverse, toReversed), clamped TypedArray.prototype.join pre-allocation with 4 KB heap chunks, and per-comparison fuel in sort/toSorted.
  • #185 - String built-in metering: Metered String.prototype.repeat, padStart/padEnd, replaceAll, split (string separator), concat, toLowerCase/toUpperCase, and normalize.
  • #186 - Sparse Array & array-like built-in metering: Clamped Array.prototype.join pre-allocation with 4 KB heap chunks, added 64-iteration chunked fuel/heap metering across fill, reverse, toReversed, concat, slice, splice, toSpliced, copyWithin, with, indexOf, lastIndexOf, includes, shift, unshift, flatten_into_array, and sparse empty-hole callback loops, and capped flat(Infinity) at recursion_limit().
  • #187 - BigInt, JSON, Object bulk ops, and native codec metering: Added upfront bit-length metering for BigInt **/<</>>/toString, per-container fuel + output-byte DAG guard in try_fast_stringify and chunked serialize_json_array, > 64 key metering in Object.assign/keys/values/entries, and Context::charge_transient_heap_bytes + fuel metering across JSON.parse, btoa, atob, TextEncoder, and TextDecoder while preserving sustained chunked streaming I/O.
  • Manifest [runtime] support: Added [runtime] fuel_limit and memory_limit_* aliases in SliceManifest::parse_toml (slice.toml).

Benchmarks (v0.14.4, Linux x86_64 Docker)

  • 33/33 workloads faster than Bun v1.4.5, Deno v2.9.8, and Node.js v27.0.0-alpha.0.1.1 (cold .cas and --warm).
  • slice serve Tier-0 CAS: 158,118 req/s (1.58x Bun / 2.89x Node); Tier-1 WinterTC: 153,531 req/s (1.54x Bun / 2.80x Node).
  • Single Isolate Cold-Start: 0.86 us P50 / 1.21 us P99; 1,000-Tenant Swarm: 1.10 ms (8.12 MB RSS); 5/5 security vectors blocked.

Full Changelog: v0.14.3...v0.14.4