Lobsters - 03 Dec 2026
Page 3 of 4
But what's really interesting is that starting in 2025, there are just as many other efforts to bring in new ideas for Pascal.
There was a Free Pascal Unleashed, which I think [speaking to an audience member] you mentioned to me just before the talk, which adds async and await, and pattern matching and tuples and string interpolation.
Jarrod Davis of tinyBigGAMES has about four or so different languages that he's experimenting with, of extending Pascal in various ways, whether it's compatibility with other languages or its language features.
There's something called Kylix, which is Chinese and probably has a trademark problem. It's unrelated to Borland's, but it is a really interesting web page. It brings in pattern matching and lambdas and a map type, an inbuilt map type, which I think really builds on Pascal's typing, the inbuilt ideas of strings and sets. Maps are something we find really valuable, and it builds one in
Paul McGee in Australia has a couple, actually. If you keep an eye on the ADUG user groups, he's really active there with ideas.
And what's really interesting is that you see this huge spike. And I thought to myself when I originally saw this before I graphed this out, okay, I thought to myself, sure, I see a spike. Is it actually real? Am I seeing this because, you know, I and we are worried about Pascal and I'm just looking for something and feeling hopeful, or is it genuine? Is it genuine movement? And I think it is genuine.
And the other criticism, of course, is, is it AI, and therefore should we ignore it?
And yes, a lot of these projects show signs that people are using AI to build it.
But I don't think that disqualifies it because I view AI as a tool for empowerment. Compilers are not easy to work on. People don't have the time. And I think that AI lets people build things that they wanted to build. And if I see a spike like this, and I see that AI is used to do it, then I see that perhaps people have an area where they had gaps and now they feel empowered to take their worries about that and actually build something positive out of it. AI empowers people in that sense.
I also quoted Free Pascal. Now, I am an outsider to Free Pascal. I don't know it very well, but I quoted their roadmap before: 'We will not change the language.' And the most recent download, official download of Free Pascal that I can find is 3.2.2 on their website from either 2021 or 2022. It doesn't give the view to an outsider of a particularly active project, which is worrying to me because I like and respect Free Pascal, and I want it to grow.
Yet there's a bunch of stuff in various branches, especially in the development branch, that simply hasn't been released in an official build. And this seems to me to directly contrast the roadmap statement.
The other interesting thing is that I have perhaps been a bit harsh on that roadmap statement because I'm looking at the language. That statement that I quoted was the 26th item out of 26, and the other 25 are mostly about other things, Lazarus in the browser and a UI framework.
Now, they are not the language. And I think the language is important because the language that enables libraries is the language that you use. The language is the core. So I'm not counting those other 25 items, but those other 25 items are really innovative and really interesting. This is clearly a lot of movement somewhere in Free Pascal, and I think that really needs to be applauded.
How to Build a Renaissance
And to me, I think a lot about renaissances. You see, for me personally, I felt that Pascal was kind of in a renaissance sort of post-2011. I personally at least was feeling really excited. And I looked back at my own history of what I had done, and, you know, I was posting about various graphics techniques in 2011. I was talking about different UI libraries and things you could achieve.
I wrote a FireMonkey client for DWS as - like a server that they did. I started writing the plugins that eventually became part of Delphi. And what struck me is that there's a delay because I sort of saw a bunch of movement in the language, but it took me a few years before I started really getting excited about the language, and I started doing stuff in it.
And I can track all the stuff I was doing, and I remember my excitement and my interest.
And I think this shows that excitement takes time and work to build. You have to build things, and you have to build the right things, and they have to be exciting and impactful things, and it takes time and dedication, and people have to use them, and people have to come to know about them and have to appreciate them, and it can take years, and then suddenly you find that there are all these people who are excited.
But it doesn't just happen overnight. You have to do it consistently.
And my feeling is that if we want to look at where Pascal is going to be at 2030, and if we want it to grow. Then, 2030 is really only about three years away. It's November 2026 now. 2027, 28, 29, and then we're going to have it. So we should build out Pascal, and we should do it now.
What other languages are doing
So I want to look at what other languages are doing, because again, it's very rare that we need to invent an answer. So I want to have some kind of speculative things about how other concepts from other languages could look in Pascal.
Concurrency, for example. Swift has actors, but they also have disallowed parallel access within tasks. Now, for Pascal, we could do something very similar, I think, and I have some code there with a parallel for loop where you have input with a item, your ticket that is accessed in parallel. If you try to write to it, it would just be a compiler error, compiler detected compiler error, and that's more on the later slide.
Or, for example, flow typing in Kotlin. Now, Kotlin does something very interesting where it will check a type, and then if a variable is of a particular type, you can access it later as though it is of that type without casting it.
Now, I'm not completely certain that's very Pascalish, but people love it. Something I found interesting learning Oxygene is that it has two solutions to this. It has 'if is'. As you can see here, you write if something is of a particular type, declaring a new name for it, then you can use it straight away. It's not the same as Kotlin because Kotlin lets you use the same identifier, but it's the same concept.
Or soft interfaces, where if a class simply declares the right things, you can treat it as though it is of a particular type. Again, Kotlin-like, but not exactly what Kotlin does.
Generators are really big in Python. A generator yields a value and execution will resume at that point. And this is a little difficult to wrap your head around if you're used to simple returning, because a method will then resume from halfway through where it was.
Now this is something that you can use today! Here, for example, where you have a for loop and you can yield it, and then you will have that code resume at that point next time you call it. It doesn't start again from scratch.
Mojo, which is a Python-like language made by Chris Lattner, who designed Swift, has inbuilt SIMD. Okay, Delphi is going in this direction as well through its LLVM and its optimization. Oxygene does as well. We have really high performance, and we've been looking at should we add SIMD types.
Errors as values in Gleam. This ties into the table, by the way, with safety. You know, what would that look like in Pascal? There is no Pascal that can do this today, but you could [create] something. So this is where you have a result that a call has to handle, so instead of throwing an exception, you can have a result or another type, which is often used to carry an error.
And so you force handling errors. So you might define a particular result that has either the result you want or an error, and then you're forced to handle it. And I think this is speculative code of how that could look very Pascalish. So you get the result as you normally would, and then you have a case statement of what is it. It might be an integer or a string, and then you cast it.
Now, in Oxygene, you can do case type of already, but you cannot get access internally without casting. Okay, but Pascal could if we built it out.
These are all sort of just ideas, and I want to go through these quickly, but the point here is that other languages have answers to all these problems, and that they can map to Pascalish syntax quite well and quite easily. All of them can look like Pascal.
And then I return to Haskell because I think that their attitude shows something. The same person who wrote with such grief about quitting Haskell wrote -- there's a long quote, and I'm going to pick out bits of it -- but that Haskell should be, in his view, unusually well positioned to be relevant to both AI-enabled engineers and agents. He's worried about AI, and he talks about type safety as a huge advantage, which is spot on for Pascal.
And he talks about how agents have different bottlenecks. They're cheaper at generating code and expensive when blocked. They benefit from fast feedback and examples and errors.
And he says that if Haskell wants to be great in the AI era, it needs to optimize for that world on purpose. And he's looking at what characteristics make his language the language that he loves. And he's finding existing patterns in that language, existing strengths, and he's building for the world that he can foresee coming, building on those strengths.
You see, I come back to this quote: Let's erase 'that we will not change the language.' But the interesting thing is that Pascal has proven to have all the characteristics it needs, because Pascal does have the characteristics it needs. Pascal is a really powerful language in its concepts, in the way it is designed. It is very clear. It is very readable. It can make complex things simple.
It can give very good error messages. It can be very good for AI agents to write. It has strong typing, which is increasingly becoming immensely useful with AI especially. It has the characteristics it needs. And all those set up Pascal, we think, to move ahead and to answer all the things that we can see coming in the industry. Also, other Pascals have answers.
And this is another slide on many of those same experimental Pascals that we see out there.
I have spoken to a lot of people preparing those talks, including two of the people on this slide. But all of these Pascals show modern concepts which answer the problems that have arisen since the 2000s, the industry problems that collectively the industry is moving away from putting on the programmer to putting on the compiler, and they show all of them.
That there are ways to do this in Pascal, in a very Pascal-like way.
Oxygene shows what is possible
I also think that Oxygene shows what is possible, and I was uncertain how to present this slide because, of course, this is a RemObjects talk, and therefore I'm representing the company.
And we spoke about this, and we are not marketing; we are trying to express worry.
And we thought there are two ways we can approach the things, for example, that Oxygene can do: the competitive and the inspirational.
And we think that it is much better to be one of those Pascals that can show what is possible.
You know, the Pascal community is really small. We saw, what, 21,000 people committing to open source code on GitHub in one quarter this year. That is obviously not nothing. There must be many more programmers than that out there, including in commercial code bases, but it's not gigantic.
And we don't think that within the ecosystem, sort of competitiveness inside is helpful in any sense.
So we think that we can demonstrate possibility here, and that we want to show again that Pascal can provide answers. We think this is a bit similar to our relationship with Embarcadero, where we're a tech partner. Now we can do things like link to the VCL and build VCL apps. And we position that as supportive, that we are taking the component model where people have always replaced and used different components inside Delphi, and that the toolchain is a different component, but you still need to use Embarcadero tech, and we still support Delphi, and that we just enable more.
It's an assurance that the code can meet tomorrow's problems, but using the code and the libraries and the vendors that you use today.
And we really want to offer cooperation. And we want to say that our tech is open to collaboration, and we really hope there is interest there. We'd welcome working together.
Rust-style safety in Pascal
I want to show an example of the kind of thing that we are doing that we want to use to try to inspire what is possible with Pascal, and that is Rust-style safety.
Now, Rust is answering the industry's problems right now because safety -- compiler-guaranteed safety -- compiler guarantees that you cannot use after free, compiler guarantees of ownership, compiler guarantees of all sorts of things in Rust, and that is why everyone is moving to it.
But it is a difficult language, a really difficult language. I find Rust very hard to write. And the fact that people are moving to it anyway really shows the need.
And I think that Pascal can apply these principles: It's rare that we need to invent an answer. We need to apply what we know today, and the industry knows. It knows how to build Rust.
We know what the algorithms are. We know how to track these things in a compiler. We also think about simplicity making complex things simple. So what if you could take the way that Rust is doing its things, its safety and its compiler analysis, and look at it and do a version two with a Pascal eye and make it more comprehensible to ordinary people like me?
I could give an entire talk on Rust-style safety and what it enables: your liveness and ownership and usage and tracking access and whether something is mutable and whether threads are there and whether data is being written to something that a thread relies on while it is trying to access it, or memory bounds, or whether your code is able to free something because it is responsible for it, or whether you're going to end up with double frees, and all this kind of stuff that Rust does.
I'd love to give a talk on it, but it would be an entire talk on itself.
But we have a prototype, which I want to show you, which brings in Rust-style safety into Pascal, and I want to show you that this is possible in Pascal, in a Pascal feeling.
We actually had four keywords, and I've only put two on the slide because ownership is the one that Rust is most famous for, where in our prototype we have 'owns' for a variable and 'take'.
This is about representing responsibility for an object's lifetime and transferring responsibility. So, for example, in this code snippet, you might have 'var FBar', for example, the way you would, but you say 'owns var FBar'. It owns FBar. All of this is up in the air as a prototype. This has gone round many designs on paper before we even touched the compiler, and many designs in the compiler.
Then if you have a method that should be responsible for freeing something, our current syntax is that that method, you know, it's going to free something, takes an object. And you can track this in the compiler so that once something has been taken, you know what owns it, and you know that it has freed it, and you know that you cannot double free.
So what I'm going to show you is a prototype, and I really want to qualify that because it will not ship. This isn't one of those prototypes that turns into something that you ship. It is a prototype that is an exploration. We want to inspire and see what is possible in Pascal, what can be put in Pascal in a modern way, and it won't ship as is.
What it might do is that it might be used for version two. We have another language called Myth where we are exploring what happens when AI is given a language it has no training on, and to see what makes a language innately good for an AI. And it turns out that this kind of thing, this kind of ownership and messages, is really valuable for AIs, and they love it.
So some form of this is probably going to go into our toolchain simply for that. But it's a prototype, and I would love to see this in Pascal.
So I want to show you a really simple demo, and this is a live demo, and I'm going to run our actual compiler here and see what happens. So I have some code here which simply accesses an object, a customer, and you can see it's pretty much untouched. You don't put any weird keywords in or anything. It's the same code that you always have, which is a good principle. You don't want to make people change stuff very much.
But if we're freeing something... Then we have to transfer ownership. Currently it takes that parameter and it owns it. And so here we have some code where we create a customer object and we say that it's owned, so we know the responsibility for freeing it. And we have an alias to it. We have another variable that points at the same thing. Okay, big opportunity for confusion and for double freeing there. And then we use it. You know, we do something to it, and then we free it. And we do something and we free it with different references to the same object. And then we do something again with the same object via the different reference than the one that was freed.
So this is the kind of thing that Rust excels at. Now I'm building here, and it will take a few seconds, and you can see the prototype quality in the error messages. But it says here that we have some safety rules. You know, the transfer here is referring to this line, FreeCustomer. The transfer, you can see, it is taking customer. And so it says: the transfer invalidates the future use of the alias Customer2.
So it knows that customer has been taken and used here to be freed, and so that when you do something via the other alias is not valid anymore.
Here is another example with threading. So we use a parallel for loop, and we are writing to a shared value, the customer here, inside, you know, the four of these things, all writing to the customer.
This is a major problem. This is really unsafe code. Pascal today does not catch it. You can write it. You'll get in all sorts of a mess if you write code like this, and there's nothing stopping you, which is why Rust exists.
So let's see what happens if we run it here. You again will get prototype error messages. For example, there's a message saying that we have not fully built out anonymous methods yet.
But the second one there says there's a safety rule broken, that the mutation overlaps--it's a horrible term--a retained frozen observation. But it's saying that it has to be static because all these threads are reading from it. It has to be frozen; you're constant, read-only, and that you're mutating it, you're changing it, and it won't let you write this code.
Next page | Previous page | More Lobsters | Headlines
Original: https://blogs.remobjects.com/2026/12/02/a-vision-for-pascal-2030-at-ekon/