We Rewrote JSONata with AI in a Day, Saved $500K/Year
5 hours ago
- #AI
- #Optimization
- #Go
- Reco rewrote JSONata with AI in a day, saving $500K/year.
- Used AI to implement a pure-Go version of JSONata (gnata) in 7 hours for $400 in tokens.
- Previous setup involved costly RPC calls to Node.js processes, costing ~$300K/year in compute.
- gnata features a two-tier evaluation architecture for fast and complex expressions.
- Achieved a 1,000x speedup on common expressions by eliminating RPC overhead.
- Rolled out gnata in shadow mode for a week to ensure correctness before full deployment.
- Additional optimizations in the rule engine saved another $200K/year.
- AI-assisted code review was used, refining the process for future AI-generated code.
- gnata is available as an open-source library with full documentation and a WASM playground.