Skip to content

feat: strtod fix, --export ABI, wasm32 datalayout, Python runner - #405

Merged
godofecht merged 4 commits into
mainfrom
fix/strtod-stdlib
Aug 11, 2026
Merged

godofecht merged 4 commits into
mainfrom
fix/strtod-stdlib

Conversation

@godofecht

@godofecht godofecht commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #396, closes #400.

This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.

Generated with Devin

@cursor

cursor Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

…ASM ABI

Add --export NAME flag to the transpiler that emits stable C aliases
(flow_export_<name>) for named functions. This lets WASM/FFI consumers
link against a stable symbol without knowing the overload-mangling scheme.

Also includes:
- --module-name flag for Emscripten MODULARIZE / Python package naming
- docs/language/export-abi.md documenting the export ABI and Emscripten usage
- MLIR: emit wasm32 datalayout + target triple so mlir-translate computes
  correct struct field offsets (ptr = 4 bytes)
- 8 new tests in test_export_abi.py

Closes #396.

This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@godofecht godofecht changed the title fix: add strtod to stdlib_functions set feat: strtod stdlib fix, --export/--module-name ABI, wasm32 datalayout Aug 11, 2026
Add `python3 -m flow.run` as a shell-independent alternative to the bash
`flow run` command. Transpiles, compiles, and runs a .flow program without
requiring bash 4.4+ (macOS ships bash 3.2).

Features:
- --json emits a JSON envelope with stdout, exit code, and per-stage timing
- --keep preserves intermediate C/binary files
- --lenient for warnings-only type checking
- FLOW_RUN_PYTHON=1 makes `./flow run` delegate to the Python runner

Docs: docs/language/flow-run.md
Tests: 6 new tests in test_flow_run.py

This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@godofecht godofecht changed the title feat: strtod stdlib fix, --export/--module-name ABI, wasm32 datalayout feat: strtod fix, --export ABI, wasm32 datalayout, Python runner Aug 11, 2026
@godofecht
godofecht merged commit c1f1cba into main Aug 11, 2026
14 checks passed
@godofecht
godofecht deleted the fix/strtod-stdlib branch August 11, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flow-scikit] Support reproducible executable demos and visual result capture [flow-scikit] Document and stabilise the C/WASM export ABI

1 participant