logoalt Hacker News

Modern Object Pascal Introduction for Programmers

130 points • by birdculture • last Thursday at 11:33 AM • 46 comments • view on HN

Comments

zorobo • today at 9:54 PM

I was introduced to ucsd pascal on apple 2 but switched to Ada by the time turbo pascal came out. This intro is nice but I feel Ada is the way to go if one is into wirthian languages.

armcat • today at 5:53 PM

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.

WillAdams • today at 1:58 PM

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)

fatty_patty89 • today at 3:09 PM

There's also a new book called Free Pascal From Square One released in 2025 that teaches programming and pascal

agumonkey • today at 8:48 PM

Perfect to implement your own haskell I guess :p

baranul • today at 1:38 PM

It's amazing how underestimated the Object Pascal language is. Certain people or rivals want to write it off or declare it's "dead", yet the language (including various dialects) are still going strong.

➕ show 3 replies
jqpabc123 • last Thursday at 12:47 PM

I was introduced a very long time ago --- aka Delphi 2. I really like the language but there are mainly 2 problems that stand in the way of using it.

1) The code isn't as "optimized" as it could be.

2) The talent pool is limited --- chicken or egg issue.

It has been this way for a very long time so I don't see it changing.

➕ show 2 replies
burner420042 • today at 8:07 PM

Huwstube and Bg-Lazarus-en-CreatingaWeb-s8e are great youtube channels.

ei8ths • today at 3:24 PM

this is really neat to see and that it has support for any modern system. I don't know pascal and could be a fun way to learn it.

shevy-java • today at 3:08 PM

I think I last used Pascal, TurboPascal if I remember correctly, in school - perhaps at age 17 or something like that. I recall that we used to define some things from geometry, e. g. a triangle, calculating sides, angles, surface area and so forth, and then of some more objects from geometry.

I have not used Pascal since then but it was not the most terrible programming language of all times either. These days I would not know why I'd want to use it, compared to IMO better languages. Nonetheless I found it ok for teaching in school back then.

desireco42 • today at 7:36 PM

AI will do all our work now, but man at least I lived and wrote Pascal growing up.

theamk • today at 3:41 PM

> 5.1. Remember to free the class instances

> The class instances have to be manually freed, otherwise you get memory leaks.

manual memory management in 2026?

➕ show 2 replies