Live data from Hacker News

Turbo Pascal Turns 40

blog.marcocantu.com

241–250 of 271 posts

Re: Turbo Pascal Turns 40

#241
post #220

Earlier quoted context omitted.

It's biggest downside was that it was limited to producing 64KB .COM files until version 4 or 5.

This is not TP compiler limit. It's format and memory model limit. https://en.wikipedia.org/wiki/COM_file#DOS_binary_format EXE (aka MZ) is using other memory models https://devblogs.microsoft.com/oldnewthing/20200728-00/?p=10...

That's what I was saying. Turbo Pascal didn't support generating EXE files until version 4.

Re: Turbo Pascal Turns 40

#242
post #10

When I was a kid, a kindly computer store owner (who also made me a great deal on an PC-semi-compatible running MS-DOS 1.25, for approx. a hundred lawns mowed and babies sat) sold me a copy of Turbo Pascal for generic MS-DOS (no PC BIOS assumed) on 8" floppy. He transferred it to the 160KB 5.25" format that my semi-compatible used. I hope I was appreciative enough at the time, as I am now. That helped bootstrap my ca…

Okay, I'll bite :) What's this "PC-semi-compatible" of which you speak?

I remember back in the day working for a law firm that had some Wang MS-DOS compatible PCs. Note "MS-DOS" compatible, not PC compatible...they ran DOS without even trying to duplicate the IBM-PC BIOS, as Compaq eventually did.

Re: Turbo Pascal Turns 40

#243

Is anyone going to mentioned that that's not at all what Turbo Pascal looked like when it was first released? Not in 1983. The UI was significantly simpler. I remember it looking like this: https://imgur.com/EuOVL8c

You can see screenshots of some of the versions here: https://winworldpc.com/product/turbo-pascal/100

Re: Turbo Pascal Turns 40

#244
post #72

I had something called Turbo Pascal DiskTutor which if I remember correctly really helped me understand object oriented programming. I also spent quite a lot of time working on a type of rough wireframe 3d CAD editor in regular Turbo Pascal when I was in the 8th grade. I used equations I got from a little reference book my dad had brought from some garage sale or whatever to figure out how to do rotations and perspec…

It available here: https://winworldpc.com/product/turbo-pascal-tutor/1x

Re: Turbo Pascal Turns 40

#245
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…

Ah, the good old BBS days. I wrote a door library for Turbo Pascal back in '89 when I was 17 after I learned how to write an interrupt based serial driver, and then released it as shareware. It saw quite a bit of use until the mid-90's when the BBS scene fell off a cliff.

Inquiring minds need to know: what is a door library?

Re: Turbo Pascal Turns 40

#246
post #50

25 seconds to compile it? How come ?

Also, Pascal is a direct descendant of a very, very old language (ALGOL-58 from 1958). In the 1950s, HLL compilation was at the extreme edge of what computers were capable of doing and a key goal of language design was (or should have been - cough COBOL cough ) to make it as efficient as possible. By the time Ken Thompson was designing languages, hardware had improved a lot and he could make compilation efficiency a…

Technically, ALGOL-58 lead to ALGOL-60 which led to ALGOL X (1966) then to ALGOL W (1966) and then to Pascal (1970). X and W were proposals by Nicklaus Wirth and Tony Hoare as successors to ALGOL 60.

Re: Turbo Pascal Turns 40

#247

Earlier quoted context omitted.

Okay, I'll bite :) What's this "PC-semi-compatible" of which you speak?

Back in the early days, MS-DOS was very much like CP/M in that there were several different 8088 machines. The “PC Compatible” hadn’t quite exploded yet, so MS-DOS (and CP/M 86) compatibility was enough. But soon, Flight Simulator became the benchmark for compatibility, and I think the final nail was that Lotus 1-2-3 required an actual PC compatible machine. That plus the rise of clone BIOSs pretty much ended the bri…

I thought it was the BIOS that was the compatibility issue. That's one of the few proprietary parts IBM had when they released their PC. Clones were built on a reverse engineered BIOS that, for a while, wasn't quite right. I vaguely recall 90% PC Compatible computers or something like that.

Halt and Catch Fire covers this. I could be wrong though.

https://www.imdb.com/title/tt2543312/

Re: Turbo Pascal Turns 40

#248

Turbo Pascal is what got me into programming. I remember spending hundreds of German marks on a license for Borland Pascal 7.0 and later Delphi 1.0 and 2.0. I ended up developing my first “commercial” software that I sold for money. In the DOS era, Turbo Pascal was probably the easiest way to get into programming, outside of Basic. And on Windows 3.1/95, Delphi was eye-opening how easy GUI programming could be. In ma…

> fully-featured GUI program when today similarly powerful software is orders of magnitude larger in size? That's because the "fully featured" of the 90s would be barely usable today. Or to rephrase: the frameworks and programs of today are not "similarly powerful" to the ones from the mid 90s, even if you just recompiled the app from 25 years ago with the current version of your framework (theoretically ;), it would…

Yes, there's more functionality. But not orders of magnitude more. The bloat of modern software is incredible.

Re: Turbo Pascal Turns 40

#249

Turbo Pascal is what got me into programming. I remember spending hundreds of German marks on a license for Borland Pascal 7.0 and later Delphi 1.0 and 2.0. I ended up developing my first “commercial” software that I sold for money. In the DOS era, Turbo Pascal was probably the easiest way to get into programming, outside of Basic. And on Windows 3.1/95, Delphi was eye-opening how easy GUI programming could be. In ma…

Ah, the mark. It's been a while. Maybe this was just in Britain but the name of the mark was never translated into English when spoken or written, it was always just the Deustchmark.

Similarly, the pound is often refered to as "pound sterling" or "British pound" outside of Britain. I suppose it is because outside of the home country, "30 marks" and "30 pounds" are ambiguous terms without the prefix/suffix

Re: Turbo Pascal Turns 40

#250
post #149

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.

Strongly disagree. I want to have variables that only exist within an `if` block. That is something C99 got right. But Python's leaky scopes are even worse than up-front declarations.

> I want to have variables that only exist within an `if` block. That is something C99 got right.

C89 allowed you to declare variables at the top of any block, not just functions, so you could declare variables that only exist within in if block. For example:

  if (flag) {
      int c;
      while ((c = getchar()) != EOF) {
          /* code */
      }
  }
Post reply on HN