5 ms·
My first languaje after BASIC was Modula2, which looks a lot like Pascal. I studied OOP, algorithms and data structures with Pascal in college, so it's a langua
by jmorenoamor 3y ago
My first languaje after BASIC was Modula2, which looks a lot like Pascal. I studied OOP, algorithms and data structures with Pascal in college, so it's a languaje for which I have great memeories.
Nice to see it's still around.
- Rochus 3y agoModula-2 is a much better language than original Pascal, but if you want OO features Oberon-2 is the corresponding Wirth language.
- rurban 3y agoAnd it's the fastest language in the benchmarks game, whilst also producing the smallest code. Not only better than Pascal or Go, but even better than C++.
- igouy 3y agoModula-2 is not included? https://benchmarksgame-team.pages.debian.net/benchmarksgame/ https://benchmarksgame-team.pages.debian.net/benchmarksgame/
- Rochus 3y agoCan you post a reference, please?
- igouy 3y agoPerhaps https://dada.perl.it/shootout/modula2.html https://dada.perl.it/shootout/modula2.html
- Rochus 3y agoThanks for the link, though I don't think the fellow referred to that; it was last updated in 2003 and Modula-2 is far behind C or C++ (see https://dada.perl.it/shootout/craps.html); https://dada.perl.it/shootout/craps.html); and the results seem also quite questionable since Lua and Python are too good to be true.
- nine_k 3y agoBoth made it into modernity as large swaths of Golang. Modula-2 even had coroutines.
- Rochus 3y agoGo has surprisingly little in common with Oberon or Modula (mostly the receiver syntax of Oberon-2 bound procedures). The coroutines were not a language feature of Modula, but a library feature; also the Oakwood guidelines of Oberon (not by the original authors) include a coroutine API, but I'm not sure whether there was a working implementation.