Live data from Hacker News

Turbo Pascal Turns 40

blog.marcocantu.com

131–140 of 271 posts

Re: Turbo Pascal Turns 40

#131
One of the best things about Turbo Pascal was having to declare all variables upfront at the beginning of functions.

I really don't know why languages like C, Java or JavaScript started to allow variable definitions everywhere. Needing to declare variables first leads to much cleaner functions.

Re: Turbo Pascal Turns 40

#132
Man - such memories. I used this for the first time in a commercial software product for Geophysical forward modelling of gravity and magnetics. It was such an amazingly fancy system at the time - the first "real" development system I'd ever used.

Byte Magazine, Philippe Kahn, Chaos Manor..

Re: Turbo Pascal Turns 40

#133
I started coding in C. Things were difficult to me. Luckily we had a good professor who switched our programming learning to Pascal. That's when coding started to be clear and simple to me and for my classmates.

Niklaus Wirth has done an immense work. From Euler to Oberon, passing by Modula, he is a great visionary and a decades determinant mind.

Re: Turbo Pascal Turns 40

#134
My high school started offering it's first programming course in 1988. It was in Turbo Pascal, and it was being taught by a math teacher who knew absolutely nothing about programming and was learning out of the book (Borland Turbo Pascal 5.0 [still have it]) at the same rate we were. The classroom was basically a computer room lined with PCs that we all sat in front of. These PCs were equipped with 5 1/4" drives as well as 40 MB hard drives. Being the "hackers" that we were, we downloaded the original version of nethack (early rogue offshoot) off of a BBS with our 1200 baud modems, brought it to school on 5 1/4" disks, loaded it onto the hard drives, and started playing it while the teacher sat at the front of the room with her nose buried in the book, trying to figure out how to learn enough Pascal to offer instruction. Unfortunately, after a while, these mysterious black rectangles started randomly appearing on the screen, and the PCs started experiencing performance issues. Nobody could figure it out. After many months, it was determined that we had infected all of the computer with the Jerusalem virus (in 1988!). Soon after, a school-wide prohibition on installing your own software was implemented (though not followed).

Re: Turbo Pascal Turns 40

#135
post #32

Wow I wrote a lot of Pascal when I was a kid. I then did a bit of C but didn't like it much, and moved onto Delphi. It hadn't occurred to me that Pascal is actually younger than me, though not by much.

I also learnt Turbo Pascal before Turbo C (in high school days: 2001-2004). Eventually I knew C had a major selling point: Linux/Unix.

Pascal? Limited interest among system/OS kernel programmer nowadays. Still a fine language for building applications, though.

Re: Turbo Pascal Turns 40

#136

Earlier quoted context omitted.

Woah. Had no idea he was responsible for Turbo Pascal

And Delphi, where at least he tried to do something with strings hah. Never got used to them, and never really liked Wirth languages, but respect is due of course.

Delphi strings were really well implemented. Garbage collected (RC), multithread safe, length in first integer, fast, make them as big as your memory could handle. Reduced bad memory pointers a lot compared to competition at the time. Didn't handle the Unicode transition well: but virtually no languages did.

Re: Turbo Pascal Turns 40

#137
post #28

My first exposure to TP was when I pirated it off a warez BBS in the winter of 93 at the age of 14. The raw power I felt when I compiled my own EXE in contrast to running just a .BAS file was enthralling! I started modding Renegade BBS and writing door programs. I tried to, unsuccessfully, create worms, Trojans and viruses. It changed my life and set me on a course for where I am in tech today. Moreover I’m reformed…

That throws me back. Being a teenager without any real understanding of compilers, interpreters etc., being able to create my own EXE file in TP4 felt like having superpowers - like being a real(TM) programmer :)

A few years later at 16, I actually got paid for developing a small app for managing my dad's customers, paid by the company he worked for. Part of that money went into getting a legal version of TP6.

Good times :)

Re: Turbo Pascal Turns 40

#138

It's hard to overstate just how much faster Turbo Pascal was than its competitors. So fast that it was hard to believe it wasn't cheating in some way. And then the resulting program was faster too. A tour-de-force of its day, and it deserved all the acclimation that it got.

Delphi, the successor of it still does that. Here is a link to an article about having a real project that contains a bit over a million lines of code. Has a video in it as well, and the comments there also discuss the times regarding Win64 compilation times:

https://www.tmssoftware.com/site/blogold.asp?post=759

Re: Turbo Pascal Turns 40

#139

The main thing I recall about TP was that it came with simple, easy to understand code examples for every function that were organized logically and easy to find and use. So as a teenager who barely understood basic I could teach myself TP without the internet, just using the IDE. So many modern systems do not have anything even close to this. I wonder if its inherent in the nature of the simpler x86 DOS based system…

Processing (P5) had this: you can select any string of text in its IDE anl search for it in the docs, and if it's one of the built-in functions or constants it will open the associated static html page that came installed with the software, so no internet nor server required. And despite being offline you can still navigate the docs too. This feels a lost basic skill in static site generation these days. It was the o…

You speak in past tense but isn’t Processing still in use? I distinctly remember using it to program my Arduino just five years ago.

Re: Turbo Pascal Turns 40

#140

Turbo Pascal was the first "real" programming language I learned past 6809E ASM, structured basic flavors and batch/shell back in the very late 80s. When I went to college for CS in the early 90s, they were still teaching the first year of classes in Borland Pascal so that turned out to be very useful experience. A few years later, my Pascal background sailed me into a half-decade stint as a custom app dev working wi…

In my country Delphi was the most popular dev environment by a mile. It was really bizarre, with most of the world going for VB 5 and we in Delphi. It always seemed to me like a fantastic environment but for some reason it only took off in a couple of markets (my perception as an outsider).
Post reply on HN