Hacker News new | past | comments | ask | show | jobs | submit login
Modula-2 Compilers on CP/M (2022) (techtinkering.com)
13 points by gus_leonel 4 months ago | hide | past | favorite | 2 comments



Modula-2 is interesting. It is basically the C many wished had been around in the 80s and 90s. Modula-2 has about the same expressiveness of C with pointers, structs, unions, and all that, but it has a stronger type system (tagged unions, mandatory casting, etc.), concurrency as part of the base language, an actual module system (like C++ just finally got in 2020...), and the typical clean lines of Wirth's designs - if you can get over the Wirth-style CAPITAL RESERVED WORDS and BEGIN and END, anyway.

A Modula-2 front end was added to GCC recently: https://news.ycombinator.com/item?id=34050597


Sadly Prof./St. Niklaus Wirth (patron of clarity, simplicity, and correctness) is no longer with us, but perhaps he or his elves might have been amenable to lowercase keyword support with boldface or color for readability.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: