Back to browse
GitHub Repository

A working Python VM written entirely in SQL

1 starsPLpgSQL

A Working Python VM Written Entirely in PL/PgSQL

by cykim8811·Feb 13, 2026·1 point·1 comment

AI Analysis

MidWizardryNiche Gem
The Take

This repo literally turns CPython internals into rows and stored procedures: object rows, regproc type slots, and an interpreter loop (py_eval_frame) that dispatches opcode handler functions in SQL. It's a clever, hands-on exploration — 103 SQL files, a REPL and 87 tests show serious follow-through — but it's primarily an impressive engineering demo rather than a practical production runtime.

Category
Target Audience

Language implementers, database engineers, Postgres enthusiasts, and curious developers interested in runtimes and systems experiments

Similar Projects