Slashdot Mirror


30th Anniversary of Pascal

GrokSoup writes "UC San Diego is holding a public symposium on Friday, October 22nd, honoring the 30th anniversary of the Pascal programming language. Oh the memories of undergraduate bubble-sorts ..."

108 of 587 comments (clear)

  1. More serious apps... by grub · · Score: 5, Informative


    Pascal was more than just undergrad bubble sorts. The original Mac had all the hooks and development stuff in Pascal. If memory serves the Mac was the largest Pascal project going. Using C (Lightspeed C, circa 1986 or so) was a real bitch on the machine.

    --
    Trolling is a art,
    1. Re:More serious apps... by JPriest · · Score: 5, Informative

      Well there is Object Pascal which Delphi is based on. Delphi is losing popularity but is a very good (and underrated) language. The first GUI applications I made were in Borland Delphi.

      --
      Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
    2. Re:More serious apps... by hh1000 · · Score: 2

      I think Pascal played a huge role in successfully getting the first Macs to work as well as they did.

    3. Re:More serious apps... by MouseR · · Score: 2, Interesting

      The original MacApp framework, in the 80s and early 90s, was also based on Object Pascal before Apple moved the code to C++.

    4. Re:More serious apps... by Anonymous Coward · · Score: 5, Informative

      Actually, the chief designer of C#, Anders Hejlsberg, was the chief architect of Turbo and then Object Pascal. He took many ideas from Object Pascal into C# and .NET.

    5. Re:More serious apps... by ChaosDiscord · · Score: 5, Interesting
      Pascal was more than just undergrad bubble sorts.

      Though the world would have been a better place had it been so limited. My pet peeve was the weirdly brain dead default string implementation. Strings weren't null terminated, instead the length of the string was stored. That's a good idea. A bad idea is using the first byte of the string to hold the length. 8 bits to store the string length means a maximum string length of 255 characters. I worked on a large project that had originally been written in Pascal. We used p2c to convert it and maintained it in C. An early task was removing the 255 character long string brain damage and replace it with intelligent strings (in our case C++'s generally good and absolutely superior to Pascal's std::string). Still, I got to read and occasionally maintain the Pascal master for a variety of reasons. The code dealing with strings was always irritating. Sometimes it just ignored the problem (creating potential buffer overruns), sometimes it just crudely limited the string length (meaning, for example, that you couldn't have a URL longer than 255 characters), and sometimes it used some weird chained string extension that I never quite understood. Mac programmers I know told me that the 255 limit was pervasive throughout MacOS as late as MacOS 9. Most unfortunate.

      (To be fair, it did seem like a pretty good language, and I really dug the "with" idiom. A healthy revision (that may have happened, I don't stay up to date on Pascal) could have turned it into something more mainstream and successful. Hell, let's be honest, I just wanted to bitch about the stupid strings...)

    6. Re:More serious apps... by Retric · · Score: 4, Informative

      I was coding in Pascal today. It's just about the oldest GUI program I know of and it still works. It's a single app that handles a flat file database, a real time system for job dispatching with a great GUI, payroll, redundant backup over the network, job capture ect. And it's still readable after 14 years. Damm to bad Pascal lost out to C/C++.

    7. Re:More serious apps... by BorgCopyeditor · · Score: 2, Funny

      Bah! 255 bytes ought to be enough for anybody.

      --
      Shop as usual. And avoid panic buying.
    8. Re:More serious apps... by mertner · · Score: 5, Informative

      Yes, the 255-length limit on strings can be bothersome, and to address it a new dynamic string type with a 32-bit length was introduced in Delphi 2: AnsiString.

      That is 7 Delphi versions ago, btw, so it's not exactly new any more :-)

      The advantage of the "Short" strings is that they can be allocated on the stack and thus have no memory manager overhead, pointers etc associated with them - which makes them simple to use. And many strings *are* less than 255 chars, always.

      If you need longer strings, use Delphi 2 or later. The AnsiString implementation is certainly heads and shoulders above the std::string from the STL, which I have found to be astonishingly inefficient several times.

      I guess it's all a matter of taste :)

      --
      -- As long as the answer is right, who cares if the question is wrong?
    9. Re:More serious apps... by Lars+T. · · Score: 4, Funny

      Two words: signed char -Hell yeah, now that makes sense.

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    10. Re:More serious apps... by aled · · Score: 3, Insightful

      my two words: buffer overruns.

      --

      "I think this line is mostly filler"
    11. Re:More serious apps... by Pseudonym · · Score: 2, Informative

      And remember, TeX is still written in Pascal.

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    12. Re:More serious apps... by Why+Should+I · · Score: 3, Insightful

      Dude,

      You've got issues.

      Are you suggesting that because Java implemented Vector in it's API library (which, by the way is now ArrayList in Java as well) that it somehow has a right to be the only language that implements Vector, and therefore call all other languages that implement vector a rip off?

      Vector is a Collection, it's a concept that all people learn when studying computer science, so it makes sense to have that kind of 'dynamic array' in your API no matter what languahe it's in (python, java or c#).

      What you're trying to say, that the subtle differences between languages are not enough to differentiate them. Yet in today's world of hi-level languages and managed runtimes, the only thing to differentiate between languages are the subtle differeces.

      Look I don't really care which language is better (in your mind or anyone elses), the fact remains that untill C# came along with the newer language constructs and features, Java didn't even bother to implement them. So at the very least, the competition is spurring on development/innovation between the two companies.

      Oh and by the way, doesn't your language also lend itself to the 'java is a rip off of C++' arguement, since they are so similar and c++ came first ?

      It's apples and oranges dude, and your agument is a total troll.

    13. Re:More serious apps... by 1g$man · · Score: 2, Interesting

      properties are done in c# almost exactly like they are in delphi.

    14. Re:More serious apps... by Reziac · · Score: 2, Interesting

      Happens I still use an ancient proprietary DOS database, because I haven't yet found a replacement that works as well for the job. And a while back I talked the coder into giving me a copy of the source code, which proved to be in Pascal.

      Now, I'm an interested bystander but not a programmer. Nonetheless, just from knowing the app well in everyday use, I can make sense of the Pascal source (even tho there's not a single comment anywhere) -- enough to have some idea what I'd like to tweak, and maybe even how to do it.

      Now THAT is readability!

      --
      ~REZ~ #43301. Who'd fake being me anyway?
    15. Re:More serious apps... by NoOneInParticular · · Score: 2, Insightful
      And let's not mention the fact that 'Vector' is a very inaccurate name for an 'Array'. Vector comes from C++ (STL), and was named thus and not 'array' simply because it was found that many legacy C and C++ programs already used the name 'array' all over the place to describe *gasp* arrays. It would have been a pain to remove all these. So now with C++ we're in the situation where std::vector denotes an array, while std::valarray denotes a vector (you know, that mathematical object that contains a few primitive types and needs to be manipulated as a whole.).

      The original Java designers apparently didn't stop to think why the this was called 'vector' in the first place and just put it in the spec, this while they didn't have legacy code to contend with. Once they found their 'Vector' was too slow for its most common use they invented something weirdly called an 'ArrayList' (which looks more like the std::vector). Now wow, that's a weird name: is it an array or a list??? They probably refrained from using Array because at that point they needed to conted with legacy code :-) Ah well, I think that nobody would argue that Java at its core is very consistent anyway (String.size, Collection.size(), T[].length?).

    16. Re:More serious apps... by SenseiLeNoir · · Score: 2, Interesting

      the reason why Borland Turbo Pascal was used a LOT was because of its hacker support amongst geek teens, especially here in Europe. We had the SWAG archives, which were accessible via BBS's.

      --
      Have a nice day!
    17. Re:More serious apps... by tigersha · · Score: 2, Informative

      An ArrayList is a list implemented with an Array internally. A LinkedList is a list implemented a slinked list. Both implement the List interface (ie they support the same operations).

      The difference is that the one has constanct time appends and inserts (the linked list) while the other one has constant time indexed lookup (the Arraylist). Both are needed because the access patterns of the collection cannot be predetermined by the API.

      The naming convention used is quite logical if you bother to look further.

      The same naming convention also goes for the other collections in the API, such as Set (HashSet ... ) and Map (HashMap...)

      --
      The dangers of excessive individualism are nothing compared to the oppressiveness of excessive collectivism
  2. Loved it!!!! by Jeffery · · Score: 5, Interesting

    Loved Turbo Pascal, learned it in high school, was even remaking the first zelda on it, but was pixelizing everything, so it looked way better... sorry but that's pretty uber geek in my mind.. that was a long time ago.. this is also my first post, so i wish to formally introduce myself to the /. community!

    --
    President Bush Supporter
    1. Re:Loved it!!!! by Anonymous Coward · · Score: 4, Funny

      i for one welcome our jeffery overlord.

    2. Re:Loved it!!!! by Anonymous Coward · · Score: 5, Funny

      Hello an enjoy your stay. Remember, you are more than just a number to us, user 810339.

    3. Re:Loved it!!!! by AndroidCat · · Score: 4, Funny

      For your first quest, locate Slashdotter #810340 and razz him for being new here.

      --
      One line blog. I hear that they're called Twitters now.
    4. Re:Loved it!!!! by Wraithlyn · · Score: 4, Interesting

      Similar experience here, made the jump to Turbo Pascal in early high school and never looked back. I really miss Pascal strings and arrays, they were so simple to use compared to say, Java. The 256 char limit and 64K data structure limit were a bitch though. Interestingly enough I was also building a "Zelda-ish" game, but it never went anywhere. Spent most of the time designing tilesets with Improces. (Anyone remember that gem?)

      For my final CS project in high school, we had to basically write an interpreter for a small set of assembly instructions. A rudimentary virtual machine, in other words. Well of course the normal approach was a simple text-prompt interface, but I used a shareware graphics library (Fastgraf?) and built a GUI right up from the bare pixel level, with multi-windowing, menu system, illustrated help, 'advanced' features like Start At and Trace, and even user selectable mouse cursors. Ah the memories.. ;) I also wrote a bunch of graphics demos that I probably still have kickin around.. wonder how'd they run today? :)

      Anyway, welcome to Slashdot! Don't feed the trolls. :D

      --
      "Mind, as manifested by the capacity to make choices, is to some extent present in every electron." -Freeman Dyson
  3. Started with QBasic by FuzzzyLogik · · Score: 2

    I've never used Pascal, I started programming in QB, went on to VB(5, then 6), then did C++, then Java, now Objective-C.

    I think when I start teaching programming classes at my old high school I'm going to start with Python so you get one language that can do both objects and procedural programming... anyone recommend otherwise? I'm just a bit curious.

    1. Re:Started with QBasic by Gentoo+Fan · · Score: 4, Informative

      You could give Ruby a shot.

  4. What do they teach in undergrad now? by Moby+Cock · · Score: 4, Insightful

    I too recall the heady days of Pascal in undergrad. Trying to explain to my lab partner how one could have an array of arrays... But that was a long time ago and I pose the question. What language is the "teaching language" now? Do they have Pascal?

    1. Re: What do they teach in undergrad now? by Black+Parrot · · Score: 3, Insightful


      > But that was a long time ago and I pose the question. What language is the "teaching language" now? Do they have Pascal?

      Pascal, C, C++, Java, ... it's about time to change again. The lifecycle of a teaching language is about the same as the period required to get a degree, virtually assuring that schools turn out a mass of BS's who are monolingual in whatever language industry just quit using.

      --
      Sheesh, evil *and* a jerk. -- Jade
    2. Re:What do they teach in undergrad now? by ucblockhead · · Score: 5, Insightful
      I find it unfortunate that Universities usually use "professional" languages like Java or (before that) C++ rather than a language specifically designed to be clear to new programmers. Unfortunately it means that students end up spending more time learning the oddities of the language than on programming in general.

      It's like teaching people to drive with semi-tractor trailers.

      --
      The cake is a pie
    3. Re:What do they teach in undergrad now? by lifeblender · · Score: 3, Informative

      Now they teach with Haskell, Scheme, Lisp, and C++. I'm not kidding about the Haskell or Lisp, at least at UT Austin. My first cs class, 307, (I skipped the basic C++ "Comp Sci II" class) was in Haskell, and man that was hard. Of course, once I learned Haskell I loved it, and __every other programming language in the world__ became easy once I took a second class in it. Other professors for the 307 class teach using Scheme. Later, I had lots of classes that used C++, one that suggested C++ or Lisp and let me use Haskell (Compilers), and a great class about ACL2 where I learned Lisp from Professor J Moore, an experience I'll never forget. So yeah, they hit us with Haskell (or Scheme) pretty early on, had a large focus on C++, and let the crazy professors teach in Haskell or Lisp if they wanted to.

      Some wackos at places like UT Dallas try to teach freshman about Java classes, but they'll learn that's not the right approach. ;) Try starting from the basics of programming, THEN move to data structures, not the other way around.

      --
      Playing pornographics games during the day is evil! Play at night!
    4. Re:What do they teach in undergrad now? by Poseidon88 · · Score: 3, Interesting

      It depends on what you want to learn. If you just want to learn how to program, then something like Pascal might be a good place to start. My problem with it is that I didn't really understand a lot of what I was doing in Pascal. I had only a weak grasp on the concept of a pointer until I took a class in computer architecture and did some assembly programming on a VAX. A language like C is much closer to the hardware level, and while that makes it much easier to do something wrong and stupid, it also means that you learn a lot more about what is going on under the hood.

    5. Re:What do they teach in undergrad now? by Hugonz · · Score: 4, Interesting
      I believe they should be using Python for teaching now. It is not masochistic and frustrating like some of the "professional" languages. You can learn procedural or OOP with it. It comes with very good documentation. It is available in Windows, unices and the Mac. It is very complete, with bindings and libs to do almost anything. It is not too verbose and strict (I'm thinking Java here)

      Pity they're going with Java for beginners nowadays...

    6. Re:What do they teach in undergrad now? by sfjoe · · Score: 2, Insightful

      I'd be interested to know what the thiniking was that made teachers switch from Pascal to $PEDAGOGICAL_LANGUAGE.
      After all, the important thing to a freshman class is to understand what's happening in a loop, or a sort block or whatever. That fundamental stuff never changes so why change the language you teach it with???

      --
      It's simple: I demand prosecution for torture.
    7. Re:What do they teach in undergrad now? by ornil · · Score: 4, Insightful

      The language guranteed to fuck you up if you've by some strange chance of fate actually programmed before getting to the school.

      If a language can do that to you, it is a language worth knowing. Most modern languages (read scripting, like Perl, Python, Ruby, etc) support many functional paradigms, like map, lambda functions, etc. They are incredibly useful, if you know how.

    8. Re:What do they teach in undergrad now? by alexo · · Score: 3, Interesting

      > I find it unfortunate that Universities usually use "professional"
      > languages like Java or (before that) C++ rather than a language specifically
      > designed to be clear to new programmers.


      Pascal was created to teach "correct" structured programming.
      When the prevalent paradigm shifted to OOP, it became outdated.

    9. Re:What do they teach in undergrad now? by Just+Some+Guy · · Score: 2, Interesting
      One of the mid-semester programming assignments in my freshman compsci course was writing a templated doubly-linked list class in C++. I completely, utterly understood the concept, and I could probably have written it in no time in 68k or x86 assembler, but that homework kicked my butt.

      The hardest part was trying to figure out when to use '.' versus '->', and the always-fun '*' versus '&'. I knew what I was trying to say, but trying to figure out how to express it in valid C++ syntax was an absolute killer at a time when I was still very new to the language. I wish our department head had discovered Python at that point.

      On the other hand, it did significantly thin out the herd of would-be compsci students. I suppose that was a good thing, maybe.

      --
      Dewey, what part of this looks like authorities should be involved?
    10. Re:What do they teach in undergrad now? by Moby+Cock · · Score: 2, Funny

      I had one for BASIC programming on my C64 and then AMIGA. It told me how to make a bunch of silly little games. It was useful in helping me understand more about computers but now I'm addicted to video games.....

    11. Re:What do they teach in undergrad now? by telbij · · Score: 4, Insightful

      The language guranteed to fuck you up if you've by some strange chance of fate actually programmed before getting to the school. Why a school, with over 50,000 people attending (second largest in the US now) and a fairly large IT department does that is beyond me. Oh wait... no it isn't. They need to employ their crazy AI professors who bust a nut using it.


      The reason they use it is because the program is based on MIT's highly-esteemed CSCI curriculum.

      If Scheme fucked you up then you didn't really know anything about programming. LISP is a pretty questionable language for real world programming, but for the little tasks they make you do in Intro to CS it's perfect. It lets you learn about recursion and the fundamental sameness of code and data without a bunch of syntactical overhead.

      Then later when they dump you head first into C for Machine Architecture and Operating Systems you can at least write good algorithms while you grapple with pointers and memory management.

      It's a hell of a lot better then teaching kids Java's class libraries or a million magic ways to do things in Perl. A CSCI degree should not teach you things you wanted to know before, it should introduce you to all the things that make a good programmer. Study hard kid.

    12. Re:What do they teach in undergrad now? by rjh · · Score: 2, Insightful

      The reason why you're learning Scheme is because you're learning computer science, not programming. If you want to learn programming, go to DeVry. If you want to learn computer science, learn Scheme.

      Want Scheme to be an object-oriented language? You can make it one pretty easily, but first you have to understand the concept of closures and lexical scope. Want to learn functional programming? You can make a Y-combinator in just a few lines. Want to learn backwards-chaining declarative logic? Under 100 lines.

      The beauty of Scheme is twofold. One, it's so minimalist that by itself it's almost useless; and two, in the process of making Scheme useful, you learn a lot about the way languages are designed and why they're designed that way. I didn't truly understand exceptions until I understood Scheme's call-with-current-continuation, for instance.

      If you want programming, go to DeVry. If you want to learn computer science, stick with Scheme.

    13. Re:What do they teach in undergrad now? by pjt33 · · Score: 2, Informative

      The University of Cambridge starts with SML, and then after a term follows on with Java.

  5. Niklaus Wirth by Black+Parrot · · Score: 5, Funny


    "Europeans call me by name, Americans by value."

    --
    Sheesh, evil *and* a jerk. -- Jade
    1. Re:Niklaus Wirth by dprovine · · Score: 4, Interesting
      "Europeans call me by name, Americans by value."

      The version of this story that Niklaus Wirth told me (via e-mail) is that it happened when he was presenting a paper in New York in 1965. He was introduced by Aad van Wijngaarden as follows:

      And now I introduce to you a man who is a European and lives in America. Back home he is known and called "by name", pronounced as "Weert", but here he is called by value, pronounced as "Worth".

      Wirth considered an excellent pun, but he doesn't take credit for it.

  6. Let me be the first to say... by GillBates0 · · Score: 4, Funny

    program Anniversary;
    begin
    writeln ('Happy 30th Anniversary Pascal. You roxxorzz');
    end.

    --
    An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
    1. Re:Let me be the first to say... by spongman · · Score: 2, Interesting

      MODULE HappyBirthday;
      FROM InOut IMPORT WriteString,WriteLn;
      BEGIN
      WriteString("Happy Birthday, Dad!");
      WriteLn;
      END HappyBirthday.

    2. Re:Let me be the first to say... by drxenos · · Score: 3, Insightful

      Or, if you really want to get anal:
      program Anniversary (OUTPUT); {* define file used *}
      begin
      writeln ('Happy 30th Anniversary Pascal. You roxxorzz') {* semicolon not need before end *}
      end.

      --


      Anonymous Cowards suck.
    3. Re:Let me be the first to say... by shish · · Score: 2, Insightful
      semicolon not need before end

      So encourages my teacher, but why? if you want to add a line afterwards, you'll need to add in a semicolon or face unexpected error messages - why not just put it there in the first place?

      --
      I mod down anyone who says "I will be modded down for this", regardless of the rest of their comment
  7. Pascal was good in... by A+beautiful+mind · · Score: 3, Insightful

    ..helping to get the basics before starting to learn c. Quite nice language, although not the best, but ive seen even an operating system in freepascal ;)

    --
    It takes a man to suffer ignorance and smile
    Be yourself no matter what they say
  8. 30th anniversary... by mwheeler01 · · Score: 4, Funny

    Hmmm and D&D just turned 30 too... coincidence?

    --
    Pretty widgets? What pretty widgets?
    1. Re:30th anniversary... by Nom+du+Keyboard · · Score: 4, Funny
      D&D just turned 30 too... coincidence?

      Only if the right brain didn't know what the left brain was doing at the time.

      --
      "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
    2. Re:30th anniversary... by Anonymous Coward · · Score: 2, Funny

      Okay, show of hands. How many people's first program was a character sheet generator?

  9. Those memories may be distorted by EriDay · · Score: 3, Interesting

    After spending a few years programming in C, I took a job programming in Pascal. I figured that it was just a matter of replacing {} with begin/end, and '=' with ':='. Boy was I wrong.

    Sometimes you need a hack, and Pascal's purpose in life it to prevent those convient little hacks.

  10. ouch! by DeepFried · · Score: 2, Insightful

    Am I the only one who felt _really_ really_ old when I read that. What have I done with the last 30 years of my life?

    --


    Who is General Failure, and why is he reading my hard disk?
    1. Re:ouch! by Fred_A · · Score: 4, Insightful

      I didn't feel old, I've just been young longer than most /. readers.

      --

      May contain traces of nut.
      Made from the freshest electrons.
    2. Re:ouch! by samjam · · Score: 5, Insightful

      Borland Pascal for Windows may have been a bit freakish but I don't see how you can say Delphi is or ever was.

      I used Turbo Pascal for DOS to write real-mode device drivers that loaded before windows did that communicated and made callbacks to windows applications written in Delphi (using the DPMI 0.9 API)

      There really was nothing that could not be done or hacked with Turbo Pascal (and assembly) and Delphi (and more assembly as needed).

      Borland DID get windows, more than MS did.

      None of MS widget wrappers around the raw windows API compare in any degree to Borlands excellent VCL (Visual Class Library) that encapsulated and extended windows in a most wonderful way.

      I've seen people program in Delphi who only know how to program in C and it looked like it. Ugly, nasty code.

      I've seen Delphi code written by people who understand object Pascal and it is a dream to behold. (I've done some good stuff too).

      The reason Delphi didn't catch on enormously is partly to do with it not being a cross platorm language (object pascal I mean) butmostly for the same reasons smalltalk, scheme, EISA and so on didn't catch on. I wish I knew what that reason was.

      Sam

    3. Re:ouch! by FireAtWill · · Score: 4, Insightful

      The reason Delphi didn't catch on enormously is partly to do with it not being a cross platorm language (object pascal I mean) butmostly for the same reasons smalltalk, scheme, EISA and so on didn't catch on. I wish I knew what that reason was.

      I think the reason Delphi hasn't become mainstream is the same reason many other excellent products haven't. Microsoft cloned it with VB and kept just close enough behind that it was acceptable to choose the un-FUD'd development environment.

  11. ah pascal by drivers · · Score: 2, Interesting

    I always did think that Pascal's notation for pointers and dereferencing was more intuitive than C and therefore less confusing for teaching algorthms and data structures. It also didn't let you write out of bounds of arrays. Good stuff.

  12. Delphi (ObjectPascal) rules. by Franciscan · · Score: 5, Interesting

    I use Pascal all day, every day. I laugh myself sick thinking how much time my C++ developer friends waste on stuff that takes days in ATL/MFC/C++ that I can do in a few seconds in Delphi. DCOM servers, GUI programming, reusable components, these are all a pain in the butt with C++. Okay, C# and Dotnet are almost as powerful as Delphi, but they have a huge runtime (like java). For my money, nothing can touch Delphi/ObjectPascal/VCL for efficiency, productivity, quality, easy deployability with NO DLL HELL and no runtime installation issues.
    WP.(Franciscan)
    (P.S. I never ever shipped any app with the BDE in it. That, and the Database Desktop, are the crappiest things ever to come out of Borland. They are still in the latest native Win32 version of Delphi, Delphi 7, but at least you don't ever have to use them.)

    1. Re:Delphi (ObjectPascal) rules. by hh1000 · · Score: 3, Interesting

      Delphi Rocks! But Borland's managment just doesn't seem to get it. Go over to the Borland news server and there is a sense of misery and frustration over the way Borland handles this product and it's sibling Kylix.

    2. Re:Delphi (ObjectPascal) rules. by killjoe · · Score: 4, Interesting

      Yes Delphi rocks. It's another one of those great technologies that should have ruled the world but didn't.

      FYI there are attempts to make an open source version of it using freepascal. I have never tried them but I'd be interested in the experiences of anybody who has.

      --
      evil is as evil does
    3. Re:Delphi (ObjectPascal) rules. by Kr3m3Puff · · Score: 2, Interesting

      I agree about the showing off to VB and C++ developers that have to deal with MS crap... I can run circles around them, and I use Delphi just for personal coding.

      I also agree BDE SUCKS, I have long used Allround Automations Direct Oracle Access for database access. That rocks, fully integrating the OCI drivers easily into your application and it there is a Kylix and Delphi version as well as I am sure a .NET version won't be too far behind for Delphi 2005.

      --
      D.O.U.O.S.V.A.V.V.M.
  13. Re:Bah! by Big+Mark · · Score: 4, Funny

    Flippin' middle-agers and their line numbers, back in the days of fortran we had whitespace-sensitive code and we were grateful for what we had!

  14. Hey, it legitimized the PC by ibn_khaldun · · Score: 2, Insightful

    begin
    Seems like a limited (and rather verbose) language now, but it was UCSD Pascal for the Apple II and shortly thereafter Turbo Pascal for DOS that made it possible to create sophisticated and transportable programs on personal computers without spending a fortune on development tools. Prior to that point it was either assembly-level hacking (which produced some amazing work, but didn't generalize well) or BASIC (no more need be said...)
    end;

    --

    "All successful systems accumulate parasites" -- Hal Hixon

    1. Re:Hey, it legitimized the PC by jawtheshark · · Score: 2, Funny
      Sorry... Can't resist:

      "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." -- Edsger Dijkstra

      --
      Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
  15. So cool... by ucblockhead · · Score: 4, Interesting
    UCSD Pascal (not the first Pascal, mind you) was such an utterly cool system. It was my first real language. (I knew Applesoft BASIC and assembly, but...) I learned it in 1984 as a sophmore at UCSD.

    Way, way ahead of its time. It was an IDE and the code it generated was bytecode, not native code. I love hearing all the Java weenies talk like the Java VM is somehow a "new" concept when P-code was availble for a real language in the early eighties.

    I wrote a "conquer the galaxy" game in UCSD Pascal when I was 19. Such fun, dealing with overlays to fit it in the 64k of my Apple ][+. I never sold it, alas, so dreams of become a rich game programmer never panned out.

    It's funny...it also had the last IDE I actually liked.

    Unfortunately for UCSD, they priced it too high, and Phillipe Kahn came in and stole the PC Pascal market. Of course, the grad students who actually designed and wrote the system never saw a penny.

    --
    The cake is a pie
    1. Re:So cool... by Tackhead · · Score: 2, Interesting
      > I wrote a "conquer the galaxy" game in UCSD Pascal when I was 19. Such fun, dealing with overlays to fit it in the 64k of my Apple ][+. I never sold it, alas, so dreams of become a rich game programmer never panned out.

      At least one guy did. Wizardry was done in UCSD Pascal. Even in 1980, it surprised the hell out of me to see a commercial game done like that.

    2. Re:So cool... by starling · · Score: 2, Interesting

      I loved the way the compiler would fix simple syntax errors for you, like a missing ';' at the end of the line. It print a warning, attempt to fix the problem, and carry on compiling. What's more , when it tried to fix something it was usually right!

      Couldn't seem to handle getting rid of a ';' before an 'else' though (one of the more brain-dead features of the Pascal syntax IMO).

  16. I wrote my Go playing program in UCSD Pascal by MarkWatson · · Score: 2, Interesting

    "Honinbo Warrior" was written on my Apple II (serial number 71) using UCSD - a very civilized programming environment indeed.

    The Apple II also had a fairly good interpreted Lisp (Pegasis Lisp) that I used a lot way back then. The Lisa editor/macro asembler was also great (as long as I am getting nostalgic, what about Bill Budge's great 3D library for the Apple II).

  17. Why Pascal is not always my favourite language by kompiluj · · Score: 2, Informative

    Some of those issues have been solved with advent of the Turbo/Object Pascal by Borland which is currently the most used Pascal dialect (for example the FreePascal uses it) which has taken many things from C. However, a still worthy read.

    --
    You can defy gravity... for a short time
  18. Memories of Pascal by Eberlin · · Score: 5, Insightful

    It has been ages since I've done anything in pascal...but my programming language progression went from BASIC, QBASIC, then Pascal. I've moved to other languages from there but it was quite the eye-opener. Variables had to be declared, the "uses CRT" was quite the drastic change from what I had been used to (if I remember correctly), and the overall approach was enlightening.

    Now there are other languages to learn with (and a few of those aren't just for educational purposes). Java, PHP, and C for example. Even Delphi has kept Pascal alive and relevant.

    Back then, I had to find...um...creative ways to be able to program and compile Pascal code. With all the freely available IDEs, compilers, debuggers, etc. around now for all these various languages (especially through OSS), things have become more accessible.

    Pascal was the language that brought me out of my BASIC habits...for that I'm definitely grateful.

  19. Hi, Jeffrey by ggvaidya · · Score: 3, Funny
    Welcome to Slashdot!

    All your productivity are now belong to CmdrTaco. Hope you like it here!

    Cheers,
    Gaurav

  20. Pascal was great... by disbaldman · · Score: 2, Interesting

    Pascal was great during the early 90s... It brings back memories of BBSes with 300-2400 bauders. Back then, this language was probably the most popular structured language. Many free and commercial BBS programs and doors were created using Pascal, using the free DDPLUS door kit for 7.0. So it wasn't just used for bubblesorts, it drove much of the BBS community!

  21. Memories Indeed! by serutan · · Score: 2, Interesting

    Back in the 80s for me it was Turbo Pascal, originally a $39.95 wonder-package on a single 5-inch floppy. Compiled a whopping 7000 lines a minute on my 2Mhz 8080.

    My never-ending project to simulate a D&D world led me to explore the mysteries of virtual method tables, linked lists, B-trees, and that other structure -- a mesh of nodes without a head -- what was it called?

    My favorite TP achievement was a homegrown BBS that I ran for 2 years on my 1200-baud modem. I had no hard drive, just two 360K floppy drives. So the system and programs were on one and the msg files were on the other. There were 10 message boards. I gave some users sysop privs on individual boards. Three of them ran RPGs -- AD&D, Traveller and Robotech -- one woman ran hers as an adults-only hot tub/bar. Eventually I wrote an adventure game parser as a unit that would plug into the BBS. I only created one game for it, but many people played it through to the end and commented on it. Good memories of the pre-web era.

  22. Trademark Violation by TheGilmanator · · Score: 2, Funny
    I'm sorry, but did you clear the use of the trademarked "UC" with the state of California before posting it?

    Wouldn't want to get shut down, would you?

    --
    - John
  23. I thought I knew C... by turgid · · Score: 2, Interesting

    ...until I tried the Pascal family of languages (Modula-2 actually). The strictness imposed by Pascal and its decendents really forces you to think carefully about what it is you're trying to code. Most of my early C programs worked by luck rather than design and would produce pages of warnings on compilation. After learning a bit of Modula-2, I became a much better C programmer (and programmer in general). Many years later I had to program in Turbo Pascal 7.0 (a predecessor of Delphi) and found it very pleasant (despite DOS and Windows). Pascal has come on a long way in 30 years and spawned Delphi, Modula-* and Oberon-*. They're well worth investigating.

    1. Re:I thought I knew C... by Profane+MuthaFucka · · Score: 2, Interesting

      I learned Modula-2 before I learned C, on my Atari ST. It was an excellent little language. I remember that I used to have to swap floppies in the middle of every compile so the last stages of the compiler could be loaded.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
  24. A teaching language by ucblockhead · · Score: 2, Insightful

    It is a teaching language, so the main design goal is to force students to do it right, rather than hacking. Once they learn how to do that, they can the use a profressional language hacks. In other words, first you have to learn the rules, then you have to learn when to break the rules.

    --
    The cake is a pie
  25. Borland... by Kr3m3Puff · · Score: 2, Informative

    Some of us have never given up on Pascal. I still use Delphi and Kylix to this day. Meets my needs and Pascal makes a nice OO programming language, something that dates back to Turbo Pascal 7.

    There is a ton of third party support for it and you can do just about everything a little easier then just about everything else. All my DSOs for Apache are done in Kylix...

    --
    D.O.U.O.S.V.A.V.V.M.
    1. Re:Borland... by Kr3m3Puff · · Score: 2, Informative

      Well, it kinda sort of is. The last update was Kylix 3 which brought it in line with Delphi 7, which was the last navtive Win32 version, until the yet to be released Delphi 2005. Delphi 8 was .NET only. Delphi 2005 merges Win32, .NET (both OO Pascal and C#). I don't think they are planning a Kylix release after 3, but I might be wrong.

      I still find it very cool and useful, and I am still using Delphi 7 for Win32. I have avoided Delphi 8 because it was only .NET (though it came with Delphi 7). On the FAQ for Delphi 2005 it asks if the .NET application will work on non Windows OS's and they say "well, in theory there is no reason they won't, but we won't test or approve it". So it is likely Delphi 2005 .NET applications will work under Mono. Cool!

      --
      D.O.U.O.S.V.A.V.V.M.
  26. One more recollection by kompiluj · · Score: 2, Interesting

    What was at first the so called BSD (Berkeley Software Distribution) by Bill Joy? Essentialy it was a Pascal Development System for UNIX bundled with UNIX itself. The improvements in UNIX were made by Joy in order to have an easy to use Pascal system. Don't believe? Look here.
    Well Pascal was at that time really important.

    --
    You can defy gravity... for a short time
  27. Pascal... by jeif1k · · Score: 5, Interesting

    It's unfortunate that Pascal gave type safety such a bad name: the language, as it was usually used for teaching, had such limited functionality and imposed such a straight-jacket on people that several generations of programmers thought type-safety made languages useless and that they needed to use something as unsafe as C to get any work done.

    Yet, commercial implementations of Pascal were in pretty common use, had all the low-level facilities of C, and yet gave programmers a decent amount of type safety and runtime error checking. In fact, a lot of the early Macintosh software was written in ObjectPascal, and TurboPascal was very popular and very useful on the PC. Even the Apple II ran a pretty good Pascal development environment (in 64k of memory), with a decent screen oriented editor, menu bars, and an integrated compile/edit/run/debug system. Pascal syntax also was quite a bit less error prone than C/C++'s. Having pointer dereferencing be a postfix operator alone is just so much more sensible.

    Perhaps much more interesting than Pascal, historically, are Algol-60, Simula-67, and Algol-68, which are related to it; Pascal was probably never intended to compete with them, but rather serve as an educational introduction to them and their successors. Around the same time, many fundamental ideas in programming languages were developed and implemented, including APL, Lisp 1.5, Snobol, PL/I, Smalltalk, and Prolog. Window systems, GUI toolkits, constraint-based programming, MVC, and other concepts we take for granted today followed shortly thereafter.

    1. Re:Pascal... by jejones · · Score: 2, Informative

      Especially Algol 68, the best programming language you probably never used, a victim of nasty (and not necessarily accurate) propaganda. I urge all to track down a copy of the History of Programming Languages II proceedings and read Charles Lindsey's excellent and bittersweet paper on the history of Algol 68.

  28. Um, how about Pascal? by FireAtWill · · Score: 3, Interesting

    One of the thing I like the most about Borland's Delphi is that its Object Pascal allows you to be procedure or object oriented. It also has the best IDEs around, and allows you to do anything you want (web services, device drivers, console apps, database apps, office tools, servers, clients, etc, etc, etc). Truely a Swiss army knife.

  29. To celebrate, by Anonymous Coward · · Score: 2, Funny

    I'm going to go out tomorrow to buy some string.

    I'll cut off pieces, and at one end of each piece, write down how long that particular piece is. :)

  30. Niklaus Wirth's languages by plcurechax · · Score: 4, Informative

    Actually I (mildly) regret that I was an advocate for C and C++ in the university undergrad CS programmes, because at the time I personally enjoyed programming in C more than Pascal. Looking back I think Pascal was an excellent language for students, and I wish Niklaus Wirth's other languages, such as Module-2, Oberon caught on more. I think they were evoluting in the right direction of promoting good programming style, for programming in the large.

    Rather than quick coding by the seat of your pants which C encourages or at least strongly tolerates.

    1. Re:Niklaus Wirth's languages by MouseR · · Score: 2, Informative

      That's Modula-2. And Modula-3, although this one didn't go anywhere much.

      I've actually written two commercial applications in Modula-2. Did you know that MetroWerk's CodeWarrior is actually a descendent of their original product (and company name) that was then known as MetCom Modula-2? I still have those books in a box. First language I actually coded in for the Mac. That was in 88.

  31. Re:Why didn't it succeed? by mikael · · Score: 2, Informative

    we used both Pascal and C for our undergraduate courses. The editors (once in 43/50 line mode) were just as good as Microsoft Visual Studio (especially since they had the [alt]-[C] rectangular region copy/cut/paste option).

    The problem with Pascal, was that it wasn't cross platform with other operating systems (Solaris, HP-UX, AIX, whatever...). And it didn't have access to the windowing/networking libraries that C programs had on UNIX (It wasn't until 1993 that Microsoft starting including TCP/IP with PC's).
    Accessing any other libraries on the PC required 'C' bindings to be defined anyway, which of course required pointers to be handled).

    Any Pascal programs for the PC were also hobbled by the 16-bit memory segment boundary limit, which
    caused many problems for applications with large amounts of data.

    --
    Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
  32. Re:Why didn't it succeed? by BrakesForElves · · Score: 4, Interesting

    IMO: C surpassed Pascal because:

    1) It's much easier to write a C compiler than a Pascal compiler, therefore the (early) availability of the C language on new platforms became a near certainty.

    2) It didn't take project and product managers long to realize that in the era of Moore's Law, platform flexibility had great value. A project stuck on an obsolete platform due to the unavailability of its language on a revolutionary new platform was doomed, perhaps prematurely.

    So its portability and ubiquity were C's most significant advantages over Pascal, back when there was a realistic contest.

    3) For a time, executables written in C were likely to be considerably faster than those written in Pascal. This was a byproduct of the re-use of the C compiler code itself, versus fresh (read: immature) attempts at Pascal compilers. The C compiler cores got better with each processor port, but the freshly-written Pascal compilers often were not very good.

    Today on the x86 platform with Borland's highly-refined 8th-generation compiler core, executables built from well-written Pascal are as fast as those built from coherently-written C, in my experience. It may be possible to write incredibly concise C that'll be a hair faster than the same thing written in Pascal, but arguing that difference is a fool's errand in the days of 4GHz rocket-ship machines executing septillions of NOPs waiting for something to do.

    Personally, I choose Delphi these days over C, because I write and support huge projects. It is incredibly easy to pick up Pascal source and quickly figure out exactly what it does. That's the first (and most crucial) step in any software maintenance, and I find that Pascal's support cost savings more than over-balance any possible advantages I've ever realized from using C. When I'm writing something that needs to be extremely fast, I drop into inline assembly, but everything else I code in Delphi these days.

    --
    About the word "if": If bullfrogs had wings, they wouldn't bounce around on their little green butts.
  33. Re:Why didn't it succeed? by hchaos · · Score: 2, Informative

    It succeeded long enough for Borland to make Delphi 2005. I've always preferred Delphi to C++, because it has almost all of the features of C++ (the most notable lack being macros), plus it has much better enumeration and set handling (mainly, because it has enumeration and set handling).

  34. I don't think this is correct... by kjones692 · · Score: 2, Funny

    There have been newtons per square meter for much longer than 30 years...

    *ducks*

    --

    Love the Third Amendment?
  35. OMG! you too! by museumpeace · · Score: 5, Interesting

    Mac Pascal, Lightspeed C! I thought I was the only living person who climbed that learning curve. Problem was; it turned in to a learning cliff that I then fell off. I was good for nothing but assembler and BLISS for years until Pascal came along. This means we are due for a birthday party for the original MS-Basic pretty soon.
    But didnt Pascal lead people to think of P-code which foreshadowed Java bytecode? a link off the article's link seems to agree with my memory...so i better not read it too carefully;)

    and I certainly didn't use pascal just for academics. When I execavated the basement hole for my house, on an ostensibly unbuildable scrap of bedrock-studded land, a pascal contour mapping program that I wrote detected the one spot where the bedrock would be flat and need no blasting...back hoe guy was amazed an amateur could show him right where to dig.

    --
    SLASHDOT: news for people who can't concentrate on work or have no life at all and got tired of yelling back at the TV.
  36. Function Nesting by Aidtopia · · Score: 2, Insightful

    There's one thing I really miss about Pascal: nested procedures and functions. Being about to write a little utility function in the scope of the function it helps is just so elegant. You don't have to pass a bunch of parameters to get them in scope. Nobody else can miscall your utility function because it's not out in the global namespace. It's immediately clear to people reading your code that it's just a subordinate helper and to which function it belongs.

    Function nesting is a feature sorely lacking from languages like C. It's not to hard to work around this limitation in an OO language, but the solution is still not as elegant or efficient.

    And even after 15 years of C and C++, it still makes more sense to me to use = for comparison and to have a special symbol like := for assignment.

  37. Today by GeekDork · · Score: 4, Funny

    Today, we have Python, and whitespace-sensitive code is fucking BACK!

    --

    Fight hunger. Filet a politician and send him to a 3rd world country of your choice.

  38. LISP at MIT by peter303 · · Score: 2, Informative

    At MIT the required first computer course uses the 47-year old LISP language, at least the object-oriented, modular version called SCHEME. I guess this partially intertia, having done this since the 1970s. All electrical engineers and computer sci majors are required to take this course. That can be 40% of MIT undergrads in popular years.

  39. I used Pascal( could you pass me the Geritol?) by d3cr33p · · Score: 2, Interesting

    It is a riot to read through all these posts on Pascal.

    When I was knee high to a grasshopper I used Pascal to...

    I remember once using pascal in high school to...

    Man, Pascal is such a great language! Why I remember the last time I used it, it was just like yesterday...25 years ago...

    Cut me some slack! Yes, it is a good language, I even have used it from time to time. But the adjectives pleasurable, cool, awesome, etc., are not what I would use to describe the experience. Perhaps okay, humdrum, yawn and eh? are some words I could use.

    I know that people still use it but Borland/Inprise (yeah, remember the Inprise fiasco?) seem to do a real good job killing it. In fact, I would go so far as to suggest that Borland is Delphi's worse enemy.

    I won't go down the list of things I hate about the language or Delphi, but if I were looking for a language to use for my next project, and I read the posts here, I would NOT choose a language that seems to have only fond memories going for it (btw, try doing a search for books about Delphi on Amazon).

    If Delphi is so good and [ any language pascal users hate ] is so bad then how come Delphi is doing so miserably in the market? Ok, Ok! Yes, if you go to Brazil or the Ukraine EVERYONE and their grandmother is using it. But for as sucky as C/C++ (according to Pascalites) is it sure gets a whole LOT more air time then Pascal/Delphi. We could blame it on MSonopolies and cooperations, but that doesn't seem to go vary far either when you look at the open source community. And if cooperate America drove the use of language (not saying they don't have some say it it) then Java would be a rip roaring hit. Is it? NOT! It has a following but even it bills itself as a language that is much like C++. Even C# has a very C-ish look and feel (with a very Pascal-ish smell).

    I remember once during a Delphi campaign Borland (or were they Inprise then?) tried to convince VB programmers that moving to Delphi would be easy and painless. If that doesn't give you chills then you are dead.

    Sometime, if we all get together, I will show you my b&w photos of me using Pascal.

  40. Welcome by lildogie · · Score: 5, Funny

    > this is also my first post,
    > so i wish to formally introduce myself to the /. community!

    Welcome to Slashdot.

    Just be careful with the words "first post!"

  41. Re:30th anniversary... D&D and Pascal by Steve1952 · · Score: 2, Interesting
    The overlap between the D&D community and the UCSD pascal community was pretty high. I myself was at UCSD in 1978, playing D&D and taking the UCSD pascal course. All the D&D programmers knew that the game was well suited for computers, and most programmers were into that sort of stuff.

    I finally got my own Apple II in 1981, and promptly tried to write a program called "Dial a Dungeon" - a multi user modem text based dungeon. Alas, too big a project for me, and thus never finished.

  42. and Basic too by plopez · · Score: 2, Informative

    Both Pascal and BASIC were intended for teaching only. Unfortunately both were pressed into areas they were not originally designed for and had to be retrofitted.

    THere is a discussion above about production languages vs teaching languages being taught at this time. My opinion being better a production language, because when the Business Admin types take their intor to programmig class they will not be left with the impression that a teaching language is a real programming language.
    THen force programmers to deal with what often amounts to crippleware when they are tasked with managing a software project.

    --
    putting the 'B' in LGBTQ+
  43. And it's easy to implement by chazR · · Score: 2, Informative

    If you want to build your first compiler, Pascal-style languages are a good place to start. They are amenable to recursive descent parsing.

    I strongly recommend Jack Crenshaw's (free) introduction.

    I seem to remember that the compiler is written in Pascal. I translated it to C as a I went along. You could always use GNU Pascal (That's a google link, because the site seems to be refusing connections. Could that be related to this FPP?)

  44. Re:Bah! by rewt66 · · Score: 2, Informative
    You sure ought to be grateful! My mother (yes, my mother) was a programmer in the 1950's, writing flight simulations for missiles, and working (among other places) at JPL. When she began working, she wrote in octal. She was grateful when she got an assembler!

    Writing numerical code in octal - I just can't begin to imagine how much talent that took.

  45. Free Pascal by Anonymous Coward · · Score: 2, Informative

    There is also Free Pascal that is Delphi compatible.... and Lazarus that use Free Pascal and is Delphi-like (Visual Pascal)... Write once, comile everywhere (Win32, *nix, Mac, BeOS, etc, etc, etc.).

  46. Re:Raskin's Pascal poster by jejones · · Score: 2, Informative

    That chart just appears to be the grammar for Pascal. You could produce a chart just like that for C++ using the C++ grammar.

    Agreed, but for Pascal you won't run into any constructs that are recognized by the same chunk of "Railroad Normal Form" but which have radically different semantics--over and above the usual things you can't capture in a context-free grammar.

    That is, Pascal doesn't have C++'s "if you can interpret it as a declaration, it's a declaration" rule.

    From what I've read, C++ has the same difficulty as the original FORTRAN did; the original parser was ad hoc, so that it was a nightmare to parse with reasonable techniques, and arguably therefore harder for humans to deal with.

  47. The UCSD Pascal Machine by herc_mk2 · · Score: 2, Interesting

    At my first job (in 1980) we did some programming with UCSD Pascal, although the majority of our work was in assembly (Z80 and friends). We dabbled around with UCSD Pascal on our CP/M machines and on a customer's Apple ][ and the performance was quite acceptable.

    Then we got this strange beast -- I think it was a modified DEC PDP-11/03. IIRC, the 11/03's CPU was actually 3 chips: a core and what was essentially two microcode PALs. The microcode chips were replaced with ones that executed p-code (rather than PDP machine code). There was no interpreter -- raw execution of the p-code in hardware. It was so blazingly fast that we couldn't believe it. It was probably a 16-bit architecture too, so that may have helped (or was the PDP-11 one of those oddball 18-bit machines, 6 octal digits to a word...)

    We never had a case for it, it just sat on the workbench on antistatic foam, with wires leading out to the floppy drives and the terminal. We did all of our Pascal development on that box, then moved it to the Apple (the customer's machine) for the "beta testing." It was mostly UI, so the performance didn't really matter.

    Eventually, we switched to using C, since Pascal wasn't too practical for the embedded systems we were designing: we were mortified to see a compiled "hello world" was 8K bytes in size! That was four ROMs in those days... C had a much smaller footprint, so we began using it.

    But I still wonder whatever happened to that machine...

  48. FREE PASCAL! by Anonymous Coward · · Score: 3, Informative

    Both apps are Free Software (GPL).

    www.lazarus.org

    www.freepascal.org

    Lazarus := Delphi-like (almost a clon) IDE for Win32 AND Linux. It's API independent: can use transparently GTK+, Windows graphic system... etc.

    FreePascal := Portable? no problem! It's available for different processors Intel x86, Motorola 680x0 (1.0.x only) and PowerPC (from 1.9.2). The following operating systems are supported: Win32, Linux, FreeBSD, NetBSD, MacOSX/Darwin, MacOS classic, DOS, OS/2, BeOS, SunOS (Solaris), QNX and Classic Amiga.

    The language syntax is semantically compatible with TP 7.0 as well as most versions of Delphi (classes, rtti, exceptions, ansistrings). Furthermore Free Pascal supports function overloading, operator overloading and other such features.

    Try it! Or, at least visit the web sites.

  49. Re:Why didn't it succeed? by Cryogenes · · Score: 4, Informative

    Actually you are answering the wrong question. There was never any contest between C (the Unix language) and Pascal (a teaching language). The real tragedy was that the beautiful Algol succumbed to C so easily and so completely.

    But you are quite right, compilers where the reason. C.A.R.Hoare (of quicksort and CSP fame) tells a good story where early in his career he led an Algol compiler team into disaster - after two years of careful programming they produced a multi-pass compiler and when they first tested it, it managed to correctly translate 1 line of Algol per second!

  50. Ada lives on, kinda by acomj · · Score: 2, Informative

    Ada is Pascals "child" so to speak. The sytax is pretty close. The more I use ada the more I like it although not without its quirks. Its not hard to pick up, and gcc will compile it.

    Although calling Ada a success would be pushing it, it seems my companies large projects work best in ada, then c and c++ is always a disaster.

    Ada lacks a lot of libraries that make java/ c so useful. But as someone pointed out (with a chuckle), you can bind Ada calls to C making it as powerful as C!

  51. Re:Why didn't it succeed? by Junks+Jerzey · · Score: 2, Insightful

    1) It's much easier to write a C compiler than a Pascal compiler, therefore the (early) availability of the C language on new platforms became a near certainty.

    Not true. Pascal is generally easier to write a compiler for than C. Now you might be focusing on the optimization side of things, and in that case you'd be right. A naive compiler typically generates much better code for C-style pointer math than for arrays, and in Pascal you use the latter.

  52. Even more serious by fm6 · · Score: 4, Insightful
    In the PC world, x86-series processors implement the call stack in a way that makes Pascal-style nested procedures easier to implement. Back in the 70s, Intel thought that Pascal was the high-level language of the future. They didn't anticipate the C/Unix mindset taking over so thoroughly.

    And in certain circles, Pascal is still the language of choice. Lots of people who hack out basic native-code Windows software prefer Borland's Delphi IDE to any alternative. One reason is the programming language, which is actually an object-oriented extension of Pascal.

    I spent 3 years at Borland, documenting their component libraries, which are mostly written in Delphi. I came to appreciate its simplicity and power. My job required me to go back and forth between Delphi and C++ (the same libraries are used in Borland's C++ products) and it was an object lesson (forgive the pun) in how painfully baroque C++ has become.

    It's a pity that Pascal/Delphi has so thoroughly lost the language wars. But it has. Even if C++ hadn't thoroughly taken over native-code programming, Borland's bizarre and insular corporate culture would keep from spreading beyond a few fierce loyalists.

  53. Re:Why didn't it succeed? by Tablizer · · Score: 2, Insightful

    Personally, I choose Delphi these days over C, because I write and support huge projects. It is incredibly easy to pick up Pascal source and quickly figure out exactly what it does.

    One thing that helps Pascal readability over Java and C dirivatives is that declarations of types come *after* the variable name instead of before. The variable name is usually more important than the type name, so seeing it lined-up on the left side makes it easier to spot.

  54. Chrome by Cadderly · · Score: 2, Informative

    I am using Object pascal every day. (Delphi and Free Pascal). But there is still development done on Pascal compilers... take a looke at Chrome http://www.chromesville.com/ . That is a brand now .NET language based on Pacal that has some REALLY nice features...