

Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- There's also a new book called Free Pascal From Square One released in 2025 that teaches programming and pascal
- I used to have object pascal as my main language, and it has a lot in its favour. But when I go back to it I find two things drag it down.
Pre definition of variables. I would like to be able to define variables on first assignment and scoped to the begin/end in which that happens, I don't think there is a good remaining argument to keep them above the statements.
The namespace is cluttered with legacy usage, making the many years of advancement require odd. Combinations of prefixes.
I still think there is a scope for a light fork that changes the name to distinguish it and starts the RTL afresh using the decades of hindsight and improvements.
by Lerc - Fruity Loops is written in Delphi. There was a period in time where because of this, the company said there would never be a Mac version, but eventually one happened with the help of ObjectPascal.by archonis
- One of the greatest features of FreePascal is that strings are managed. You never allocate or deallocate them, you just declare the variable, and it manages them. They're counted, reference counted, copy on write, and can hold gigabytes.
According to google:
When you assign one dynamic string to another, Free Pascal does not duplicate the actual characters in memory. Instead, both variables point to the same character buffer in the heap, and the runtime increments an internal reference counter. A physical memory copy is only triggered when one of the string instances is modified (written to)
Free Pascal strings are as close as you get to magic, compared to C/C++.
by mikewarot - This takes me back, my first adventure in programming was as a 12 year old creating a Pong clone using Turbo Pascal on DOS. It came in handy later as a 20 year old when I was doing freelance as a Delphi dev. Amazing to see Pascal on HN.by armcat
- I bought Delphi ages ago, but never got very far with it, which I regret.
I'd love to be able to take it up again, and this document looks very promising for that, esp. paired with:
https://wiki.freepascal.org/pas2js
which I now see is supported in Lazarus.
If someone has an example graphical project which compiles to an HTML page w/ JavaScript using the above, I'd love to see it and a detailed set of build instructions and notes on installing the needed toolchain and deployment. (as a note, I'm currently working in flet.dev using Python which allowed me to get a small prototype up-and-running, but I'm still looking into self-hosting and doing something more complex)
by WillAdams - Photoshop 1.0 was written mostly in Object Pascal with some 68000 assembly language; source code is available:
https://computerhistory.org/blog/adobe-photoshop-source-code...
by alwillis - When I was first learning to program, I started using the free Borland Turbo C++ compiler [1]. I had managed to get subscribed to their newsletter that seemed very insistent that Delphi was going to be the future for desktop software. Awhile later, I found out that "Spybot – Search & Destroy" was written in Delphi, so I figured it might be fun to play with.
So play with it I did. I hadn't used Visual Basic at the time, so the entire idea of "drag and drop" GUIs was kind of amazing, and I even kind of ended up liking the language.
I wasn't able to get any kind of OpenGL stuff working with it, so I ended up going back to C and I really haven't touched the language since, but I kind of feel like I should at some point just to finish off that loose thread in my education.
[1] I actually don't remember if that was proper freeware or if I had gotten it cough unofficially free...
by tombert