Pascal is fast in terms of compilation and runtime. It has good error handling. You can threads, do generics, etc.
Unlike Python or C, a Pascal program you write now will likely compile correctly without modifications a decade from now.
It was only after a generous amount of time from HN that I was able to get a fork working with modern compilers (barely).[4]
Experience taught me that C changed radically in the past 2 decades, what was once the popular style of code just isn't acceptable any more. Throw in the change from 32 to 64 bit CPUs, and everything just broke. Not to mention changes to AutoConf, etc.
I still love the idea of the language, but every time I think of even touching it, I still find myself wishing I could just re-write it in Pascal or Assembler.
I've had similar issues with Python, thanks to WikidPad[5], which still runs as a decade old Windows binary, but fails because of breaking changes to WxPython.
[1] https://stoical.sourceforge.net/documentation.php
[3] https://news.ycombinator.com/item?id=30957273
If you're hell bent on Pascal then consider having it transpile to javascript
https://www.embarcadero.com/products/delphi
Free Pascal compiles to Windows, Linux, MacOS, iOS, BSD, DOS , OS/2, AIX, Android, Haiku, Nintendo GBA/DS/Wii, AmigaOS, MorphOS, AROS, Atari TOS, and embedded platforms:
If you're building something for yourself, sure dabble. I know devs who write assembly in their free time.
Delphi on a resume is a path to retirement. No-one (out side USSR) will look at your resume. Head hunters will ghost you.
Free Pascal and Lazarus are FOSS development tools to cross compile Pascal code. It is semi-Delphi compatible.
In 1985 I discovered Turbo Pascal for DOS in High School on IBM PC-XT systems. Pascal has a large library of code you can borrow from or use in your code. I think it is a good language for cross compiling.
Recruiters would say "Oh.. okay" and then ghost me.
Learning Rails and JS, and head hunters are calling me. (back in 2010's)
Delphi is a career death sentence, I assume Pascal would be the same.
As someone says elsewhere Javascript is good cross-platform, but AFAIK it's an interpreted language, and may not run as fast as a compiled language.
You need to look at the pros and cons, and your use-cases.
Don't fight the JS beast. Just join it!
0: https://github.com/BrowserBox/BrowserBox and https://github.com/00000o1
I know for LLMs and neural networks, a language that specializes in vector operations is best (and that's not JS nor Pascal), but outside of that I think JS/TS wins.
Pascal will be a nightmare to hire for. No way a dev wants to become an expert in this lang, getting their next job will be super hard. Devs I know who can code in it, keep that bit off their CV's.