SPy: An interpreter and compiler for a fast statically typed variant of Python

Fast Python vibes, not full Python: speed hype, limits, and comment chaos

TLDR: SPy aims to be a faster, statically typed cousin of Python, but it intentionally doesn’t support all of Python. Commenters split between excitement and “we already have Cython/Mojo” skepticism—plus a mini meltdown over cookie popups—debating whether SPy is fresh innovation or just another variant.

SPy rolled onto the scene promising Python-like code with serious speed, but with a big caveat: it’s not trying to be “real” Python. The dev (backed by Anaconda time) admits SPy won’t support many of Python’s trickiest features and lives in its own .spy files. Cue the comment brawl. One user immediately hit a wall—“cookie-gate”—complaining they can’t even read the post on mobile without accepting cookies, which became the day’s meme. Others loved the “looks like pseudocode, but runs” vibe, but pressed for proof: how Pythonic does SPy actually feel?

Skeptics flooded in with the classic “we already have this” angle, pointing to Cython as the mature option for a Python-ish, typed speed boost. Another thread pulled SPy into a face-off with Mojo, the buzzy “fast Python” language from Modular, asking for side-by-side experiences and sparking comparisons to past speed experiments like PyPy. Fans highlighted a demo raytracer allegedly 200x faster than regular Python, while cynics noted SPy can’t yet import Python libraries, making it feel more like a promising concept than a daily tool. The vibe: half cheering the honesty (“not a Python compiler”), half eye-rolling at yet another “faster Python” variant. Bonus drama: nostalgic tales of RPython, hinting that tool-born languages often get friend-zoned by devs. Mojo

Key Points

  • SPy is an interpreter and compiler for a statically typed variant of Python focused on performance.
  • SPy will not support the full Python language and uses .spy files to distinguish from Python.
  • Current capability: SPy can generate CFFI-based extensions importable by CPython; importing Python into SPy is not yet supported.
  • Planned roadmap includes embedding libpython.so and generating full CPython extensions similar to Cython.
  • A raytracing demo written in SPy runs about 200x faster than CPython, illustrating performance potential.

Hottest takes

"I can't view the site on my mobile without accepting cookies." — jmpeax
"If you want different parts of your code to be a statically typed Python lookalike Cython is a mature option" — srean
"This seems to be going for a somewhat similar goal to Mojo" — falcor84
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.