Skip to content

[self-hosting C] Make ./flow default to flowc (Python via FLOW_HOST=python) #152

Closed

Description

@godofecht

Phase C — Cutover shim

Plan: docs/project/self-hosting.md

Work

  • Thin ./flow prefers Stage-A self driver / packaged flowc
  • Parity suite: tier-0/1 examples under both hosts
  • Escape hatch: FLOW_HOST=python

Exit

Default ./flow run examples/basics/hello_world.flow does not import src/flow/parser.py.

Decision

See Questions.md — hard cutover vs soft dual-host.

Activity

  1. added
    enhancement
    self-hosting
    on Aug 5, 2026
  2. godofecht commented on Aug 5, 2026

    @godofecht
    ContributorAuthor

    Phase C soft cutover landed in #192:

    • ./flow run|compile defaults to FLOW_HOST=flowc (Stage-A driver via ensure_flowc.sh)
    • Escape hatch: FLOW_HOST=python (examples/benchmarks CI still pin this)
    • FLOW_HOST=auto tries flowc then falls back
    • Bootstrap/roundtrip scripts force FLOW_HOST=python so Gen0 dogfood does not recurse
    • CI smoke after roundtrip: hello_world + fibonacci under flowc host

    Exit criterion (hello_world does not import src/flow/parser.py on default path) is met for Stage-A programs. Remaining: broader parity suite / packaging → see #153 (Phase D).

  3. godofecht commented on Aug 5, 2026

    @godofecht
    ContributorAuthor

    Soft cutover complete via #192. Default ./flow run|compile is Stage-A flowc; FLOW_HOST=python escape hatch remains until Phase D (#153).

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

    enhancementself-hosting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions