Repository navigation
Releases
v0.2.1
go-anything v0.2.1: fixes found by trying rust-anything's open issues, every language's clock/randomness/environment detectors brought up to rust-anything's, Linux packages, and now MIT only, as rust-anything is.
Fixed
- A Python
async def, and a function that returns alambdaor an innerdef, stay in Python with the reason instead of being bridged. - An executable script without an extension (a shebang: python3, node, ruby, php, pwsh) is found by
analyze,obligationsandrecord;go/obligations-source.tomlcan name the language and the entry. Laravel'sartisanis read as Laravel's console entry. - C: printing through
putc,fputc,putchar,puts,fputs,dprintf,vprintf,vfprintfandfwritekeeps the function in C, asprintfdid;getenvand the other environment reads are counted, with or without a space before the parenthesis. - Python strings with a high surrogate followed by a low one keep two code points on input (the
$codepointswire marker). refreshreads a port split over several files ofport/.- An export named
GoPanicno longer replaces the Python wrapper's panic type.
New
- Clock, randomness and environment detectors in all eleven languages, widened to rust-anything's lists.
doctorandapp driftsay when a newer Laravel Go than the front door's is released; a weekly workflow runs the Laravel demo against the latest Laravel Go;setuppoints to Laravel Go's own agent skills in a Laravel project..deband.rpmpackages for Linux (amd64, arm64) on the release page. Homebrew (brew install boracomet/tap/go-anything), Scoop and npm packages are ready and are published by the release workflow once their tokens are set.- ROADMAP.md: what comes next.
Changed
- go-anything is MIT only, as rust-anything now is. Versions up to v0.2.0 were released under MIT OR Apache-2.0 (see NOTICE).
What was run and how is in docs/STATUS.md.
Install
go install github.com/boracomet/go-anything/cmd/go-anything@v0.2.1or download the binary or the .deb/.rpm for your platform below. Other channels: docs/install.md.
v0.2.0
go-anything v0.2.0: every source language rust-anything has, its whole-app real-world ports, Android and wasm, and a new path from Laravel to the official Laravel Go framework.
New
- Eleven source languages. Java, Kotlin, C# and PowerShell join Python, TypeScript/JavaScript, Ruby, C, Rust, PHP and Swift, each through the whole unit loop with a demo that passes
gate: the JDK's URLEncoder/URLDecoder/Integer (1,666/1,666 cases), string-similarity-kotlin (1,815/1,815), Google.Protobuf's size computations (2,995/2,995) and three dbatools helpers (166/166). - Laravel → Laravel Go.
analyze --whole-appmaps a Laravel app's parts to Laravel Go (go.laravel.com),obligationsreads Laravel's routes, artisan commands andenv()reads, andapp front-door --laravel-gogenerates a Laravel Go app that answers the ported routes and proxies the rest to the PHP app, so a migration goes route by route with every response checked. The demo (demo/real-world/laravel-go) replays 58/58 recorded requests identically with 0% fallback; on an Apple M2 Pro the Laravel Go app served 2.4x to 12.9x the requests per second of PHP with 8 workers (a loaded machine; see its README). See docs/laravel.md. - Prettier, whole. Prettier 3.10.1 behind a Go front door (JS/TS, JSON, CSS/SCSS/Less, Markdown, YAML, GraphQL): 59/59 real files formatted byte for byte, 8.8x faster one process per file (14.6x on files that need no fallback); 4.6% of recorded runs fall back to Node (rust-anything's port: 7.9%).
- ESLint, whole. ESLint 10.15.0 with its 90 rules behind a Go front door: 11,149/11,149 recorded runs identical, 3.4% fallback, 19.5x faster on 441 real files one process per file.
- Android.
build --profile androidbuilds Java and Kotlin units for the Android ABIs with the NDK;recordanddiff --profile androidrun under ART on a device or emulator. - wasm.
bridge --kind wasmships a TS/JS unit's port as a WASI module, withrecord,diff,gateandenableworking against it. - Test parity. Every rust-anything test is mapped to its Go counterpart in
docs/parity/; the tests that were pending all pass but one, and the rows that are Rust-only say why.
Changed
- An error now prints
error: <message>on stderr, as rust-anything does; a verdict keeps itsgo-anything:line.--versionprintsgo-anything <version>. gate's held-out inputs stay inside what a C parameter's type can hold.- CI runs on Ubuntu and macOS with JDK 22, Node 24 and PowerShell;
go testmay take 75 minutes.
What was run and how is in docs/STATUS.md.
Install
go install github.com/boracomet/go-anything/cmd/go-anything@v0.2.0or download the binary for your platform below. Building a port module needs Go 1.25 or newer and a C compiler (go-anything doctor checks).
GitHub Action
- uses: boracomet/go-anything@v0.2.0
with:
modules: go/my-port-go
version: v0.2.0v0.1.0
The first release of go-anything: migrate your app to Go one piece at a time, and check that every piece still behaves like the original. A Go port of rust-anything by Erkam Yaman.
What works
For Python, TypeScript/JavaScript, Ruby, C, Rust, PHP and Swift originals, the unit loop end to end:
analyze(also--whole-app) andprofile: what to port, and what is hot under a real workload.bridge,refresh,build: a Go port module per unit, functions and classes, over a binary wire with a JSON fallback, and batches that keep many items in Go.record(with--from-tests,--pin-clock,--sandbox),diff,fuzz,bench: the original's behavior recorded, and the port checked against it.gate: the definition of done, with its cheat guard;selftestplants wrong ports and requiresgateanddiffto refuse each.enable,disable,shadow: switch callers to the port and back, byte for byte.go: the loop in one command, handing the port to a coding agent.report,map,log,rules,clean,doctor,setup,mcp,package.- Whole apps:
app recordandapp replayfor command-line apps and HTTP servers, side effects (webhooks, mail, databases),app drift,app front-doorandapp wire;obligationswith its Python and TS/JS detectors,--evidence,--check,attest,waive,fallbacks.
Ports that pass gate on real code: demo/py-textkit, demo/ts-textkit, demo/ruby-shellwords, demo/c-musl, demo/rust-strsim, demo/php-xml-util, demo/swift-argparse-strings.
Not yet
- Java, Kotlin, C# and PowerShell as source languages.
app lift,newandspec check(written, merged after this release).- No language is "verified" on a large real-world project yet.
- The npm package is not published.
What was run and how is in docs/STATUS.md.
Install
go install github.com/boracomet/go-anything/cmd/go-anything@v0.1.0or download the binary for your platform below. Building a port module needs Go 1.25 or newer and a C compiler (go-anything doctor checks).
GitHub Action
- uses: boracomet/go-anything@v0.1.0
with:
modules: go/my-port-go
version: v0.1.0