Skip to content

Releases

v0.2.1

Choose a tag to compare

@boracomet boracomet released this 05 Dec 15:08

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 a lambda or an inner def, 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, obligations and record; go/obligations-source.toml can name the language and the entry. Laravel's artisan is read as Laravel's console entry.
  • C: printing through putc, fputc, putchar, puts, fputs, dprintf, vprintf, vfprintf and fwrite keeps the function in C, as printf did; getenv and 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 $codepoints wire marker).
  • refresh reads a port split over several files of port/.
  • An export named GoPanic no longer replaces the Python wrapper's panic type.

New

  • Clock, randomness and environment detectors in all eleven languages, widened to rust-anything's lists.
  • doctor and app drift say when a newer Laravel Go than the front door's is released; a weekly workflow runs the Laravel demo against the latest Laravel Go; setup points to Laravel Go's own agent skills in a Laravel project.
  • .deb and .rpm packages 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.1

or download the binary or the .deb/.rpm for your platform below. Other channels: docs/install.md.

v0.2.0

Choose a tag to compare

@boracomet boracomet released this 04 Dec 12:55

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-app maps a Laravel app's parts to Laravel Go (go.laravel.com), obligations reads Laravel's routes, artisan commands and env() reads, and app front-door --laravel-go generates 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 android builds Java and Kotlin units for the Android ABIs with the NDK; record and diff --profile android run under ART on a device or emulator.
  • wasm. bridge --kind wasm ships a TS/JS unit's port as a WASI module, with record, diff, gate and enable working 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 its go-anything: line. --version prints go-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 test may 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.0

or 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.0

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 13:26

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) and profile: 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; selftest plants wrong ports and requires gate and diff to 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 record and app replay for command-line apps and HTTP servers, side effects (webhooks, mail, databases), app drift, app front-door and app wire; obligations with 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, new and spec 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.0

or 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