Skip to content

v0.2.0

Choose a tag to compare

@boracomet boracomet released this 04 Dec 12:55
· 33 commits to main since this release

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