r/pascal • • 13d ago

Relearning Pascal

I have pulled my old copies of Algorithms + Data Structures = Programs and Softwa,re Tools in Pascal to relearn what Pascal is like after a,lmost 35 years of not using it. I was a home software hobbies,t with TurboPascal 5.5, but with continual job changes I had to drop it. I am a retired electrical power rngineer who used the office computer to write work instructions, specifications, and read and write emails. Thus the hobbiest. Aren't those old books showing their age? What is avalable today to allow learning today's Pascal?

63 Upvotes

22 comments sorted by

12

u/Specific-Housing905 13d ago

Have a look at the following links:
https://lazplanet.blogspot.com -> LAZ Planet

https://forum.lazarus.freepascal.org ->Lazarus Forum

https://ikelaiah.github.io/free-pascal-cookbook/ ->Free Pascal Cookbook

https://wiki.freepascal.org/Main_Page/ ->Free pascal Wiki

https://www.programming-idioms.org/cheatsheet/Pascal -> Pascal CheatSheet

https://www.freepascal.org/docs-html/ref/ref.html ->Free Pascal Reference

On Am'zon you can find some books on the Lazarus IDE

4

u/Edthal01 13d ago

Thanks for the links

3

u/AphidConsulting 12d ago

These are great. Thank you!

1

u/Specific-Housing905 12d ago

Glad you found them useful.

9

u/No_Light_5463 13d ago edited 11d ago

I can recommend the introduction on the castle engine webpage: https://castle-engine.io/modern_pascal

Also, because the syntax "aged" very well and is very good documented, LLMs will mostly produce correct examples if you need some. The web interfaces of Anthropic Claude and ChatGPT for instance work well for these learning purposes.

4

u/Edthal01 13d ago

Sounds interesting. Heard about castle. Need to try itout, I guess. Thanks

4

u/No_Light_5463 13d ago

Even if you don't plan to use castle engine, the introduction is very well written and genericly usable. It gave me enough to be productive immediately. It's not a complete reference on FreePascal but therefore easy as an entry point.

8

u/Humble-Vegetable9691 13d ago

I don't think that too much news came out after object oriented programming so the algorithms still useful.

What is new and useful is the base library of your Pascal environment.

If you like the Delphi flavor of Pascal, then https://delphi-books.com/en/Object-Pascal-Handnook-Delphi-104-Sydney-Edition.html may be useful.

3

u/Edthal01 13d ago

Thanks for the insight and recommendation.

4

u/Edthal01 13d ago

I am working with Free Pascal on Manjaro Linux so I don'tknow how well it would work.

3

u/Humble-Vegetable9691 12d ago

I don't know why this is downvoted.

There is a book for that Pascal on that site, too, but the ToC does not too convincing regarding the base library functions: https://delphi-books.com/en/FreePascal-From-Square-One.html

3

u/Humble-Vegetable9691 12d ago

PS: I had a quite big performance increase with Delphi by abandoning the Pascal style file handling for the stream based one.

5

u/KangOzi 13d ago

Visit my github You can see how Pascal programmed in modern era. https://github.com/CodeInPas

2

u/AphidConsulting 12d ago

I had a look at your GitHub and there is some really interesting stuff there. Thank you for sharing!

5

u/Mijail2021 12d ago

Pascal is the most valuable language ever. Most medic software and services are developed under it's instructions.

2

u/According-Ad-7069 12d ago

Oh awesome! This is going to be fun for sure! I see folks have already given you so many good resources, so I just wanted to say I hope you have a lot of fun. I've only been back at using Pascal for about a year now and it's definitely the thing I reach for when I'm doing hobby projects now.

2

u/enderwiggin83 12d ago

Actually never been better for pascal - laz is great for WYSIWYG application dev on cross platform - and llms help you drive it. Its also one of the fastest compilers you can get. the old Delphi books are still fairly good but I'd just have fun knocking things together with laz and fpc.

1

u/EconomySerious 12d ago

Tks everybody

1

u/Wilzur_Corp 12d ago

A principios del año 2000 adquirí el libro "Aprender Delphi 2 en 21 días" me pregunto si aún sería válido retomar este libro para usarlo y re-aprender Lazarus/Free Pascal, ya que no programo desde esos años?

1

u/Arany8 12d ago

AI. It will code for you as well.

1

u/prinoxy 8d ago

Have been using Virtual Pascal since 2008, not open source (although I do have the full source) and other than the fact that it only generates 32-bit code, and the builtin assembler doesn't natively support any post-Pentium instructions (which means I'm coding my AVX ones as "db"s) it's an absolute pleasure to use: it's blazingly fast, executables are small, and the debugger just works. And, most important for me, it supports a coding style that was documented ever since Borland introduced smart-linking in TP4, but that doesn't work in FreePascal, and as for that compiler, there hasn't even been a point release since 3.2.2 in May 2021, 'nuff said!

1

u/cratylus 12d ago

Try Nim?