CodeName OneShai Almog15 min readintermediate
We Didn't Want to Build Another Java Server
Summary
Codename One introduced an experimental native Java backend that compiles Java controllers to a tiny native executable via ParparVM. Benchmarks show sub‑millisecond startup, 10‑40 MiB memory, and up to 20 % higher request throughput than a Go fasthttp server.
- ParparVM translates Java bytecode to C and produces native binaries as small as 392 KB with ~3 ms startup.
- In a plaintext HTTP benchmark the static native build handled 595k RPS (≈20 % faster than Go) with <0.3 ms median latency.
- Memory usage stays under 40 MiB, far lower than a JVM handler (~190 MiB) and comparable to Go’s 6 MiB.
- Shared Java models and validation rules can be used both on mobile apps and the server, eliminating duplication.
Teams that need low‑latency, low‑memory Java microservices or serverless functions can get Go‑like performance without leaving the Java ecosystem.
6/10