Live data from Hacker News

All Programming Languages are Wrong (2018)

users.rcn.com

1–10 of 79 posts

Re: All Programming Languages are Wrong (2018)

#3
> For example, one cache miss might take as much time as a hundred add instructions.

> Today's languages contain far too many features that do almost the same thing but have slightly different performance characteristics, for example regular and virtual functions in C++.

Odd example. Virtual functions help enable certain designs, but avoiding virtual functions is commonly recommended when writing cache friendly code.

Re: All Programming Languages are Wrong (2018)

#7
Computation is not almost free and people are doing just fine writing slow code without the language helping them.

Taken that we've more or less stalled with regards single core performance, I'd argue that computers are now getting slower (because software is bloating faster than single core performance is increasing).

Re: All Programming Languages are Wrong (2018)

#8
What a bunch of bs. There are so many places where computation is far from free and size matters (embedded, HPC for example). And the end of Moore law is just gonna emphasize the need for performance even more. This article just tells me that the author didn’t have to write any performance critical code in his life and he just extended his experience to everything

Re: All Programming Languages are Wrong (2018)

#9
Each programming language is suitable for solving certain type of problems. So when I see a catch-all statement like "All Programming Languages are Wrong", it seems to me the author is implying that "None of the programming languages solve my (or this specific type of) problem."

> It does not reflect the realities of modern hardware, where computation is almost free, memory size is almost unlimited ...

Well, no, this certainly doesn't apply to all problems!

> ... because they seem to be in love with the idea of "object" or "abstract data type." ...

Again, there are many different paradigms of programming, OOP being one of them with its own pros and cons.

Re: All Programming Languages are Wrong (2018)

#10
IMO the biggest problems with almost all popular programming languages are

1) null

2) exception based error handling

such that, when you call foo() where foo is

String foo(){ blabla }

you can get a String, null OR an exception (!!!) and most compilers happily let you treat it as if it only ever returns a String.

I hope some day null is no longer a thing, and that Functional Programming types like Option, Either, Try etc in the native libraries is the new default.

Post reply on HN