170 points · by andsoitis · 3y ago · 99 comments
Therefore, a few years back I decided to learn it a bit (I borrowed a really old book from the library) and solved one of the Advent of Code puzzles in Simula: https://github.com/judofyr/aoc2018/blob/master/day3prog.sim
I was actually very surprised at how “modern” it felt. However, neither this code nor the article touches on the real cool parts of Simula: Simulations based on coroutines.
Dahl was a professor of computer science at the University of Oslo and is considered to be one of the fathers of Simula and object-oriented programming along with Kristen Nygaard.
https://en.wikipedia.org/wiki/Ole-Johan_Dahl
https://www.uio.no/om/finn-fram/omrader/gaustad/ga06/
Many of the rooms inside of that building are named after programming languages.
Naturally there is a room named Simula. And there are some rooms named after some big languages like Python and Java. Then there are also rooms named after some more niche languages, like Scheme. And even some obscure languages, like Ada.
Edit: to finish my thought, if you are in physics or meteorology fortran is still common as well. There are a lot of software niches, and full-stack web dev is just the largest, at least as represented at HN, embedded might have more people if you combine planes, trains, automobiles, industrial, manufacturing, and more visibly IOT.
These are very much alive, and implemented in major modern databases.
"SQL/PSM is derived, seemingly directly, from Oracle's PL/SQL. Oracle developed PL/SQL and released it in 1991, basing the language on the US Department of Defense's Ada programming language."
Simula was used as the first programming language for informatics students at the University of Bergen until the mid 1990s, when they switched to Java. I was among the last batch of Simula students there.
Simila is not and, beyond some ALGOL-descended similarities, is quite different from the other three.
Of course at the time there were people on staff who had written books about it.
I do remember we found a really embarrassing algorithm choice in the Stack class, though (push and pop at the time were O(n), as it used a singly linked list that they iterated through recursively to find the top of the stack... we found that out on a group project where we kept running out stack space because of the recursion...)
In 1962 the first version of Simula appeared which was quite different from Simula 67, not yet object-oriented, and dedicated to simulation.
Simula 67 was the first general purpose object-oriented programming language.
> Then, in 1991 another language would enter the playing field, Java, and the rest is history.
Java actually used the object model of Simula 67; James Gosling gave a talk about it at the 50th anniversary in Oslo. Here is the link: https://www.youtube.com/watch?v=ccRtIdlTqlU
"In Simula I, Dahl made two changes to the Algol 60 block: small changes, but changes with far-reaching consequences. First, “a block instance is permitted to outlive its calling statement, and to remain in existence for as long as the program needs to refer to it” [11]. Second, references to those block instances are treated as data, which gives the program a way to refer to them as independent objects. As a consequence of these changes, a more general storage allocation mechanism than the stack is needed: a garbage collector is required to reclaim those areas of storage occupied by objects that can no longer be referenced by the running program."
https://www.sciencedirect.com/science/article/pii/S089054011...
> [case insensitivity... so] both beGIN and BEGIN are interpreted the same way. This was also characteristic of the time, as programmers programmed their computers by shouting.
One thing people discovered eventually - case-sensitivity is language-specific. It is easy so long as you assume everything is in English and 7-bit US-ASCII, but once you move beyond that assumption, it becomes significantly more complex. An easy way to avoid all that complexity is to not do it.
People also forget about the related notion of accent-insensitivity - again, if all you support is English, you can ignore that, since English hardly uses accents
and this is the case because of C, which was my point. The fact that OS'es are written in C and thus have a C libraries and APIs is why you must respect C's rules for identifier names.
Also, yes compilers for other languages essentially name-mangle anyway, that's how (modern) fortran which is case sensitive and C++ which isn't (but tacks on a bunch of things to function identifiers) work. But the point about naming conventions or recommendations still stands, like a lot of things it is a fact of history favoring C, not that there is anything inherently better about it.
C is case sensitive, but it's also not seen as very modern language these days, so I'm not sure I understand your argument.
I think case-insensitivity is seen as rustic because it's a remnant of the times when some systems simply did not have a notion of case and everything was uppercase all the time. Modern systems handle case just fine so having several character strings being distinct in terms of byte values but equal in the way the language interprets them seems clunky and error prone (because it is).
Modern systems tend to support international character sets (UTF-8, etc.), where the idea of 'case' makes things more complicated than ASCII; and probably more trouble than it's worth. Even if we stick with latin characters, are 'uppercase' and '𝖀𝓟ℙ𝗘ℝℂ𝙰𝒮𝓔' the same identifier?
It remained in the "getty" process for some time, well into the {Free,Net,Open}BSD era.
CP/M and the like were pretty forgiving of commands being shouted too.
some languages (IMP, maybe others) used %reserved-word% formatting so you could do things pretty much how you wanted and then the system would know what was instructions.
Still there in agetty: https://github.com/util-linux/util-linux/blob/master/term-ut... And, I imagine in other getty implementations.
However programs like MS-BASIC would allow you to create files with lower case names that were then unmanageable from the command line.
https://nim-lang.org/docs/manual.html#lexical-analysis-ident...
Sadly, not every developer understands why that’s a good or bad design, i.e. the global pool of developer talent is partially stupid.
I have played with nim for a bit though, and this rule I just don't care for.
I miss the those times when using a computer meant ‘programming on a computer’, and programming on a computer meant trying to find your foot on any of a dozen languages popping left and right.
Interlisp[28] – developed at BBN Technologies for PDP-10 systems running the TENEX operating system, later adopted as a "West coast" Lisp for the Xerox Lisp machines as InterLisp-D. A small version called "InterLISP 65" was published for the 6502-based Atari 8-bit family computer line. For quite some time, Maclisp and InterLisp were strong competitors.
I ported Franz Lisp to the Atari ST.
A fellow student was the son of one of the people who wrote a compiler for Simula.
He knew about all sorts of little documented features. Some gave precise control when a "simulation was executed". Thinking back, it makes me think of RTOS like features.
Now Simula was never the fastest language, and these did not offer guarantees that any real time system would but they were cool.
It was fun when you used language features that the teachers had never seen before.
- Simula - Norway
- C++ - Stroustrup is Danish
- TypeScript / C# - Hjelsberg is Danish
- PHP - Lerdorf is Danish
- the v8 team including Lars Bak is Danish, and has developed several languages
- Erlang - from Ericsson in Sweden, though Joe Armstrong was British
Well now that I write it out, it seems like it's even more Danes than Nordic countries!
(Someone wrote pretty much the same comment here in 2016 - https://news.ycombinator.com/item?id=10833073)
Hm also from the same thread, L, M, and P from the LAMP stack all originated in Scandinavia! Didn't realize that https://news.ycombinator.com/item?id=10835311
Was going to mention that the Netherlands is not in Scandinavia until I remembered that the P is not Python :P
It is interesting that so much foundational tech comes from Europe when I think there is a common perception of that generation of tech as being largely driven by the US (MIT, Bell, etc).
The UK chronically undervalues its computing sector. Lots of the pioneering hardware/fundamentals work was done at Bletchley Park in the 1940s, but was destroyed or remained classified for decades. We had a disproportionately large slice of the software industry in the 80s, but that seemed to be dismissed as just gaming; and of course games themselves aren't taken as seriously as e.g. cinema, despite being a much larger market.
I often feel like the beginning of the 90s was a missed opportunity by Scandinavian companies. There were many great companies and individuals that were innovative, but could not compete due to the lack of VCs from Silicon Valley and a smaller domestic market
Sweden, Norway and Finland came in 2nd, 3rd and 4th. I think US was at place 20.
https://en.wikipedia.org/wiki/COMAL
As a bonus, it's an anagram of OCaml.
Not just your "standard" Dane, but born in Greenland. The only such person I can name.
[1]: https://en.wikipedia.org/wiki/AVR_microcontrollers#History
Linux - Linus
Ruby on Rails - DHH
Turbo and Borland Pascal, and Delphi - Hjelsberg again
Full interview: https://www.youtube.com/watch?v=ZO0PXYMVGSU
I have tried to document as best I could our various contributions to that idea in an article published in CACM, 1988, and more recently in a History of Logic Programming, published in 2014. In summary, however, it is probably fair to say that my own contributions were mainly philosophical and Alain’s were more practical. In particular, Alain’s work led in the same summer of 1972 to the design and implementation of the logic programming language Prolog.
Maybe you mean something like "as a share of top 10 most used languages" or "per capita"?
* https://en.wikipedia.org/wiki/List_of_programming_languages
> "OutImage is called to build the final Simula “Image”. From my digging it appears that OutImage is usually necessary at the end of a block, or a compiler error will be generated. I initially forgot OutImage though so, I imagine that maybe Portable Simula is just implicitly adding this if it’s missing, or it was changed in a later standard. Regardless I’ll leave it in from now."
In reality the "image" is just the current outline buffer, and OutImage prints the line feed. Very similar to Pascal later.
From the textbook:
> "OutImage causes the line which is currently being created - the current image - to be written to the printer or terminal and a new line to be started."
It was probably a good choice, for the time and for the course objectives. But I never used it since.
Should be "taught". Just FYI.
Simula -> C++ -> Java.
Leaves out rather a lot of important object oriented programming languages.