Pascal, The Powerful & Underestimated Programming Language

Discuss other programming languages besides AutoHotkey
SOTE
Posts: 1082
Joined: 15 Jun 2015, 06:21

Pascal, The Powerful & Underestimated Programming Language

25 Oct 2018, 05:30

Interestingly, many assume that Pascal is a dead or outdated language, when that is very much not the case. It's alive and well. An easier to understand language with many benefits.

Object Pascal, Lazarus, Tutorials, & Info

https://www.lazarus-ide.org/ (Lazarus IDE)
https://www.freepascal.org/ (Free Pascal Compiler)
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases (fpcupdeluxe installer for Lazarus IDE and Free Pascal Compiler)
https://youtu.be/6jJ1FNfLwuU (Lazarus and Free Pascal Installation Guide; YouTube Video)
ftp://ftp.freepascal.org/fpc/docs-pdf/ref.pdf (Free Pascal Reference Guide)
https://castle-engine.io/modern_pascal_introduction.html (Modern Object Pascal Introduction for Programmers)
https://www.youtube.com/watch?v=0VPvQ_dXMhw&list=PLB24C56953A79987A (SchoolFreeware Program/Console Pascal YouTube Tutorial)
https://www.youtube.com/watch?v=7PuvsyLapgw&list=PL0BE41D3CA142028F&index=1 (SchoolFreeware App/GUI Pascal YouTube Tutorial)
http://www.schoolfreeware.com/Free_Pascal_Lazarus_App_GUI_Tutorials_With_Example_Code.html (SchoolFreeware/Demo Files Location)
https://www.devstructor.com/index.php?page=tutorials (Devstructor YouTube Tutorials and Demo Files)
https://www.youtube.com/watch?v=8maOxNc0Aio&list=PLdVESrjTNUXtU8zclRh9ovhstzWQAY05U (Swinburne - Pascal on YouTube)
https://commons.swinburne.edu.au/searching.do(Swinburne Demo Files - Search for, "Introduction to Programming in Pascal")
http://www.freebyte.com/programming/pascal/ (Free Pascal Tools)
http://docs.villavu.com/simba/referencescript.html (Simba; Automation)
https://github.com/MerlijnWajer/Simba/releases (Simba on GitHub)
https://github.com/jasc2v8/WinAutoKey (Pascal Automation; WinAutoKey)

Delphi Flavor of Object Pascal Tutorials & Info

https://www.youtube.com/user/MrLongEducation/videos (Mr Long IT & CAT - Many Delphi YouTube Videos)
https://www.youtube.com/channel/UCFZxawRN6quppxog_L0LjNg/videos (LearnDelphi - YouTube Videos)
https://youtu.be/XMj8RlJO-zQ (Installing Delphi Community Edition Video)
Last edited by SOTE on 20 Dec 2019, 07:53, edited 17 times in total.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Pascal, The Powerful & Underestimated Programming Language

25 Oct 2018, 18:32

What is your view on Delphi? Thanks.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
burque505
Posts: 1373
Joined: 22 Jan 2017, 19:37

Re: Pascal, The Powerful & Underestimated Programming Language

25 Oct 2018, 18:53

Hmm, I was just running a few Delphi scripts when I saw this, jeeswg. I'm using pdscript, a Pascal interpreter which is pretty impressive. It has many sample scripts with the download, it's free, and it'll do a large percentage of what Delphi or Lazarus can do. It has an IDE too, but it's not free.

Personally I like Delphi, not because of the syntax, although it's familiar, but because the executables it creates are small and fast.
Here's a small script cloned from one of the examples that runs AHK via pdscript. It takes 3 scripts, ShellExecDemoAHK2.dpas, ShellExec.dfm, and a one-liner AHK script that shows a MsgBox with a variable passed to it from pdscript.

I'd be interested to hear what others think of pdscript and Delphi/Lazarus too. And SOTE, thanks for those helpful links.

Regards,
burque505
Attachments
PDScript with AHK demo.zip
(1.46 KiB) Downloaded 179 times
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Pascal, The Powerful & Underestimated Programming Language

25 Oct 2018, 19:05

- Thanks for the info. I may need to learn Delphi at some point. So, any good tutorials/resources on Delphi or relevant areas of Pascal would be most welcome, thanks.

- I think the confusion between Pascal/Delphi etc is a big obstacle to their wider use. I've found it hard to get reliable or simple/useful info on this.
- Similarly, I looked for C v. C++ on YouTube, through about 20 videos, and every video was poor.
- The best response would be something like: 'I've used both for x months/years, and some general tidbits/differences between the two are: ...'
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
SOTE
Posts: 1082
Joined: 15 Jun 2015, 06:21

Re: Pascal, The Powerful & Underestimated Programming Language

25 Oct 2018, 20:19

jeeswg wrote:
25 Oct 2018, 18:32
What is your view on Delphi? Thanks.
The issue with Delphi is the Pascal language is much bigger than just that name. However, Borland Delphi was at one time so famous, that Delphi became synonymous with or replaced Pascal in the public space and minds of many. So when Borland, as a company died, many thought Pascal died with it. But what happened in the background, was the development of Lazarus, the Free Pascal Compiler, and Object Pascal.

Delphi is really just an IDE, that used a dialect of Object Pascal for the commercial purposes of Borland. Now, Delphi is owned by Embarcadero. And until recently, Delphi was so expensive that it was only developers with deep pockets or companies that could afford it. Luckily, Embarcadero has become more sensible and you can get a free community version of Delphi. Of course there is a bit of a catch, once your total sales revenue for created applications reaches US $5,000, or your team expands to more than 5 developers, you are expected to get the Professional Edition of Delphi.

https://www.embarcadero.com/products/delphi/starter (Delphi Community Edition)

This makes Embarcadero Delphi Community Edition a direct competitor to Microsoft Visual Studio Community in many ways, though not exactly. As obviously, most know Microsoft, while likely to not heard of Embarcadero. Though Delphi (Pascal) does have some advantages, in terms of being able to make cross-platform applications for multiple OSes. Windows, Linux, Macs, Android, and iOS... While .NET is still a bit of a mess and is unlikely to become truly cross-platform anytime short of the next 5 years (or maybe longer). Lazarus (open source) and Delphi Community Edition are here now.

Delphi is definitely an option, particularly if someone has any aspirations to program professionally. There appears to still be a market for Delphi (and Object Pascal) developers. Likely many hobbyists would use Lazarus, though I don't see any harm in downloading both IDEs. The switch between using Lazarus and Delphi is relatively minor, as long as you know Pascal.
Last edited by SOTE on 08 Sep 2019, 10:48, edited 2 times in total.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Pascal, The Powerful & Underestimated Programming Language

25 Oct 2018, 20:32

Great summary, thanks.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
SOTE
Posts: 1082
Joined: 15 Jun 2015, 06:21

Re: Pascal, The Powerful & Underestimated Programming Language

05 Sep 2019, 06:11

After playing with Embarcadero Delphi Community Edition and looking at how that company has handled Delphi (some say mishandled), I do think their strategy is highly flawed. With many companies, their greed has gotten in the way, where they "can't see the forest from the trees". Delphi is still a very good product, that allows for cross-platform application development. But it's way, way too expensive for a lot of the potential users. Particularly for the young, hobbyist, and independent software developers. This means Embarcadero has been "locking out" new developers and a bigger core base. This is why many think Delphi has died, and by incorrect association, think Pascal has died along with it. Key point is that Delphi and Pascal/Object Pascal aren't the same thing.

For example, depending on which software product, Delphi can cost from around $1,500 to $3,000 dollars (and up depending on options). While a decent sized company with multiple developers can handle such an expense, most young individuals can't or won't pay such a cost. Especially when they can freely download the Lazarus IDE (Free Pascal), which can also import Delphi projects. Though not as capable as Delphi, still quite good. With its only truly glaring weakness is lacking support for building apps on iOS/iPhones (though it can do macOS and Android).

If Embarcadero had done their math properly and not been so greedy. The Delphi Community Edition should remain free as long as total sales revenue for created applications doesn't reach at least $10,000 dollars, not $5,000 dollars. Taxes often eat around 30% of sales revenue. Which could leave $7,000 or so left. And depending on which Delphi product and the reseller they get it from, they could be laying out $2,000 dollars or so. You at least leave the independent software developer with some money in their pocket. With the limit being $5,000 dollars, after 30% cut by taxes, that's $3,500 left. Which will be eaten up significantly paying for Delphi.

And the amount of developers should arguably have been lowered to 3, instead of 5. It's probably too late to change that now, but some more thought should have been done. Because a company that can afford at least 3 software developers, is one that has some money. Programmers/Developers salaries are at least $85,000 US dollars (can be much higher depending on area and experience). Multiply that by 3 (or 5), and that company should be able to handle buying Delphi. Where that's not the case for young people that haven't graduated from high school or college, or non/wannabe programmers looking to get started that aren't making that kind of salary.

Embarcadero should be better at math, more practical, and less blinded by greediness. In addition the list of competitive programming languages and their abilities is rapidly increasing. There is Swift by Apple (slowly gaining a foothold in Windows), Dart by Google (used in Flutter and possibly their replacement OS for Android), Red, C# going cross-platform by Microsoft (and thanks to Xamarin), various new JavaScript solutions, etc... And the Lazarus IDE and Free Pascal keep slowly getting better. All these solutions are mostly free and/or open-source.

The Delphi Community Edition was definitely a step in the right direction (though it came out a bit late in the game), but if Delphi and Embarcadero want to stay relevant, they need to improve the terms of usage even more, to grow a bigger base of users.

Update:

If your Community Edition license expires (1 year), you will have to uninstall, download a new version, then install that. Which will give you another 1 year license. There might also be some hacks to continue using the existing version past 1 year, but uninstall and re-install updated version is simple enough.

Delphi Community Edition's revenue restrictions do have some enforcement gray areas, that I have seen some debates about. Particularly for free software where the author gets donations, as how Embarcadero can track such is not clear. However, as Lazarus has no such restrictions, not sure why a Pascal programmer would want to go down that road for Windows, Linux, or Mac.

Delphi Community Edition doesn't have support for Linux (yet), though Delphi RAD (paid version) does. Not clear when it will or if it will ever be added to the Community Edition. Lazarus IDE w/ Free Pascal does support Linux. These IDEs have varying levels of support and cross-compiling capability for different OSes, along with their slightly different flavors of Object Pascal.
Last edited by SOTE on 20 Dec 2019, 07:49, edited 3 times in total.
SOTE
Posts: 1082
Joined: 15 Jun 2015, 06:21

Re: Pascal, The Powerful & Underestimated Programming Language

15 Dec 2019, 14:24

Added info (see 1st post) from Swinburne University's course on "Introduction to Programming in Pascal", both website location containing demo files and YouTube channel.

Added info (see 1st post) on fpcupdeluxe, special installer for Lazarus IDE and Free Pascal Installer.

Added info (see 1st post) YouTube Video of Installation Guide for Lazarus IDE and Free Pascal Installer.
burque505
Posts: 1373
Joined: 22 Jan 2017, 19:37

Re: Pascal, The Powerful & Underestimated Programming Language

15 Dec 2019, 15:30

@SOTE, thanks for the new links.
Regards,
burque505
SOTE
Posts: 1082
Joined: 15 Jun 2015, 06:21

Re: Pascal, The Powerful & Underestimated Programming Language

16 Dec 2019, 15:26

burque505 wrote:
15 Dec 2019, 15:30
@SOTE, thanks for the new links.
Regards,
burque505
You are welcome. Object Pascal can be a powerful supplement to AutoHotkey and Windows. Whatever one can't do, the other often can do. Together, they are a great 1-2 punch in terms of ease in understanding, highly portable tools, and small executables. Though sometimes you will have to do some digging and researching to figure things out, as the languages will do things differently, it's definitely worth it.
BNOLI
Posts: 548
Joined: 23 Mar 2020, 03:55

Re: Pascal, The Powerful & Underestimated Programming Language

08 Apr 2020, 05:28

I remember (in the aftermath of Win3.11) a few 16bit afficionados :beard: created "Calmira" that was based on Delphi1 and mimicked Win95: http://www.calmira.de/ :wtf: :lolno: :eh:
Delphi1 was once bundled with a German PC Magazine at that time :lol: and I can say any delphi applications 'Close"-button (that, for whatever reason, was additionaly labled with an 'open door' icon)* made me shiver bc it was so damn ugly :sick:
Later Borland's Intra Builder was available as part of bundeled Software packages from Pearl (www.pearl.de) for about 10€ :silent:

https://www.drdobbs.com/borlands-intrabuilder-10/184415559

Image
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
SOTE
Posts: 1082
Joined: 15 Jun 2015, 06:21

Re: Pascal, The Powerful & Underestimated Programming Language

11 Apr 2020, 16:09

BNOLI wrote:
08 Apr 2020, 05:28
I remember (in the aftermath of Win3.11) a few 16bit afficionados :beard: created "Calmira" that was based on Delphi1 and mimicked Win95: http://www.calmira.de/ :wtf: :lolno: :eh:
Delphi1 was once bundled with a German PC Magazine at that time :lol: and I can say any delphi applications 'Close"-button (that, for whatever reason, was additionaly labled with an 'open door' icon)* made me shiver bc it was so damn ugly :sick:
Later Borland's Intra Builder was available as part of bundeled Software packages from Pearl for about 10€ :silent:

https://www.drdobbs.com/borlands-intrabuilder-10/184415559
Calmira is an old program to make Windows 3.1 look more like Windows 95. I'm not quite sure why people would be so addicted to Windows 3.1, but that became the case with Windows XP as well. Some people would get hooked on the OS or be very nostalgic about it. I look at as people having fun.

Delphi and Free Pascal/Lazarus are light years ahead of Delphi 1. Not to mention there are many dialects of Object Pascal (Oxygene, PascalABC.NET, DWScript, etc...), both free and commercial. Those old buttons are artifacts of long ago. But another point about Pascal/Object Pascal, is if you really wanted to, you can write your own OS with it. You could have written Windows 3.1 or a clone in Pascal/Object Pascal. For example, the classical MAC OS was written in Pascal. Nearly anything that can be done with C/C++, can be done with Pascal/Object Pascal.

Some samples of going closer to the metal with Pascal/Object Pascal- Ultibo (https://ultibo.org/), SteamOS (https://store.steampowered.com/steamos/), FPOS (Free Pascal Operating System- https://github.com/rezgui/fpos).

Embarcadero took over from Borland, and owns Delphi and their other products. In a nutshell, looks like the executives at Borland cashed out for a big payday from Embarcadero. Most of them are probably relaxing on a beach or in a beach house somewhere.

Return to “Other Programming Languages”

Who is online

Users browsing this forum: No registered users and 0 guests