r/programming • • Mar 26 '20

10 Most(ly dead) Influential Programming Languages • Hillel Wayne

https://www.hillelwayne.com/post/influential-dead-languages/
409 Upvotes

178 comments sorted by

View all comments

24

u/username123_not_take Mar 26 '20

It may be dead for a lot of people but Smalltalk is very much alive for me. It is my goto tool for creating stuff. It presents the smallest barrier between idea and working code. Pharo and Dolphin.

I got to do some Java again some months ago after a hiatus of over a decade. Java 8 with lambdas and streaming collections and all. I immediately recognized them as block and collections in Smalltalk that have been there for ~40 years.

13

u/ShinyHappyREM Mar 26 '20

It may be dead for a lot of people but Pascal is very much alive for me. It is my goto tool for creating stuff. It presents the smallest barrier between idea and working code. Free Pascal and Lazarus.

fixed that for me

5

u/POGtastic Mar 26 '20

I haven't used it for much, but a couple of folks on /r/learnprogramming were asking some questions based on a college course that used Free Pascal, so I picked it up. The documentation is pretty bare-bones, but I liked the language.

1

u/ShinyHappyREM Mar 26 '20

1

u/[deleted] Mar 27 '20

The documentation is rather "old fashion", think 1980 documentation. Its nothing more then a book/text dump and it read as much.

Even basic things like syntax highlights are non existing ( beyond basic string stuff ). Add to this that some examples do not even work properly anymore. Probably because nobody has looked at them examples in the last 20 years ( and the documentation has no build in code testing? ).

And then you have the issue of "old pascal" vs "modern pascal". So much information mixes between function based programming and object based programming. The legacy makes things harder on the documentation and coding.

Its a great compiler, so fast that it makes your head spin but you can tell its design is old with very limited checking ability, how easy it is to crash your programs etc... Lazarus is just as issue full with stupid errors that crash the UI. When doing simply basic stuff and the UI crashes several times in 10 min time, yea ... you can tell that there is a issue with quality control.

It also does did not help that the developers are so stubborn fixed on SVN where as most people use github ... as a result a lot of bugs simply do not get reported. Its the whole "people report more easily where they have accounts".

All in all, the documentation, websites, code handling makes it feel like (free)Pascal(and Lazarus) are stuck in the 1990's. Not exactly alluring to new users who are used to more modern setups, documentation, testing methodology, reporting etc. And there is also the small issue with some developers attitude that really pushes the few people away, whenever people point out a negative. They have no interest in actually fixing issues and play the old "somebody else need to fix that, we are busy implementing X useless feature that nobody really wants". Seen it too many times with developers too focused on features because its fun but not on the actual product ( because that is the boring work ).

→ More replies (1)

4

u/[deleted] Mar 26 '20

Yeah, growing up in the 70s, Pascal, PL/1 and PL/C (the Cornell version of PL/1 designed for students that would correct silly syntax errors) were the thing.

To this day, Pascal remains my favorite language and I've never really understood why people preferred C since there was nothing you could do in C that you couldn't do in Pascal.

I'm mostly stuck in C++ (due the need for certain 3rd party libraries in our product) but as you said, thank goodness for GPC and Lazarus

4

u/flatfinger Mar 26 '20

Two factors let to C's dominance, IMHO: 1. A programmer armed with a dirt-simple C compiler for the PC could produce code that would run much faster than one armed with a dirt-simple Pascal compiler; 2. The C Standards Committee wrote the standard in such a way that just about anything that could be done by any program for any computer could be done by a "conforming C program", while conforming Pascal programs could hardly do much of anything.

3

u/inkydye Mar 26 '20

I've never really understood why people preferred C since there was nothing you could do in C that you couldn't do in Pascal.

Some things of little theoretical but much pragmatic value were clearly defined in C and missing in Pascal. Most notably, Pascal assumes the whole program will be in a single source file. That's cool for college, but murder on industrial software development.

Of course practical Pascal setups made ways around this, but those were non-standard extensions. C covered that from the start, crudely as it was.

5

u/meshfillet Mar 26 '20

The lifeblood of industrial adoption really is in I/O and libraries. If you bolt those things to a mediocre language and give it docs and a bit of salesmanship, it gets used.

C having those things in the standard definitely made a difference, but it has also proven to be a major point of friction nowadays; so much of what C is, is what libc is. If you go a target that isn't much like Unix, like browser WASM, there is quite a lot of hoop-jumping involved to make libc behave similarly.

And C's sustained position of primacy ultimately derives from being so tied to the operating system: The libraries start using the same language since it's the path of least resistance.

3

u/[deleted] Mar 26 '20

Pascal assumes the whole program Yeah, but that's only for very early versions - most usable versions of Pascal had units

2

u/ShinyHappyREM Mar 26 '20

To this day, Pascal remains my favorite language and I've never really understood why people preferred C since there was nothing you could do in C that you couldn't do in Pascal.

I think in C you can create stuff like bootloaders. Difficult with Pascal if the compiler insists on handling everything for you.

Also, optimizations and support for certain hardware features are (probably) better due to having the support from the industry.

1

u/[deleted] Mar 26 '20

But the compiler doesn’t insist on handling everything. That’s just the default (and IMO is a good thing). You could always override it, e.g. explicit type cast, disable array bounds checking, etc

1

u/ShinyHappyREM Mar 26 '20

I mean it's including the System unit.

If you write a program that is just

begin
end.

...it's not just a few bytes in size, like it would be if you were writing it in pure assembler.

→ More replies (3)

2

u/lelanthran Mar 26 '20

To this day, Pascal remains my favorite language and I've never really understood why people preferred C since there was nothing you could do in C that you couldn't do in Pascal.

You could detect IO errors in C.

Failed to open a file? Pascal terminated the program while C returned an error to the caller.

Failed to read? Pascal terminated the program while C returned an error to the caller.

I could go on, and on...

2

u/ShinyHappyREM Mar 26 '20

You could detect IO errors in C.

https://www.freepascal.org/docs-html/prog/progsu38.html

Most modern code uses streams that return status info or create exceptions: https://wiki.freepascal.org/File_Handling_In_Pascal

4

u/lelanthran Mar 26 '20

Sure you can now. I was responding specifically to the OP's statement:

I've never really understood why people preferred C since there was nothing you could do in C that you couldn't do in Pascal.

When people favoured C over Pascal, Pascal didn't have streams or exceptions.

1

u/[deleted] Mar 26 '20

You could go on but all of those are library issues, not language issues.

2

u/lelanthran Mar 26 '20

Well, those are fairly large showstoppers: I don't recall a Pascal implementation that fixed those library issues, so if you chose Pascal that's what you were stuck with. If you chose C you weren't stuck with that issue.

Besides, in Pascal the library was fairly well intertwined with the language: for example variadic functions could be provided by the implementation only, you couldn't write your own wrappers around writeln. In C you could.

It's death by a thousand cuts - you asked why people preferred C, and the reasons are all these little reasons that made writing programs in Pascal painful.

Note that I don't have anything against Pascal, and I regularly on reddit and other forums recommend Lazarus as the best cross-platform gui for native programs. I still reach for Lazarus if I need to write a native GUI program, but there were (and still are) legitimate reasons that programming in C is less painful.

→ More replies (4)

1

u/pemungkah Mar 27 '20

Remember when PL/C would make a cascading set of bad decisions, build a program out of them, and then run it and eat all the CPU time in your account? Those were the days. (Our CS department was really stingy with account allocations.)

2

u/[deleted] Mar 27 '20

Absolutely. It was hilarious...you could throw anything at that compiler and it would produce a syntactically correct program.

→ More replies (1)

1

u/bdlf1729 Apr 01 '20 edited Apr 01 '20

To this day, Pascal remains my favorite language and I've never really understood why people preferred C since there was nothing you could do in C that you couldn't do in Pascal.

Nobody's given you the proper answer, which is that C is in wide use almost entirely because of Unix. The parts of it being standardized, fast, and low-level happened more or less because it was everywhere, rather than the opposite.

Frankly I just love pure procedural programming, so I'd probably fit in just as well in Pascal as C.

(edit: sorry if your inbox got spammed, my reddit broke a little...)

2

u/username123_not_take Mar 26 '20

As a matter of fact, I have also been looking at FreePascal/Lazarus. It is my second goto :-)