Why did Pascal basically die completely? It seems like a hugely influential language and was very loved, but there are plenty of other languages which still seem to have a lot of legacy code. Where is Pascal?
In a way it didn't, the Lazarus project is the current most well-known incarnation. But that itself tells a story: it's for desktop applications, mainly. It never really had a "here's how you do a web app" story around it. There was a period 1998-2002 when Delphi was <i>hot</i> (and it genuinely was <i>very</i> good) but all the cool kids saw PHP3 and Flash and hopped aboard, and at that point, in retrospect, you can see the start of the decline of desktop applications. By the time Rails landed in (I think?) 2008 "do everything on the web" was what a lot of people were already talking about, even if the truth of that didn't really land until much later.<p>Really it could have been go-lang before go-lang and I'm not sure why it wasn't other than that it wouldn't have been controllable by the folks at Google.
Because web was cross platform, didn’t need any “installation”, and had far better devtools included than any tech that days.
Not in 02002. In 02002 your JS devtools were that the browser crashed when you had a bug in your JS, so you would have to binary-search your recent changes to figure out which line of JS was crashing it, and you could evaluate expressions by typing javascript:(void)alert(f()) in the URL bar. No browser console, no web inspector, and the only portable DOM was image rollovers and form field values. If you wanted to generate document content in JS the only way that was portable to Netscape Navigator 4 was document.write().<p>I think we didn't even have <i>bookmarklets</i> at that point—the browsers supported them, but we didn't know that.
> the Lazarus project<p>Hem hem,<p><a href="https://www.freepascal.org/" rel="nofollow">https://www.freepascal.org/</a><p>---<p>Really, it was because pascal was the go of its day with very little corporate backing (by modern standards). A language designed around developer ergonomics with some safety in mind: lovely for teaching, but only because it was a jack of all trades.<p>Web units were included, it's just that php became dominant because it was stupidly easy. I myself was a pascal programmer that started writing php around the time of lazarus 0.9 / fpc 1.9 and I recall that php felt like bash scripting by comparison. Today, I consider the cgi model to be rudimentary and php itself a pile of shit.<p>Delphi / Lazarus were GUI frameworks not different languages, and regarding Lazarus itself I'm gonna be RMS here and say that it's GNU/Linux (which it was, for some time).<p>Florian Klämpfl deserves some credit.
ObjectPascal's downward spiral was tied to Borland's. When Borland started to struggle, there weren't any other implementations — Borland's was the only viable one.<p>Evne in its heyday, Borland's Pascal-based products were not that big in the developer tools market. Delphi was a huge hit in Europe, but in the US, they were dwarfed by Microsoft. So Pascal's influence is a bit like that Brian Eno saying (paraphrasing): “Only 30,000 people bought the first Velvet Underground album, but everyone who bought it started a band.”<p>Part of Borland's fall was betting too much on client/server database stuff at a time when the web was happening. They renamed themselves Inprise and marketed a suite of technologies called MIDAS which nobody remembers anymore. You used Delphi to build database GUIs on top of MIDAS and, say, Oracle. I don't know what they were thinking. They also did a Linux version of Delphi called Kylix which was just using Wine (!).<p>Even so, I suspect ObjectPascal would have failed eventually. A language tied to a GUI toolkit, without a standard spec, or a cross-platform open source implementation, just couldn't last forever.<p>I held onto Delphi far after it was evident that it was a dying language. I actually did a ton of my work in the 1990s and early 2000s doing non-GUI stuff in Delphi, including web backends and commercial games, which I suspect was not that common. ObjectPascal actually worked wonderfully as a server-side language. It was a strict, statically typed language, it had modern constructs like classes and threads, it was natively compiled, very fast, had a terrific interactive debugger. In many ways a perfectly fine alternative to C++ at the time, including for game development — I made my own bindings for DirectDraw, DirectSound, and so on.<p>At the time — say, around 2000 — I didn't find the alternatives compelling. Java was dead slow and didn't offer anything language-wise. Languages like Python were also slow and were not type-safe. But there came a point when Linux had just taken over, and ObjectPascal wasn't a viable option anymore.<p>Today, the closest thing in spirit to the ObjectPascal language isn't C#, I think, but Go.
It didn't, despite all its management failures, several companies are still buying into Delphi (Object Pascal evolved from Turbo Pascal/Apple's Object Pascal), and there is at least an yearly conference in Germany.<p><a href="https://entwickler-konferenz.de/en" rel="nofollow">https://entwickler-konferenz.de/en</a><p>Then there is still FreePascal, Mikroe Pascal and RemObjects Pascal to chose from.
> Then there is still FreePascal, Mikroe Pascal and RemObjects Pascal to chose from.<p>And now also Micron, which re-added Pascal features to Oberon (<a href="https://github.com/rochus-keller/micron/" rel="nofollow">https://github.com/rochus-keller/micron/</a>).
Some of us are still using Turbo Pascal for CP/M on our Z80 systems. OK, a bit niche.
Ah, yeah, have to play with it sometime. TODO list is rather long. :)
Lua, Go, and Nim have some Pascal roots, according to <a href="https://en.wikipedia.org/wiki/Generational_list_of_programming_languages" rel="nofollow">https://en.wikipedia.org/wiki/Generational_list_of_programmi...</a><p>Though Borland had some commercial success, I remember Pascal mainly as a teaching language.
Can't believe I forgot PL/SQL, as I used that heavily for years.<p>Ada also was widely used in aerospace/military applications, though not sure it's still used for anything new today.
Odin borrows from Pascal as well.
Julia is also heavily influenced by Pascal syntax.
> Why did Pascal basically die completely?<p>It morphed into Delphi. The reason that it's not that successful anymore is that it was deeply tied to Windows (even if there were half-arsed Macintosh ports).<p>And then the Internet taking off happened.<p>And suddenly you had gigantic companies built on PHP/JavaScript/Linux (like Facebook), on open-source software (Google) and Pascal/Delphi got also attacked by actually portable stuff, like Java, which some of today's biggest companies were built on (like Amazon).<p>So on one hand Linux and it's myriad of open-source languages and on the other hand Java (which is what it is but it is portable) and then JavaScript in the browser.<p>Nowadays tens of billions of devices, including many servers powering the entire world, are running Linux. While Pascal/Delphi was that language you'd run on DOS and half-arsedly ported to Windows: not a winning proposition.
Because it didn't have nul-terminated strings.
Not sure if you are being sarcastic. Pascal strings are first class citizens, so it's trivial to add null-termination. Delphi actually does this to allow typecasting.<p>C, for example, doesn't have strings. It has pointers to memory that might contain characters and, if you are lucky and the stars are aligned, a zero to mark the end. I'll never understand how C strings were accepted as a string representation and not the mad source of bugs and insanity that they are.
Free Pascal/Lazarus it's rocking nice tools such as Peazip and other stuff like Carte Du Ciel and some RAD tools in the enterprise. On the niche geeky world, there's T3X at <a href="https://t3x.org" rel="nofollow">https://t3x.org</a> which is semi-Pascal like.
The main problem with Pascal was not having a standard at a time when having a standard was important for adoption. There were several successful implementations like Borland's, and the version used in the Macintosh, but being closed products they never talked to each other. It's similar to the situation of Basic: lots of code was created in Basic but none was compatible with a standard and was essentially lost.
It certainly had a standard, two actually, however no one cared because Turbo Pascal was more relevant, and Modula-2 was designed to fix Pascal's shortcomings, which also has a ISO standard.<p>So it wasn't for lack of standard per se.
Carmack developing DOOM on a NeXT and porting it to PC was a very good advertisement for C.
Not just having a standard but being able to collectively evolve a standard.<p>In the absence of that, Pascal’s creators and commercializers invented follow-on languages, including the most successful thread via Hejlsberg as we’re discussing here: Object Pascal -> Delphi -> C#/.NET—with a brief detour to J++, which I don’t know enough about to understand if it belongs in this sequence.
Outside Borland and Apple, people tend to forget that already in 1976, Niklaus Wirth came up with Modula-2, exactly to fix all the shortcomings from a language originally designed for teaching, with one properly designed for systems programing from the start.<p>As for your sequence, from someone that was around back then, .NET and C# only exist as you know it thanks to Sun's lawsuit regarding Java language and runtime extensions introduced in J++.<p>Then an internal research language originally named Cool, became C#, the language extensions in J++ were made into C# features (events, J/Direct, COM interop), Windows Foundation Classes became Windows Forms, and J# was released in .NET 1.0 as transiton technology.<p>Had it not been for the lawsuit, Ext-VOS (.NET codename) would have been released with J++ instead.<p><a href="https://web.archive.org/web/20190111203733/https://blogs.msdn.microsoft.com/dsyme/2012/07/05/more-c-net-generics-research-project-history-the-msr-white-paper-from-mid-1999" rel="nofollow">https://web.archive.org/web/20190111203733/https://blogs.msd...</a><p>Follow the linked paper for Ext-VOS, aka COM+ Runtime, aka .NET.<p>Microsoft would revisit this COM+ Runtime a decade later with WinRT,<p><a href="https://arstechnica.com/features/2012/10/windows-8-and-winrt-everything-old-is-new-again" rel="nofollow">https://arstechnica.com/features/2012/10/windows-8-and-winrt...</a>
Went the way of the dinosaurs. I learned about pointers and memory on Hi-Soft Pascal on a ZX Spectrum from this book: <a href="https://www.okazii.ro/limbajul-pascal-corina-corici-dorin-manz-a236207648" rel="nofollow">https://www.okazii.ro/limbajul-pascal-corina-corici-dorin-ma...</a><p>Here's a page from the book I was reading in 1993: <a href="https://imgur.com/a/7UWdGgS" rel="nofollow">https://imgur.com/a/7UWdGgS</a><p>For reference, ZX-Spectrum has 48Kb of RAM out of which 8Kb is video memory, so unusable.<p>Then you have to load the Pascal compiler into the remaining 40k of RAM. Allocate some RAM for stack and environment variables for the editor where you write your program, plus space for the actual program. Then compile your program into the same 40k of space. And run it, using heap and stack memory from which memory space? You guessed right, same 40k.<p>To recap, on 40k of RAM you had back then:<p>- The Pascal compiler<p>- The Pascal source code in text form<p>- The Pascal executable form in machine code<p>- The Pascal data/memory. Of which, recently in a "tech demo" of automated tests, one colleague said "unfortunately we only have a very limited amount of RAM to be able to do basically anything [that's why the product is a mess with no tests]. Only 32Gb per [virtual] machine".<p>One of my first programs was a Tetris clone, because ZX-Spectrum BASIC was slow as molasses. All on top of only having tape for storage so if I fucked up a pointer (I don't think Pascal had the concept of access violation back then but I sure discovered it on my own skin), it would take 5 minutes to load the Pascal compiler + some backup copy of my Tetris game, hopefully not from a month ago and hopefully I remember what I changed. Lots to discover and have "fun" with.<p>About a year later I did find a compiler for BASIC and it turned the unplayable BASIC code for Tetris I wrote in the 9th grade into a totally playable Tetris game, without the need to learn another language and paradigm (pointers!) but the damage was done. Ignoring a year of databases, in 12th grade of high school computer science class (elite class, found there basically all the Math olympics I was competing with in gymnasium), I got introduced to C and from then on, here I am, 30 years later, doing C++ in finance for an S&P 500 company.
Kaaaaaaaaaaaahhhnnn!!!