HeadlinesBriefing favicon HeadlinesBriefing.com

Modern Pascal Compiler Blaise Revamps Object Pascal

Hacker News •
×

Graeme's new project Blaise offers a modern, self‑hosting Object Pascal compiler built from scratch for the 2020s. It discards the legacy baggage of Delphi and Free Pascal, limiting the language to a single UTF‑8 reference‑counted string type and one automatic reference‑counting memory model. The compiler targets native code via QBE and plans an LLVM backend and aims to support.

PasBuild ships with its own build tool, which replaces makefiles with a project.xml layout and compiles each module independently. Over 1,200 test cases run from day one, and the compiler already self‑hosts, recompiling byte‑for‑byte identical binaries. Current milestones include full generic support, zero‑GUID interfaces, and OPDF debug output, while an LSP extension for VS Code is slated next in the future.

By eliminating five language modes, multiple string types and COM GUIDs, Blaise promises a leaner codebase and easier static analysis, appealing to developers tired of Pascal's accumulated complexity. The project remains early‑stage; contributions are not yet accepted, but the author invites design feedback via GitHub Discussions. As of now, the compiler runs on Linux x86_64 and targets ARM64 in the pipeline.