Hare Meets GEOS: A Geometry Experiment Against Rust
Update, 30 November 2026: I added Mojo and Inko to the experiment. Both prevent memory errors without a garbage collector. The Mojo port is in Update: Mojo , the SIMD results are in SIMD in Mojo , and the Inko port is in Update: Inko . All numbers in this post are from one new run of all eight implementations. This week I set up a small Arch Linux VM in OrbStack on my Mac and installed Hare , a small systems programming language with a simple compiler. Hello world built in seconds. Then the GIS person in me asked the obvious question: can Hare do real geometry work, and how fast is it compared with Rust? I wrote an experiment to find out. The source is on GitHub: mraad/hare-geo . This is an experiment, not a library. The numbers come from one virtual machine and one synthetic data set. Port GEOS or bind it GEOS is the C++ geometry engine under PostGIS, QGIS and Shapely. It has approximately 300,000 lines of C++. A full port to Hare is months of work, so I split the question...