Pascal and Cousins lazarus / 8-Other ---------------------------------------------------------------------- symmetria · 2021-01-21 15:28 Hello to all! Hopefully, this thread does not violate the spirit of the forum. My question is simple: "Does anyone know if there is any Oberon (02 or 07 version) compiler targeting the Linux x86_64 platforms?" Thank you in advance for your help. ---------------------------------------------------------------------- MarkMLl · 2021-01-21 15:41 Not something that I can immediately answer, but @lproven sent me over this a few days ago QuoteThe Oberon list is getting livelier, I note. Recent discussions have gone, broadly... So we have the code and the permission... who has repos? OK... several of you. OK, who's in charge? Nobody's in charge? So we can do what we want? OK... I want to try to unify 2 dialects. I'm going to add back the features to this version that were removed. [Small argument] So, this will broaden the range of software we can use, and make more code usable. And we almost all agree that's good. Right, I'm doing it then. [A day or 2 later] Here's my POC code. Does it look OK? The pace seems to be picking up just a tiny bit. Meanwhile pasting chat logs into Google Translate reveals that the Russians are planning to fork it and translate the code, keywords, compilers etc all into Russian. I don't blame them -- there's been bugger-all interest from the west in decades. It means a fork but it's a small codebase. MarkMLl ---------------------------------------------------------------------- PierceNg · 2021-01-21 15:56 Quote from: symmetria on January 21, 2021, 04:28:57 pmHello to all! Hopefully, this thread does not violate the spirit of the forum. My question is simple: "Does anyone know if there is any Oberon (02 or 07 version) compiler targeting the Linux x86_64 platforms?" Thank you in advance for your help. I know of the following. All on Github except for obnc. Rochus Keller Oberon-07, transpiles to C++, also generates LuaJIT bytecodesAntKrotov Oberon-07, self-hosting compiler targeting Linux, Windows for x86, x86_64 and ARMobnc, transpiles to CVishap Oberon, "uses a C backend (gcc, clang or msc) to compile Oberon programs under Unix, Mac or Windows." ---------------------------------------------------------------------- Peter H · 2021-01-21 15:57 There is component Pascal, despite the name, it is Oberon. http://cp-dev.sourceforge.net/ ---------------------------------------------------------------------- MarkMLl · 2021-01-21 16:22 Quote from: Peter H on January 21, 2021, 04:57:51 pmThere is component Pascal, despite the name, it is Oberon. http://cp-dev.sourceforge.net/ https://en.wikipedia.org/wiki/Component_Pascal MarkMLl ---------------------------------------------------------------------- Leledumbo · 2021-01-24 23:12 Quote from: Peter H on January 21, 2021, 04:57:51 pmThere is component Pascal, despite the name, it is Oberon. http://cp-dev.sourceforge.net/ It's Oberon-02 compatible, a superset to be exact (and not so much superset either, just a little bit, but hits the important spots right), but isn't Oberon-07 compatible. ---------------------------------------------------------------------- symmetria · 2021-02-01 22:20 So, just to conclude, is there any Oberon (2 or 7) compiler for the *nix environment ? ---------------------------------------------------------------------- vfclists · 2021-02-01 22:43 Does Oberon come with garbage collection? I've been longing for a Pascal type language with garbage collection. Manual memory management if one of my pet peeves with Object Pascal. ---------------------------------------------------------------------- Peter H · 2021-02-02 00:52 So far I know, OBERON was originallly written to run on an OS written in OBERON and has garbage collection. It is however tightly coupled to this OS and needs a runtime system, if it runs on windows or other systems and does not produce stand alone programs or link to other languages. When executing it it is like using a virtual (Oberon) Machine, so far I remember it is decoupled from the host OS. I might be wrong and dont know all flavors. I only tried Component Pascal (which is an OBERON flavor) on windows. Installing it, I got a lot of anti-virus warnings, but I ignored it ;-) maybe this is owed to the runtime system. ---------------------------------------------------------------------- PierceNg · 2021-02-02 05:51 Quote from: vfclists on February 01, 2021, 11:43:39 pmI've been longing for a Pascal type language with garbage collection. Does .NET C# count? ---------------------------------------------------------------------- JuhaManninen · 2021-02-02 09:39 Quote from: PierceNg on February 02, 2021, 06:51:26 amQuote from: vfclists on February 01, 2021, 11:43:39 pmI've been longing for a Pascal type language with garbage collection. Does .NET C# count? Or Visual Basic .NET ? I did a project using VB .NET some years ago, at the same time learning it. I liked it more than C#. It is underrated. The same is true with Object Pascal. Visual Basic .NET differs a lot from the original Basic, just like Object Pascal differs from the original Pascal. Personally I prefer Object Pascal because it does not have garbage collection. Garbage collection is overrated. It is yet another way to make programs slower and hog more memory. As Niklaus Wirth said, "programs become slower faster than computers become faster". New techniques are invented all the time to make it happen. ---------------------------------------------------------------------- MarkMLl · 2021-02-02 10:40 Quote from: JuhaManninen on February 02, 2021, 10:39:49 amPersonally I prefer Object Pascal because it does not have garbage collection. Garbage collection is overrated. It is yet another way to make programs slower and hog more memory. I'm inclined to agree. However reference counting on certain types of variable is a different matter, and its use for strings etc. has generally been proven to be fairly successful. MarkMLl ---------------------------------------------------------------------- symmetria · 2021-02-02 11:15 Quote from: PierceNg on February 02, 2021, 06:51:26 amQuote from: vfclists on February 01, 2021, 11:43:39 pmI've been longing for a Pascal type language with garbage collection. Does .NET C# count? Many  thanks for your answer. ---------------------------------------------------------------------- vfclists · 2021-02-02 15:44 Quote from: PierceNg on February 02, 2021, 06:51:26 amQuote from: vfclists on February 01, 2021, 11:43:39 pmI've been longing for a Pascal type language with garbage collection. Does .NET C# count? No I prefer to stick to Object Pascal ---------------------------------------------------------------------- vfclists · 2021-02-02 17:01 Quote from: MarkMLl on February 02, 2021, 11:40:04 amQuote from: JuhaManninen on February 02, 2021, 10:39:49 amPersonally I prefer Object Pascal because it does not have garbage collection. Garbage collection is overrated. It is yet another way to make programs slower and hog more memory. I'm inclined to agree. However reference counting on certain types of variable is a different matter, and its use for strings etc. has generally been proven to be fairly successful. MarkMLl How do you gain the benefits of reference counting on most other types in general, including your own? Are there any base classes from which any other derived types gain the benefits of reference counting? ---------------------------------------------------------------------- marcov · 2021-02-02 17:10 Quote from: vfclists on February 02, 2021, 06:01:12 pmdo you gain the benefits of reference counting on most other types in general, including your own? Are there any base classes from which any other derived types gain the benefits of reference counting? Ref counting is only better than GC for limited use. ---------------------------------------------------------------------- PascalDragon · 2021-02-03 08:26 Quote from: vfclists on February 02, 2021, 06:01:12 pmAre there any base classes from which any other derived types gain the benefits of reference counting? You need to work with reference counted interfaces (aka {$Interfaces COM} which is the default) and implement its _AddRef and _Release methods correctly. Alternatively (and preferably) you can descend from TInterfacedObject (which does exactly that), but you still need to work only with interface variables as working with the class instance will not trigger the reference counting. ---------------------------------------------------------------------- JuhaManninen · 2021-02-05 10:18 vfclists, manual memory management is easy in vast majority of cases. An object is owned by another object. The owner allocates and frees the memory. Thinking the ownership structure through may even improve your code's design. Garbage collection does not solve all memory related problems. Java has CG but there are thick books written about Java memory management. Why so, if GC takes care of it all? Also GC does not fix uninitialized variables. IMO garbage collection is overrated. If you however prefer it, fine, there are plenty of choices. All new fancy languages seem to have it. Object Pascal is a nice compromise without GC, thus less overhead, but reference counted strings which then behave almost like native types (integer and such). Good. ---------------------------------------------------------------------- MarkMLl · 2021-02-14 11:49 I went Googling yesterday evening to try to find out whether anybody had built a general-purpose OO language on top of ALGOL (other than Simula, obviously) and came across "A comparison of PASCAL and ALGOL 68" by Tanenbaum. https://research.vu.nl/en/publications/a-comparison-of-pascal-and- algol-68 It's rather a gem, and I'm surprised it's not got wider circulation. However it appears to "read quite a lot into" J&W's definition of the language, for example it asserts that pointers can refer to items on the heap but not to items on the stack. Perhaps the most interesting thing is that, reading between the lines, it demonstrates that much that we are used to in today's mainstream languages originated /either/ in ALGOL-68 /or/ in Pascal: the concept differed in the two languages, and posterity has selected from one or the other. MarkMLl ---------------------------------------------------------------------- lucamar · 2021-02-14 12:33 Quote from: MarkMLl on February 14, 2021, 12:49:02 pm[...] came across "A comparison of PASCAL and ALGOL 68" by Tanenbaum. https://research.vu.nl/en/publications/a-comparison-of-pascal-and- algol-68 It's rather a gem, and I'm surprised it's not got wider circulation. One has always to be careful and remember that this kind of papers refer to the original J&W Pascal but yes, it's quite a gem. Thanks, Mark, I've enjoyed it a lot ---------------------------------------------------------------------- MarkMLl · 2021-03-07 14:37 Here's another interesting paper I've just come across "The design and implementation of modula for the Burroughs B1700 computer" https://openresearch- repository.anu.edu.au/handle/1885/138340 That's one of very few references I've seen to Modula as distinct from Modula-2, and it highlights a number of interesting points e.g. preemptive processes rather than coroutines and a module structure much like that proposed by Brinch Hansen. It's also one of few things that looks at the B1700 at a low level. That was an odd system with bit-addressable memory and 1-24 bit operands https://www.vintagecomputer.net/burroughs/B1700/Burroughs_B1700_Front- panel.jpg The hole in that photo should have a cassette (not cartridge) drive in it which was used as an instruction source during boot. MarkMLl ---------------------------------------------------------------------- POLKa · 2021-10-27 14:58 Hello, If you want to play with Oberon2 (I like it), not  really a cousin of Pascal, rather a nephew, I discovered recently an interesting blog entry explaining how to install easily a Oberon2 framewok emulating faithfully a Ceres workstation in a Raspberry Pi (and also on other flavors of Linux if you please). Additionnaly, this implementation called Ofront has also a transpiler tool to generate automatically .c and .h files that tou may compile and link in Posix + X11 envirnments (I did not try this, i am only interested in the Ceres workstation emulation).  https://rsdoiel.github.io/blog/2021/04/25/Ofront-on-Rasberry-Pi- OS.html POLKa