Hacker News new | ask | show | jobs
by mikewarot 660 days ago
If you're wanting to go back to the roots, go back 2 years sooner, to Pascal.

Both languages have morphed over time, but I believe Pascal has much cleaner syntax, and is better suited to the modern programming environment in the form of Free Pascal.

Unlike C, Strings in Pascal are almost magic. Need to stuff a gigabyte binary in a string? I've done it. They don't need to be allocated, or managed, the run time library does that. They're copy on write, reference counted, and you don't have to allocate/free them.

Pointers are easier too... @X is the address of X, X^ is the thing that X points to

Sets, Generics, Iterators, it's all there. And then there's units, everything compiles when you need it to, and ONLY when you need it to.

Threads and multitasking seem easy to me, far easier than back in the 1988 when I wrote my own cooperative-threading library for Turbo Pascal. (Co-routines would likely be the correct name for it now)

Compilation times that are unmatched.

Yes, the time is now to return to our roots, Free Pascal. ;-)

1 comments

I have started learning programming with Turbo Pascal. Actually with BASIC. But Pascal became my favorite 25 years ago, and then moved to Borland Pascal, it was magic times - handmade games, algorithms... I felt myself a sorcerer making miracle things. Nowadays I feel myself an outcast in the world of templates, who writes his own libraries for corporate projects.

Thank you for your advice. I have not looked into Pascal long time. Can you advice some resources, repos, communities?

remember Denthor's tutorials in Turbo Pascal? https://news.ycombinator.com/item?id=8837545

http://textfiles.com/programming/astrainer.txt

would be fun to get an old dos machine going with Pascal IDE and run through all those again

Thank you. I am glad to invite you into channel on libera https://news.ycombinator.com/item?id=41355232