Live data from Hacker News

Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

techtinkering.com

11–20 of 118 posts

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#11
post #8

Hmm, I started reading the Wikipedia article on the Pascal programming language. I was reading about the pointer types and saw a 'with' statement... Where did I see something like that before?... Yes, JavaScript! Where it is highly discouraged to use. How is it like in Pascal?

It is discouraged in Pascal as well. Can give really nasty surprises with scoping / debugging. Well to me it is mostly gossip as I refuse to use WITH in my Pascal code so no practical experience.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#12
post #9

I really wonder how Pascal and the Pascal family of languages, including modula/oberon and ada, how they became niche and how java and c++ took over the world?

Free and Open Source languages cost less than commercial languages.

I remember that Janus Ada for DOS cost thousands for a license. Java and GNU C++ were free.

Now Microsoft has the Community edition of Visual Studio for free C#, Visual BASIC.Net, C++ and other languages.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#14
post #7

The first software "product" that I sold was created using Turbo Pascal running on DOS. I was in high school at the time. It was designed for an Orthodontist who wanted to input (using a tablet with a cross-hair "mouse") about 20 points from an X-ray of a patient's head, then perform some calculations on the geometry to predict how the jaw bones and teeth were going to develop as the patient gets older. To this day I…

Your comment comes as a kick in the gut to me. I feel the same but didn't realize it until I read your comment.

For me, programming has become largely unappealing since the advent of cloud computing (which happened shortly after I entered the market). I really miss the first years of my career.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#15
post #11
post #8

Hmm, I started reading the Wikipedia article on the Pascal programming language. I was reading about the pointer types and saw a 'with' statement... Where did I see something like that before?... Yes, JavaScript! Where it is highly discouraged to use. How is it like in Pascal?

It is discouraged in Pascal as well. Can give really nasty surprises with scoping / debugging. Well to me it is mostly gossip as I refuse to use WITH in my Pascal code so no practical experience.

Heh, thought it was from Lisp. No problem with scoping there.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#16

This is the environment where my programming really took off from amateur to, well, less amateur. It was so fast to compile and so ergonomic compared to the alternatives. Great stuff.

Me too! Pascal has a natural "flow" that I lost when I transitioned to C.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#17
Pascal was one of my earliest exposures to programming.

MS just released Windows XP, I was in high school. Back in those days, people used Basic, Pascal, and C for programming competitions.

Already had some experiences with Basic, and found C to be too "low level" for my taste, I picked Pascal. Next year, I jumped into Delphi: learning Win32 GUI basics and some database programming with MySQL. Probably pretty advanced for a high school kids, since most of my friends were interested in music or games :)

I never used Pascal/Delphi for work though, because Java has been a major player in mobile development scene (J2ME -> BlackBerry -> Android....).

One of the things I appreciate about Pascal compilers is: blazing fast compile time. And I think it still applies to FPC (Free Pascal Compiler).

You can rebuild the whole compiler + basic libraries from scratch under 5 minutes. Can't say the same thing about GCC. Well the last time I did this was in 2014 (or 2015?), though.

Now, if I want a native compiler with fast compilation speed, I'd pick Go or Nim.....

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#18
post #11
post #8

Hmm, I started reading the Wikipedia article on the Pascal programming language. I was reading about the pointer types and saw a 'with' statement... Where did I see something like that before?... Yes, JavaScript! Where it is highly discouraged to use. How is it like in Pascal?

It is discouraged in Pascal as well. Can give really nasty surprises with scoping / debugging. Well to me it is mostly gossip as I refuse to use WITH in my Pascal code so no practical experience.

It’s different in Pascal l, iirc: in JavaScript with has dynamic scope in and affects every function you call inside the work statement; in Pascal, it has lexical scope. I used it all the time in Delphi and don’t recall any real issues.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#19
post #17

Pascal was one of my earliest exposures to programming. MS just released Windows XP, I was in high school. Back in those days, people used Basic, Pascal, and C for programming competitions. Already had some experiences with Basic, and found C to be too "low level" for my taste, I picked Pascal. Next year, I jumped into Delphi: learning Win32 GUI basics and some database programming with MySQL. Probably pretty advance…

Java, .NET [0] and D do it for me.

But I do share a similar Pascal story, just a decade earlier. :)

[0] - People keep forgetting there are AOT toolchains (and JIT caches) for them.

Re: Turbo Pascal: A Great Choice for Programming Under CP/M (2013)

#20
post #7

The first software "product" that I sold was created using Turbo Pascal running on DOS. I was in high school at the time. It was designed for an Orthodontist who wanted to input (using a tablet with a cross-hair "mouse") about 20 points from an X-ray of a patient's head, then perform some calculations on the geometry to predict how the jaw bones and teeth were going to develop as the patient gets older. To this day I…

Your comment comes as a kick in the gut to me. I feel the same but didn't realize it until I read your comment.

For many years, I'd get frustrated with jobs where the projects were invariably limited to copying and caching data. I kept moving from one job to the next, hoping to find something better. Life is better now that I'm no longer searching for that elusive unicorn.
Post reply on HN