Skip to content

Series

Laravel for Rust and Go

Laravel's ports to Rust and Go, tried on a real package: how the same app performs on PHP, Rust and Go, and how the package was ported and kept at parity with PHP.

Title card reading "Porting a Laravel package to Rust and Go", subtitle "laravel-codicefiscale, a retrospective". A diagram: a box "PHP 3.3.0" (Laravel 12 and 13; rule, cast, faker, artisan command) points with an arrow labelled export to a box "Golden corpus" (structural.json, domain.json, 1,887 cases), which points with arrows labelled assert to two boxes, "Rust" (laravel-rust 0.1, 2 crates) and "Go" (Laravel Go 0.1, 2 modules). Footer: Two ports with Claude Code agents, 1 to 3 December 2026.
  1. Part 1

    Laravel for Rust and Go, first look: the same app, measured against PHP

    The same small Laravel app on Laravel 13, laravel-rust 0.1.4 and Laravel Go 0.1.1, in containers pinned to cores. At one CPU Rust serves about 4,500 requests a second on the home page, Go about 3,000 and tuned PHP-FPM about 108. Go has the smallest image and the lowest median latency at one CPU, with a 99th percentile that CPU throttling explains. Numbers from 432 load runs, on two frameworks that are days old.

  2. Part 2

    Porting a Laravel package to Rust and Go: a retrospective

    Between 1 and 3 December 2026 I ported laravel-codicefiscale to Laravel for Rust and to Laravel Go, with Claude Code agents doing the coding. How each Laravel piece moved (validation rule, Eloquent cast, Faker provider, Artisan command, government dataset), how a golden corpus exported from PHP proved parity, and the bug the second port found in the first.