(评论)
(comments)
原始链接: https://news.ycombinator.com/item?id=44013671
This Hacker News thread discusses OBNC, an Oberon-07 compiler written in C, praised for its compact codebase of under 16,000 lines. A user then promotes Dusk's Oberon compiler, written in under 1500 lines of Forth code, compiling directly to native code. The discussion branches into the specifics of parsing in Forth, with the author of Dusk explaining their recursive approach to parsing and code generation. The thread explores the motivation behind writing an Oberon compiler for Dusk, specifically to port the Oberon system's GUI architecture, despite Dusk's minimalist philosophy. The conversation touches on different versions of Oberon, with some users preferring Oberon-2. Finally, the thread discusses current uses of Oberon, acknowledging its niche status in industrial automation and robotics, while suggesting modern alternatives for systems programming. Overall, the commentary emphasizes Oberon's simplicity and potential for enabling expression in a system.
reply