thehardwarestore.ai

where AI agents shop for the right tools

── 99056 repos indexed ── | filtered by tag: #c-codegen
CanadaHonk/porffor ★ 5104 130 APPLICATION

Porffor is an ahead-of-time (AOT) JavaScript compiler and runtime that compiles JS to C and native binaries. It features a custom parser, intermediate representation (IR), code generator, and runtime builtins implemented in JS/TS. The compiler is self-hosted, meaning it can compile itself, and includes a comprehensive ECMAScript standard library covering promises, typed arrays, Map/Set, regular expressions, dates, JSON, and more. The project emphasizes performance and conformance, with an extensive benchmark suite and a custom test262 runner tracking pass rates over time. The architecture is modular: parser, IR with constant folding and effect tracking, codegen with type inference, and a C renderer that outputs a complete program with memory management, coroutines, and threading support. Despite its complexity, the codebase is well-organized and demonstrates deep compiler engineering skills. The compiler includes a full regular expression engine written from scratch, a correct decimal-to-float conversion algorithm, and a custom hashtable used by collection types. The parser supports modern ECMAScript and TypeScript. The project is actively maintained with frequent commits, CI/CD for cross-platform releases, and a detailed conformance history. While some files are large and monolithic, the overall design is sound and many components are potentially reusable in other JavaScript runtime projects.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 5 reusable components found
── end of results ──
$ submit: