Recent

Author Topic: Pascal and Cousins  (Read 4084 times)

symmetria

  • New Member
  • *
  • Posts: 19
Pascal and Cousins
« on: January 21, 2021, 04:28:57 pm »
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

  • Hero Member
  • *****
  • Posts: 2517
Re: Pascal and Cousins
« Reply #1 on: January 21, 2021, 04:41:43 pm »
Not something that I can immediately answer, but @lproven sent me over this a few days ago

Quote
The 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
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

PierceNg

  • Full Member
  • ***
  • Posts: 106
Re: Pascal and Cousins
« Reply #2 on: January 21, 2021, 04:56:51 pm »
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.

I know of the following. All on Github except for obnc.

  • Rochus Keller Oberon-07, transpiles to C++, also generates LuaJIT bytecodes
  • AntKrotov Oberon-07, self-hosting compiler targeting Linux, Windows for x86, x86_64 and ARM
  • obnc, transpiles to C
  • Vishap Oberon, "uses a C backend (gcc, clang or msc) to compile Oberon programs under Unix, Mac or Windows."


Peter H

  • Full Member
  • ***
  • Posts: 197
Re: Pascal and Cousins
« Reply #3 on: January 21, 2021, 04:57:51 pm »
There is component Pascal, despite the name, it is Oberon.
http://cp-dev.sourceforge.net/


MarkMLl

  • Hero Member
  • *****
  • Posts: 2517
Re: Pascal and Cousins
« Reply #4 on: January 21, 2021, 05:22:43 pm »
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Leledumbo

  • Hero Member
  • *****
  • Posts: 8326
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Pascal and Cousins
« Reply #5 on: January 25, 2021, 12:12:55 am »
There 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

  • New Member
  • *
  • Posts: 19
Re: Pascal and Cousins
« Reply #6 on: February 01, 2021, 11:20:23 pm »
So, just to conclude, is there any Oberon (2 or 7) compiler for the *nix environment ?

vfclists

  • Hero Member
  • *****
  • Posts: 856
    • HowTos Considered Harmful?
Re: Pascal and Cousins
« Reply #7 on: February 01, 2021, 11:43:39 pm »
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.
Lazarus 2.1.0/FPC 3.2.0

Peter H

  • Full Member
  • ***
  • Posts: 197
Re: Pascal and Cousins
« Reply #8 on: February 02, 2021, 01:52:35 am »
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.
« Last Edit: February 02, 2021, 02:25:44 am by Peter H »

PierceNg

  • Full Member
  • ***
  • Posts: 106
Re: Pascal and Cousins
« Reply #9 on: February 02, 2021, 06:51:26 am »
I've been longing for a Pascal type language with garbage collection.

Does .NET C# count?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4002
  • I like bugs.
Re: Pascal and Cousins
« Reply #10 on: February 02, 2021, 10:39:49 am »
I'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.
« Last Edit: February 02, 2021, 10:53:47 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

MarkMLl

  • Hero Member
  • *****
  • Posts: 2517
Re: Pascal and Cousins
« Reply #11 on: February 02, 2021, 11:40:04 am »
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.

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
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

symmetria

  • New Member
  • *
  • Posts: 19
Re: Pascal and Cousins
« Reply #12 on: February 02, 2021, 12:15:03 pm »
I've been longing for a Pascal type language with garbage collection.

Does .NET C# count?

Many  thanks for your answer.

vfclists

  • Hero Member
  • *****
  • Posts: 856
    • HowTos Considered Harmful?
Re: Pascal and Cousins
« Reply #13 on: February 02, 2021, 04:44:32 pm »
I've been longing for a Pascal type language with garbage collection.

Does .NET C# count?

No I prefer to stick to Object Pascal
Lazarus 2.1.0/FPC 3.2.0

vfclists

  • Hero Member
  • *****
  • Posts: 856
    • HowTos Considered Harmful?
Re: Pascal and Cousins
« Reply #14 on: February 02, 2021, 06:01:12 pm »
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.

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?
Lazarus 2.1.0/FPC 3.2.0

 

TinyPortal © 2005-2018