Skip to content

[flow-scikit] Document and stabilise the C/WASM export ABI #396

Closed

Description

@godofecht

flow-scikit now ships browser experiments backed by Flow → C → Emscripten WASM. It works, but the integration currently has to depend on generated symbol mangling and raw --emcc-flag=-sEXPORTED_FUNCTIONS=... values.

Request

Please provide a supported, documented export path for C/WASM packages:

  • a CLI-level way to declare exported Flow functions without guessing mangled C symbol names;
  • a stable generated module factory name or an explicit --module-name option;
  • an ABI/versioning policy for numeric and pointer parameters;
  • a minimal browser integration test in Flow CI.

Why this matters

This would let numerical libraries expose small, inspectable browser demos without coupling their builds to compiler implementation details. It also makes failures easier to diagnose for package authors.

Related compiler work: #291 (nested assignment expressions in the C generator).

Activity

  1. added
    tooling
    on Aug 10, 2026
  2. added a commit that references this issue on Aug 11, 2026
    19749e7
  3. added a commit that references this issue on Aug 11, 2026
    c1f1cba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilertooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions