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.
show comments
Rochus
As it seems, the author is envisioning (a subset of) Ada and SPARK without mentioning them.
show comments
PaulHoule
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!)
KronisLV
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.
show comments
mamcx
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.
jqpabc123
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.
show comments
Sharlin
That cover picture is certainly one of the AI images of all time.
show comments
bitwize
It should look like a set of vector embeddings that can be rotated into any LLM using Plato's Key.
show comments
fuzztester
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?
show comments
carterschonwald
the moment the post talked about the scarf dude i closed the window. citing an idiot… is stupid :)
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.
As it seems, the author is envisioning (a subset of) Ada and SPARK without mentioning them.
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!)
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.
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.
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.
That cover picture is certainly one of the AI images of all time.
It should look like a set of vector embeddings that can be rotated into any LLM using Plato's Key.
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 moment the post talked about the scarf dude i closed the window. citing an idiot… is stupid :)