I've got a long-term project of building an Oberon compiler. Oberon is a language in the Pascal family, the newest language from Wirth, and an attempt to remove any unnecessary features from his languages, indeed he went a little too far in some early versions of Oberon and restored a feature or two in successive versions.
Mostly I've learnt a lot from building a compiler, in particular the back-end which I didn't have much experience with. But also I've started using Oberon more and more. My compiler targets the 65C816 processor, but I ended up porting the front-end to LLVM so that I had native oberon, and used it to build a number of tools, an emulator, and actually the compiler (there was a C intermediate step).
In the end I've started to really like Oberon, and I don't miss much from more modern languages. I did add some extensions so I have a very simple form of object-orientation, and used it to implement a UI toolkit similar to AppKit, but much simpler. Some of the modern language features add more complexity than they give in benefits. And sometimes it's just better to write code than learn a new language feature or library.
Oberon is certainly an interesting direction. But in term of concurrency and multi-cores support it has no answer. And I argue that proper parallel programming support can not be fully solved by a library if the language has not designed for it or has built-in primitives to support it. In fact, Lalis, Sanders, Keller and others have made proposals to add concurrency support to Oberon.
The second big thing missing in Oberon is IMO the memory safety features. For today world and going forwards, I believe such features are essential.
Simplification and a lean implementation is interesting, especially as a basic for further development in a research environment. But for practical application and mass adoption, there are other demands we can’t simply ignore.
I also have a (unpublished) '816 focused language and compiler (me and the AI).
I'm keeping it pretty conservative, as the goal is to rewrite the compiler in itself, and have it self-host. But a fellow posted this [1] about "Micron", an Oberon inspired system language.
And I'm giving a keen eye to how it handles Interfaces. I'm not sure if it will really fit, but it's an interesting idea that should be reasonably cheap on the compiler, and have no impact on the runtime.
I must say having an introspective CPU simulator as part of your unit tests can really help with writing a compiler. Not only can you test that the code is generating what it's supposed to, you can test that the code actually does what it’s supposed to.
I also had the goal of self hosting, and that is working, although I have made it a little easier on myself by extending the 65C816 in some small ways. The most significant for the compiler is a small extension to the registers so that the direct page and stack can be located anywhere in memory. This is primarily to allow larger operating system and app images, the compiler is quite large now so it needs this. I have a limit of 64k for each module.
One breakthrough in the compiler was when I could start to use AI to interpret instruction traces, before that I was doing it by hand and it took a very long time. Now the AI pinpoints my errors very quickly, although I'm past that stage now and don't often come across compiler errors. I do this with an emulator, also written in Oberon.
I already had a 6502 simulator that I wrote over 10 years ago. I had not touched it in a long while, but coming back to it, it was remarkably far along toward running ‘816 (or so I thought).
So I uplifted it to a full boat ‘816 core. Once I had that, compiler development accelerated since the testing was much better. The AI and unit tests could generate the code, run the code, and analyze CPU state and memory.
Real game changer.
My proto compiler is in Java, but not idiomatic Java by any means. It’s limited to static allocation and constructs available in the new language to make porting it later, ideally, mostly mechanical.
Funny. I also have a Wirth-like language like that. Targets the 816 but also the CPU in the Mega65 (45GS02) which is similar but different. Wirth-ish in terms of syntax flavour but lower level as it is explicitly designed with the 65xx architecture in mind (stack structure, calling conventions, zero page, etc). C is notoriously.. not... appropriate for that architecture.
While my interest got spiked initially by the original Project Oberon, I was more found of the paths taken by Component Pascal and Active Oberon, as language evolution.
Anyway, it was what initially opened my eyes to systems programming with GC enabled languages, and drew me into the rabbit hole of Cedar, Modula-2+, Modula-3 and co.
Was Active Oberon the foundation of A2/Bluebottle? My memory fails me.
I haven't dug into Oberon, because it's not quite Pascal enough for me to love it, and felt a bit heavier than I had hoped for syntax wise.
I'm enjoying Odin lately, and if I felt i had more time/use for Oberon I'd probably try driving it. But feel that as a "living" project Odin is more usable, it feels more constrained in syntax and concision than the larger Oberon project.
This is similar to like Genera/Lisp Machines, where I'd love to explore more (and even plan9, though that's less related to OS/Language integration in the way Bluebottle/A2 and Genera/Lisp Machines.
Odin is quite interesting for those of us with Wirthian background, although not having some form of GC kind of puts it off to me. I know how it looks like and don't really miss plain manual memory management beyond building blocks.
The language is Wirth's Oberon-07, as his 2016 report defines it, with additions for objects, interfaces and literals, and with the data sizes of the 16-bit 65C816. INTEGER and SET are 16 bits, LONGINT is 32, BYTE is 8 bits unsigned, and REAL is 32 bits, with LONGREAL as another name for it. Records can have type-bound procedures, chosen at run time by the record's actual type, and the language adds OVERRIDE, SUPER, initialisers declared with PROCEDURE INIT and called as T.Make(...), and WEAK pointers. INTERFACE types are implemented by records that declare IMPLEMENTS. There are constant arrays, record and array literals such as Point{x := 1; y := 2}, an ELSE in a numeric CASE, and _ in names. Modules can be declared LARGE (code over a bank) or FRIENDS (named modules may assign to their exported variables). Like Oberon itself, it has no exceptions and no concurrency in the language: errors are compiler messages, traps or result codes, and processes come from the OS16 library. The compiler grew from Wirth's Project Oberon compiler, and follows his structure. It was initially written in C, then ported to Oberon so it could compile itself. It comes in two builds that compile the same language to the same files: oc on OS16 and oc816 on Mac/Linux, using LLVM. The OO type features were primarily added to support the UI toolkit. OS16 is the associated operating system.
LATER EDIT: After looking them up I found active Oberon objects to be quite heavy and preemptively scheduled. What I liked about Modula-2 coroutines is the control over how heavy a local stack they would own and when would control transfer to them -- not suitable for real parallelism of course. But for ten thousand boids simulating a swarm of bees foraging, returning, waggle dancing, recruiting, and flying out to precise coordinates, coroutines would be pretty good fit.
> indeed he went a little too far in some early versions of Oberon and restored a feature or two in successive versions
Actually the most minimalistic version is the one he made for his retirement project, Oberon-07. Oberon-2 (by Mössenböck et al.) had most features. My Oberon+ is a superset of all (original) Oberon versions.
> Oberon is a language in the Pascal family, the newest language from Wirth, and an attempt to remove any unnecessary features from his languages
And my guess this is exactly why it was never used at large.
Pascal by Wirth was also a teaching language. Hardly used. Only when Borland created Turbo Pascal --- which was the opposite of "remove any unnecessary feature" did it become tremendous successful. I took all of CP/M machines, e.g. many Apple II owners bought a Z80 card to use Turbo Pascal. Then it took the world of MSDOS. And for Windows 3.x it took the world again in storm in the form of Delphi.
Only when the software was transferred to the weird company with the weird prices and the weird name (Embarcawhatever) came the story to an end. Turbo Pascal sold for ~ 100 US$ and the Embarcawhatever asked for 1000 US$ if you also wanted the sources for the graphical objects.
That is: a striped down to the bare helpful language might be good for a university introduction course. But actually a lot more people learned Pascal with the beefed up versions "Turbo-Pascal" and "Delphi". Outside of university, just with the text book that was contained when you bought it. Or with the "Turbo-Pascal for Dummies/Grifters" type of books if you had the illegal copy.
I like the idea of attaching units to a number, so that if A is 9 volts, B is 3 amps, then A*B yields 27 watts. I saw a demo years ago where it was done in C++ using type checking to make the units consistent.
There's a feature from Metamine which would be amazing to add to Pascal... the "magic equals" in which the left value of such an assignment would update any time the argument on the right changed. Adding imperative programming would be an amazing addition.
As for Lazarus/Free Pascal, the documentation is a key weakness. It merely lists the parameters and routines associated with a thing, but doesn't explain their purpose, nor give examples. This is a huge departure from the Excellent manual that came with Turbo Pascal back in the 1980s/90s.
Absolutely! This is something quite a few languages have already embraced, either built into the language or through libraries. It's a really useful feature, and it would be cool to see it become more common.
Ada already has language-level contracts and tasking; SPARK has ownership and borrowing rules for Ada pointers. The "allowing multiple readers but ruling out mutation while those read-only aliases are live" in the demo is what made me think of SPARK.
I think I need to understand Ada more. I know it exists, and I know it is a Wirth-ian language, but I approached safety from 'what have we learned from Rust and how can we apply it to Pascal' without strongly examining what preceded Rust. People know Rust, but don't know other languages.
Ada seems very worth examination for updating Pascal.
Ada is a big and impressive language, and in many respects it goes much further than Rust in terms of safety. It's actually not a "Wirth-ian language", but has some similarities with Pascal syntax. In fact, Ada can be seen as the "antithesis" of Wirth's minimalism.
Pascal (FPC) and Lazarus were some of the first programming tools I learnt (after a variant of BASIC), they were pretty okay!
Personally, I think it'd could still be something that people sometimes use (especially with AI) if the ecosystem was stronger:
* some general quality of life improvements in Lazarus (like coming out of the box with the docking support preinstalled instead of multi-window to copy what other tools are working); I actually don't think that VS Code needs to be a super big focus, nothing wrong with a dedicated tool and everything it brings along, especially because it's fast and has the potential to be less sluggish than the JetBrains IDEs, alongside having a very simple project setup for minimal barrier of entry (click & run)
* support for all of the popular file types: XML, JSON, CSV, YAML, TOML, all of the PDF, DOC/DOCX/ODT, XLS/XLSX/ODS and typical office formats, more or less out of the box
* connectors for all contemporary DBs, including latest versions of MySQL/MariaDB/PostgreSQL/SQLite, stuff like MongoDB, Redis/Valkey, RabbitMQ/NATS/Kafka and so on
* strong web development support, both clients and server frameworks (something like Laravel, Spring Boot, Django, Rails, FastAPI and so on), also support for GraphQL and protobuf
* stronger support for native GUI development, more of whatever lcl was doing: https://en.wikipedia.org/wiki/Lazarus_Component_Library
* not encumbered in any unnecessary way, like Delphi
I'm not a language designer so others will probably have more to say about it, I just want Pascal (or a distribution with it together with some tooling, like what Lazarus gives you) to be immensely productive and be as batteries included as needed, without needing to look at a crapload of inconsistent 3rd party packages and under-maintained stuff without much presence.
I guess I'm just describing most of what Go already does, except maybe for mainstream native GUI choices not being as strong as lcl (I just use Wails cause I'm lazy and evil like that). Come to think of it, since Go exists, maybe that's why I haven't reached for Pascal in a long time too.
Yeah I feel like Go is sort of in the space where Pascal was. Though I haven't really used it, the vibe I get strikes similarly to what I was learning in High School with Turbo 5 and 6.
I feel like a lot of Pascal ended up going OO and heavier than it should have been. Go and Odin feel like great languages inspired by Pascal, and hope we see more of that.
I get that sense too. As part of researching the talk I read this post [0] and while it's clearly a marketing post, I kept asking myself, this feels like the vibe from old-school Pascal, why isn't this being written about Pascal?
Our own Oxygene ticks many boxes but it's not as commonly used (yet) as other Pascals. And the same Elements toolchain also compiles Go. So I am thinking, I need to learn Go and get inspired for our Pascal.
Side note: you would not believe the amount of research that went into this talk. Only a fraction made it in. I could have run an entire day's session.
Circa 1989 I liked Turbo Pascal on the PC much better than I liked C but we had Sun machines running on the 68k architecture at school and C was portable to the 32-bit world. (even portable to the 36-bit world of the DECsystem 20!)
I loved Turbo Pascal in the early 90s. It I don’t really see the authors point comparing to Haskell. Haskell for good or bad has a unique role in the ecosystem. Pascal is just a pleasant syntax Algol language. What need does the world have for a revised futuristic Pascal?
Pascal is all about minimizing compile time. This was not an accident --- Niklaus Wirth designed it this way.
In other words, Pascal is more focused on compilation speed rather than on runtime speed. This may have made sense in a bygone era where PCs where slow and single core.
This is not to say that the runtime speed of today's Pascal code is "bad" --- it is "good enough" for a lot of uses but it typically lags somewhat behind the best available.
This is enough to exclude it from consideration for things like OS development or network/web services where speed (or the lack thereof) tends to get carried forward and inflict additional, cumulative costs.
And this is not to say that it must remain this way --- but it's history and momentum has worked to exclude much effort to change it. To the point where today, not many developers focused on performance would reach for a Pascal compiler.
This has a carry on effect and will need to change in order for the language to grasp more development mindshare.
Talk author here, hi! Yes, the original compilers were single-pass and very fast. And that does limit optimisations.
In the talk I discuss things other languages are doing, including inbuilt SIMD types, where I think runtime speed can be a language design goal. And the Pascal compiler I work on, Oxygene, has had a bunch of runtime performance recently - some via a third party math library, but some via LLVM including even custom passes we built. At the same conference I gave the above talk at, I also gave a talk on optimisation techniques using a Delphi app (a raytracer), ie, very practical, let's spend an hour optimising this code, and at the end after I did everything I thought of, I recompile the Delphi VCL app in Oxygene -- and it's another 2.5x faster. That's on ARM. Other tests have seen much bigger on x64 or x32.
I figure performance is like any other industry problem: you can choose which you focus on, not all languages solve everything, but ultimately your language has to have a solution.
Is there any reason that a Pascal compiler couldn't switch to provide more optimized code on demand (multi-pass if necessary) while retaining the fast single pass capability?
Pascal compilers have long offered optimization options but in my experience, the code improvement tends to be mild and fall sort of the mark set by the competition.
If other languages can do better, why can't Pascal? The only reason I can see is lack of effort/interest and the "it's good enough" mentality.
> This may have made sense in a bygone era where PCs where slow and single core.
One of Golang's main selling points is extremely fast build speeds. I find Golang the spiritual successor of Pascal in other aspects too, including the syntax.
I don't think that build times don't matter anymore. One of the greatest complaints about Rust is slow builds.
I have said before that any language should be able to break from the past (in a controllable, careful way, but if between stagnation and progress, progress win).
I also has explore many ideas about how build a programming language (example https://tablam.org), and agree that nothing beats put semantics at the language level.
This is where I have not idea if the author means for things like Rust-like safety to be or not optional. That is where things always go wrong, imho. Certain semantics can't be useful unless enforced, defaults and preferred. Deviations is what need effort.
This is interesting. So all data, DB or no, has a set of functionality you can apply?
Re safety, I think it is not worthwhile when not enforced. But source code needs to be able to be progressively updated. Our prototype has a setting where instead of giving errors, it warns. The idea is for existing large codebases you might turn that on and progressively fix, rather than deciding to use safety and immediately turning a million-line codebase into something that doesn't compile because there are errors. Once it's without errors, then you disable the 'this is temp' flag and build normally from then on.
Prototype. A lot of this is exploratory, including even this approach.
> This is interesting. So all data, DB or no, has a set of functionality you can apply
Yes, the idea is that all data allow relational algebra operations so `"hello"?where ...`.
My long term goal is to make it good enough so instead of have RDBMS applications like sqlite/pg that are black boxes then lang "just" allow to do what this apps do natively.
Any plain-text language is going to be accessible to LLMs. Pascal probably more than most because it's simple yet strict.
What I meant was if you're going to "modernize a language for the agentic era" why not just go whole-hog and ship it as vector embeddings rather than plain-text keywords for human use? That would at least be a significant change in line with the goal, even if it made the language near-impossible for humans to use without an LLM.
The "Plato's Key" bit is a reference to the recent finding that most LLMs' vector embedding spaces are very similar and need only a simple transformation to map an embedding from one space into another. Thus embeddings are highly "portable" between models.
The exhortation is about not sacrificing core values in exchange for success. I.e. the thing to be avoided is "success at all costs". Success is fine for Haskell people, but only at reasonable cost.
"Avoid, success at all costs" / "Avoid success, at all costs"
If you mean the quotes from the person (part of some Haskell foundation work group, or related) that moved his company from Haskell to Python, here's the discussion around that topic on HN https://news.ycombinator.com/item?id=48859673
Author here. I actually don't know much about Haskell, and I think I came across the quoted blog here on HN. But I was struck by the post.
I've never heard that joke about Haskell but you can see that sort of behaviour in all sorts of areas, not just programming languages. Sometimes it takes someone to say something, seriously, directly, for something to happen. I felt I was reading that kind of statement. And it can be met by defensiveness, denial, attack -- or action. And I wish the absolute best for Haskell.
I've got a long-term project of building an Oberon compiler. Oberon is a language in the Pascal family, the newest language from Wirth, and an attempt to remove any unnecessary features from his languages, indeed he went a little too far in some early versions of Oberon and restored a feature or two in successive versions.
Mostly I've learnt a lot from building a compiler, in particular the back-end which I didn't have much experience with. But also I've started using Oberon more and more. My compiler targets the 65C816 processor, but I ended up porting the front-end to LLVM so that I had native oberon, and used it to build a number of tools, an emulator, and actually the compiler (there was a C intermediate step).
In the end I've started to really like Oberon, and I don't miss much from more modern languages. I did add some extensions so I have a very simple form of object-orientation, and used it to implement a UI toolkit similar to AppKit, but much simpler. Some of the modern language features add more complexity than they give in benefits. And sometimes it's just better to write code than learn a new language feature or library.
Plus it's a very readable language.
Oberon is certainly an interesting direction. But in term of concurrency and multi-cores support it has no answer. And I argue that proper parallel programming support can not be fully solved by a library if the language has not designed for it or has built-in primitives to support it. In fact, Lalis, Sanders, Keller and others have made proposals to add concurrency support to Oberon.
The second big thing missing in Oberon is IMO the memory safety features. For today world and going forwards, I believe such features are essential.
Simplification and a lean implementation is interesting, especially as a basic for further development in a research environment. But for practical application and mass adoption, there are other demands we can’t simply ignore.
Only if you stay at the base version, instead of its descendents like Zonnon or Active Oberon.
However it is true that in 2026 they would hardly get any mainstream adoption.
> My compiler targets the 65C816 processor
Of all things...
I also have a (unpublished) '816 focused language and compiler (me and the AI).
I'm keeping it pretty conservative, as the goal is to rewrite the compiler in itself, and have it self-host. But a fellow posted this [1] about "Micron", an Oberon inspired system language.
And I'm giving a keen eye to how it handles Interfaces. I'm not sure if it will really fit, but it's an interesting idea that should be reasonably cheap on the compiler, and have no impact on the runtime.
I must say having an introspective CPU simulator as part of your unit tests can really help with writing a compiler. Not only can you test that the code is generating what it's supposed to, you can test that the code actually does what it’s supposed to.
[1] https://news.ycombinator.com/item?id=50413266
I also had the goal of self hosting, and that is working, although I have made it a little easier on myself by extending the 65C816 in some small ways. The most significant for the compiler is a small extension to the registers so that the direct page and stack can be located anywhere in memory. This is primarily to allow larger operating system and app images, the compiler is quite large now so it needs this. I have a limit of 64k for each module.
One breakthrough in the compiler was when I could start to use AI to interpret instruction traces, before that I was doing it by hand and it took a very long time. Now the AI pinpoints my errors very quickly, although I'm past that stage now and don't often come across compiler errors. I do this with an emulator, also written in Oberon.
I already had a 6502 simulator that I wrote over 10 years ago. I had not touched it in a long while, but coming back to it, it was remarkably far along toward running ‘816 (or so I thought).
So I uplifted it to a full boat ‘816 core. Once I had that, compiler development accelerated since the testing was much better. The AI and unit tests could generate the code, run the code, and analyze CPU state and memory.
Real game changer.
My proto compiler is in Java, but not idiomatic Java by any means. It’s limited to static allocation and constructs available in the new language to make porting it later, ideally, mostly mechanical.
Funny. I also have a Wirth-like language like that. Targets the 816 but also the CPU in the Mega65 (45GS02) which is similar but different. Wirth-ish in terms of syntax flavour but lower level as it is explicitly designed with the 65xx architecture in mind (stack structure, calling conventions, zero page, etc). C is notoriously.. not... appropriate for that architecture.
https://github.com/rdaum/menschly
Self-hosting is not something I'm aiming for.
I have a single-level Bubble Bobble clone, a simple OS, and a scrolling/exploding demo thing in it.
And yes, AI was heavily involved. I still think it's potentially valuable.
Which version though?
While my interest got spiked initially by the original Project Oberon, I was more found of the paths taken by Component Pascal and Active Oberon, as language evolution.
Anyway, it was what initially opened my eyes to systems programming with GC enabled languages, and drew me into the rabbit hole of Cedar, Modula-2+, Modula-3 and co.
Was Active Oberon the foundation of A2/Bluebottle? My memory fails me.
I haven't dug into Oberon, because it's not quite Pascal enough for me to love it, and felt a bit heavier than I had hoped for syntax wise.
I'm enjoying Odin lately, and if I felt i had more time/use for Oberon I'd probably try driving it. But feel that as a "living" project Odin is more usable, it feels more constrained in syntax and concision than the larger Oberon project.
This is similar to like Genera/Lisp Machines, where I'd love to explore more (and even plan9, though that's less related to OS/Language integration in the way Bluebottle/A2 and Genera/Lisp Machines.
Yes it was, last programming language update was on 2019.
https://gitlab.inf.ethz.ch/felixf/oberon
https://gitlab.inf.ethz.ch/felixf/oberon/-/blob/main/docu/Ob...
Odin is quite interesting for those of us with Wirthian background, although not having some form of GC kind of puts it off to me. I know how it looks like and don't really miss plain manual memory management beyond building blocks.
The language is Wirth's Oberon-07, as his 2016 report defines it, with additions for objects, interfaces and literals, and with the data sizes of the 16-bit 65C816. INTEGER and SET are 16 bits, LONGINT is 32, BYTE is 8 bits unsigned, and REAL is 32 bits, with LONGREAL as another name for it. Records can have type-bound procedures, chosen at run time by the record's actual type, and the language adds OVERRIDE, SUPER, initialisers declared with PROCEDURE INIT and called as T.Make(...), and WEAK pointers. INTERFACE types are implemented by records that declare IMPLEMENTS. There are constant arrays, record and array literals such as Point{x := 1; y := 2}, an ELSE in a numeric CASE, and _ in names. Modules can be declared LARGE (code over a bank) or FRIENDS (named modules may assign to their exported variables). Like Oberon itself, it has no exceptions and no concurrency in the language: errors are compiler messages, traps or result codes, and processes come from the OS16 library. The compiler grew from Wirth's Project Oberon compiler, and follows his structure. It was initially written in C, then ported to Oberon so it could compile itself. It comes in two builds that compile the same language to the same files: oc on OS16 and oc816 on Mac/Linux, using LLVM. The OO type features were primarily added to support the UI toolkit. OS16 is the associated operating system.
Wish it retained Modula-2's stackless coroutines though.
While not the same, Active Oberon's Active Objects provide a model similar to async/await.
Thanks for this, I wasn't aware.
LATER EDIT: After looking them up I found active Oberon objects to be quite heavy and preemptively scheduled. What I liked about Modula-2 coroutines is the control over how heavy a local stack they would own and when would control transfer to them -- not suitable for real parallelism of course. But for ten thousand boids simulating a swarm of bees foraging, returning, waggle dancing, recruiting, and flying out to precise coordinates, coroutines would be pretty good fit.
Here there you go, see the citations as well.
https://www.semanticscholar.org/paper/A-Multiprocessor-Kerne...
You might need to hunt for the actual PDFs, though.
Thanks so much.
I added some edits to my comment, we were likely working concurrently :)
Many thanks for the whole overview, looks kind of interesting approach.
Oberon is definitely an interesting language, and there's a few self-hosting compilers coded in Oberon itself in under 6 thousand lines of Oberon.
> indeed he went a little too far in some early versions of Oberon and restored a feature or two in successive versions
Actually the most minimalistic version is the one he made for his retirement project, Oberon-07. Oberon-2 (by Mössenböck et al.) had most features. My Oberon+ is a superset of all (original) Oberon versions.
> Oberon is a language in the Pascal family, the newest language from Wirth, and an attempt to remove any unnecessary features from his languages
And my guess this is exactly why it was never used at large.
Pascal by Wirth was also a teaching language. Hardly used. Only when Borland created Turbo Pascal --- which was the opposite of "remove any unnecessary feature" did it become tremendous successful. I took all of CP/M machines, e.g. many Apple II owners bought a Z80 card to use Turbo Pascal. Then it took the world of MSDOS. And for Windows 3.x it took the world again in storm in the form of Delphi.
Only when the software was transferred to the weird company with the weird prices and the weird name (Embarcawhatever) came the story to an end. Turbo Pascal sold for ~ 100 US$ and the Embarcawhatever asked for 1000 US$ if you also wanted the sources for the graphical objects.
That is: a striped down to the bare helpful language might be good for a university introduction course. But actually a lot more people learned Pascal with the beefed up versions "Turbo-Pascal" and "Delphi". Outside of university, just with the text book that was contained when you bought it. Or with the "Turbo-Pascal for Dummies/Grifters" type of books if you had the illegal copy.
If a language features adds more in complexity than benefits, it doesn't feel very Wirth-ian (Oberon or Pascal.)
What features do you have in mind?
Floating point for GUIs is a rare and important exception. Compilers rarely need floating point.
I like the idea of attaching units to a number, so that if A is 9 volts, B is 3 amps, then A*B yields 27 watts. I saw a demo years ago where it was done in C++ using type checking to make the units consistent.
There's a feature from Metamine which would be amazing to add to Pascal... the "magic equals" in which the left value of such an assignment would update any time the argument on the right changed. Adding imperative programming would be an amazing addition.
As for Lazarus/Free Pascal, the documentation is a key weakness. It merely lists the parameters and routines associated with a thing, but doesn't explain their purpose, nor give examples. This is a huge departure from the Excellent manual that came with Turbo Pascal back in the 1980s/90s.
If you like that idea, you'd love Oxygene! It's part of the type system.
As far as docs go, would you like to critique ours? https://elements.docs.remobjects.com/Oxygene/Types/Units/ Both I and the person who wrote those docs care about human-written, informative documentation.
Absolutely! This is something quite a few languages have already embraced, either built into the language or through libraries. It's a really useful feature, and it would be cool to see it become more common.
As it seems, the author is envisioning (a subset of) Ada and SPARK without mentioning them.
Yeah, I don't know why people just... Don't use Ada and SPARK if they want Ada and SPARK features. Ada needs a comeback.
By talking Rust-style safety? Or other language features?
Ada already has language-level contracts and tasking; SPARK has ownership and borrowing rules for Ada pointers. The "allowing multiple readers but ruling out mutation while those read-only aliases are live" in the demo is what made me think of SPARK.
I think I need to understand Ada more. I know it exists, and I know it is a Wirth-ian language, but I approached safety from 'what have we learned from Rust and how can we apply it to Pascal' without strongly examining what preceded Rust. People know Rust, but don't know other languages.
Ada seems very worth examination for updating Pascal.
Ada is a big and impressive language, and in many respects it goes much further than Rust in terms of safety. It's actually not a "Wirth-ian language", but has some similarities with Pascal syntax. In fact, Ada can be seen as the "antithesis" of Wirth's minimalism.
Pascal (FPC) and Lazarus were some of the first programming tools I learnt (after a variant of BASIC), they were pretty okay!
Personally, I think it'd could still be something that people sometimes use (especially with AI) if the ecosystem was stronger:
I'm not a language designer so others will probably have more to say about it, I just want Pascal (or a distribution with it together with some tooling, like what Lazarus gives you) to be immensely productive and be as batteries included as needed, without needing to look at a crapload of inconsistent 3rd party packages and under-maintained stuff without much presence.I guess I'm just describing most of what Go already does, except maybe for mainstream native GUI choices not being as strong as lcl (I just use Wails cause I'm lazy and evil like that). Come to think of it, since Go exists, maybe that's why I haven't reached for Pascal in a long time too.
Yeah I feel like Go is sort of in the space where Pascal was. Though I haven't really used it, the vibe I get strikes similarly to what I was learning in High School with Turbo 5 and 6.
I feel like a lot of Pascal ended up going OO and heavier than it should have been. Go and Odin feel like great languages inspired by Pascal, and hope we see more of that.
I get that sense too. As part of researching the talk I read this post [0] and while it's clearly a marketing post, I kept asking myself, this feels like the vibe from old-school Pascal, why isn't this being written about Pascal?
Our own Oxygene ticks many boxes but it's not as commonly used (yet) as other Pascals. And the same Elements toolchain also compiles Go. So I am thinking, I need to learn Go and get inspired for our Pascal.
[0] https://developers.googleblog.com/why-go-is-an-ideal-languag...
Side note: you would not believe the amount of research that went into this talk. Only a fraction made it in. I could have run an entire day's session.
[dead]
Circa 1989 I liked Turbo Pascal on the PC much better than I liked C but we had Sun machines running on the 68k architecture at school and C was portable to the 32-bit world. (even portable to the 36-bit world of the DECsystem 20!)
I loved Turbo Pascal in the early 90s. It I don’t really see the authors point comparing to Haskell. Haskell for good or bad has a unique role in the ecosystem. Pascal is just a pleasant syntax Algol language. What need does the world have for a revised futuristic Pascal?
Pascal is all about minimizing compile time. This was not an accident --- Niklaus Wirth designed it this way.
In other words, Pascal is more focused on compilation speed rather than on runtime speed. This may have made sense in a bygone era where PCs where slow and single core.
This is not to say that the runtime speed of today's Pascal code is "bad" --- it is "good enough" for a lot of uses but it typically lags somewhat behind the best available.
This is enough to exclude it from consideration for things like OS development or network/web services where speed (or the lack thereof) tends to get carried forward and inflict additional, cumulative costs.
And this is not to say that it must remain this way --- but it's history and momentum has worked to exclude much effort to change it. To the point where today, not many developers focused on performance would reach for a Pascal compiler. This has a carry on effect and will need to change in order for the language to grasp more development mindshare.
Talk author here, hi! Yes, the original compilers were single-pass and very fast. And that does limit optimisations.
In the talk I discuss things other languages are doing, including inbuilt SIMD types, where I think runtime speed can be a language design goal. And the Pascal compiler I work on, Oxygene, has had a bunch of runtime performance recently - some via a third party math library, but some via LLVM including even custom passes we built. At the same conference I gave the above talk at, I also gave a talk on optimisation techniques using a Delphi app (a raytracer), ie, very practical, let's spend an hour optimising this code, and at the end after I did everything I thought of, I recompile the Delphi VCL app in Oxygene -- and it's another 2.5x faster. That's on ARM. Other tests have seen much bigger on x64 or x32.
I figure performance is like any other industry problem: you can choose which you focus on, not all languages solve everything, but ultimately your language has to have a solution.
you can choose which you focus on
Why not both?
Is there any reason that a Pascal compiler couldn't switch to provide more optimized code on demand (multi-pass if necessary) while retaining the fast single pass capability?
Pascal compilers have long offered optimization options but in my experience, the code improvement tends to be mild and fall sort of the mark set by the competition.
If other languages can do better, why can't Pascal? The only reason I can see is lack of effort/interest and the "it's good enough" mentality.
There isn't. Oxygene compiles super-fast.
> This may have made sense in a bygone era where PCs where slow and single core.
One of Golang's main selling points is extremely fast build speeds. I find Golang the spiritual successor of Pascal in other aspects too, including the syntax.
I don't think that build times don't matter anymore. One of the greatest complaints about Rust is slow builds.
On the other hand, in a Darwinian world of agentic development, fast compile times providing fast feedback loops is a nice trait to have.
Very interesting!
I have said before that any language should be able to break from the past (in a controllable, careful way, but if between stagnation and progress, progress win).
I also has explore many ideas about how build a programming language (example https://tablam.org), and agree that nothing beats put semantics at the language level.
This is where I have not idea if the author means for things like Rust-like safety to be or not optional. That is where things always go wrong, imho. Certain semantics can't be useful unless enforced, defaults and preferred. Deviations is what need effort.
This is interesting. So all data, DB or no, has a set of functionality you can apply?
Re safety, I think it is not worthwhile when not enforced. But source code needs to be able to be progressively updated. Our prototype has a setting where instead of giving errors, it warns. The idea is for existing large codebases you might turn that on and progressively fix, rather than deciding to use safety and immediately turning a million-line codebase into something that doesn't compile because there are errors. Once it's without errors, then you disable the 'this is temp' flag and build normally from then on.
Prototype. A lot of this is exploratory, including even this approach.
> This is interesting. So all data, DB or no, has a set of functionality you can apply
Yes, the idea is that all data allow relational algebra operations so `"hello"?where ...`.
My long term goal is to make it good enough so instead of have RDBMS applications like sqlite/pg that are black boxes then lang "just" allow to do what this apps do natively.
That cover picture is certainly one of the AI images of all time.
Haha... I did not make it, but I did admire it once I saw it had been attached to the talk.
It is very weird seeing an AI version of yourself.
It should look like a set of vector embeddings that can be rotated into any LLM using Plato's Key.
Are you saying it should be accessible to LLMs? What do you mean?
Any plain-text language is going to be accessible to LLMs. Pascal probably more than most because it's simple yet strict.
What I meant was if you're going to "modernize a language for the agentic era" why not just go whole-hog and ship it as vector embeddings rather than plain-text keywords for human use? That would at least be a significant change in line with the goal, even if it made the language near-impossible for humans to use without an LLM.
The "Plato's Key" bit is a reference to the recent finding that most LLMs' vector embedding spaces are very similar and need only a simple transformation to map an embedding from one space into another. Thus embeddings are highly "portable" between models.
[dead]
Oberon on Laravel for Cobol.
i read somewhere a while back that a (joking) slogan of haskell is "avoid success at all costs".
does what the op says about the haskell group's recent statements, mean that this is a turning point for its direction?
The exhortation is about not sacrificing core values in exchange for success. I.e. the thing to be avoided is "success at all costs". Success is fine for Haskell people, but only at reasonable cost.
"Avoid, success at all costs" / "Avoid success, at all costs"
If you mean the quotes from the person (part of some Haskell foundation work group, or related) that moved his company from Haskell to Python, here's the discussion around that topic on HN https://news.ycombinator.com/item?id=48859673
Author here. I actually don't know much about Haskell, and I think I came across the quoted blog here on HN. But I was struck by the post.
I've never heard that joke about Haskell but you can see that sort of behaviour in all sorts of areas, not just programming languages. Sometimes it takes someone to say something, seriously, directly, for something to happen. I felt I was reading that kind of statement. And it can be met by defensiveness, denial, attack -- or action. And I wish the absolute best for Haskell.
[dead]
[dead]
[dead]
Pascal. Worst, most useless programming language on earth
what are some alternative spelling of dead?
the moment the post talked about the scarf dude i closed the window. citing an idiot… is stupid :)