Skip to content

One Go source. Eight native targets.

Write your SDK’s logic once in a restricted subset of Go. Generate native packages with consistent behavior across languages.

Write once. Verify everywhere.

Keep parsing, validation, protocols, and business rules in one typed codebase. Goalchemy lowers ordinary .go files through a typed intermediate representation, then emits source and the runtime each target needs.

GoalchemyGo source · cooperative gate
Generated code
main.go
pkg_tasks_51ee6f93a026bf93.ts

Actual compiler output using native pausing (C uses frames). Runtime and dependency files are linked separately.

Ordinary Go source

Use the Go toolchain to write, run, and test your source. The compiler checks a defined subset and reports unsupported constructs before emission.

Semantics that travel

Preserve integer widths, byte strings, value copies, aliasing, errors, and cooperative tasks across target languages.

Behavior you can verify

Runtime contracts and differential tests compare generated programs with native Go. Reproducible output records its linked contracts in a manifest.

Native host capabilities

Use native crypto, HTTP, clocks, and logging through explicit capability boundaries. Keep pure logic in shared source.

Goalchemy accepts a defined Go subset. Check the feature matrix for coverage and current limitations before adopting it. Swift is experimental, with Linux x86_64 as its verified baseline.