dart_monty_wasm 0.7.0 copy "dart_monty_wasm: ^0.7.0" to clipboard
dart_monty_wasm: ^0.7.0 copied to clipboard

WASM backend for dart_monty, pure Dart bindings for Monty — a restricted sandboxed Python interpreter built in Rust.

0.7.0 #

  • Multi-session Worker pool: createSession, disposeSession, getDefaultSessionId
  • Strip NAPI-RS overhead: asyncWorkPoolSize: 0, shared: false, 16MB per session (was 256MB)
  • Binary snapshot transfer via Uint8Array (avoid JSON serialization for snapshots)
  • Timeout caching for repeated executions
  • Wire cancel path: disposeSession() calls Worker.terminate() for preemptive kill
  • Add WASM cancel benchmark (T1-1W, T1-4W, T2-2W, T3-1W + 5 N/A documented)
  • Add getDefaultSessionId to production bridge.js export

0.6.1 #

  • Fix toSerializable() in worker bridge for robust dict/set/bigint handling
    • Add circular reference guard (WeakSet) to prevent stack overflow
    • Add cross-realm Map/Set duck-typing via .get presence/absence
    • Convert Set → Array (Python frozenset/set from NAPI-RS)
    • Convert BigInt → Number/String (prevents JSON.stringify crash)
    • Convert TypedArray → Array (Python bytes from NAPI-RS)
  • Update README with usage example and human/AI attribution
  • Enrich example/example.dart with limits, external function dispatch, and error handling demos

0.6.0 #

  • BREAKING: Migrate MontyWasm to BaseMontyPlatform (uses MontyCoreBindings architecture)
  • Add WasmCoreBindings adapter

0.4.3 #

  • Version bump (no package code changes)

0.4.2 #

  • Version bump (no package code changes)

0.4.1 #

  • CI improvements (no package code changes)

0.4.0 #

  • Handle resolve_futures progress state in MontyWasm
  • Add pendingCallIds field to WasmProgressResult
  • Stub resumeAsFuture(), resolveFutures(), resolveFuturesWithErrors() with UnsupportedError (NAPI-RS does not expose FutureSnapshot API)

0.3.5 #

  • Wire WASM JS bridge: kwargs, callId, scriptName, excType, and traceback in worker responses
  • Fix worker onerror to reject pending promises on crash
  • Fix restore() state machine to return active instance
  • Add ladder tier files for tiers 8, 9, 15 to runner

0.3.4 #

  • Initial release.
0
likes
0
points
1.15k
downloads

Publisher

unverified uploader

Weekly Downloads

WASM backend for dart_monty, pure Dart bindings for Monty — a restricted sandboxed Python interpreter built in Rust.

Repository (GitHub)
View/report issues

Topics

#python #sandbox #wasm #interpreter

License

unknown (license)

Dependencies

dart_monty_platform_interface

More

Packages that depend on dart_monty_wasm