News for hackers. Stuff that matters.
Re:Ask HN: What programming language do we use if IQ of whol... by h2odragon on Thursday November 16, 2023 @09:26AM (#38289877)
"IQ" is an average, so "the whole of humanity" should by definition be around 100 IQ at any given time, right?

If everybody was half again as smart as they are now, the gleaming perfection of the Ada language would become undeniable and everyone would adopt it immediately.

Seriously, why would "smarter people" not need tools as or more diverse than those in use now? You think that there's "one true language" of programming that is Universally Perfect and only our idiocy has prevented us from implementing it thus far?

Re:Ask HN: What programming language do we use if IQ of whol... by rowanG077 on Thursday November 16, 2023 @10:36AM (#38290832)
Technically correct. But not the point of the question. The question is essentially: "What programming language do we use if IQ of whole humanity reaches 160 measured at the 2023 level?"
Re:Ask HN: What programming language do we use if IQ of whol... by bell-cot on Thursday November 16, 2023 @09:29AM (#38289918)
Bearing in mind Kernighan's Law - https://www.laws-of-software.com/laws/kernighan/ - we should then use a programming language designed for people with an IQ of about 80.
Re:Ask HN: What programming language do we use if IQ of whol... by karmakaze on Thursday November 16, 2023 @10:12AM (#38290516)
I apply this in a different way. Whenever I approach a problem, I find the simplest possible design that could work well. This doesn't stretch my complexity muscles very often, but what it does is allow me to fit more complex problems into my bounded solution space that I could otherwise.

I do agree with limiting the power of languages used. Scala was the cautionary tale I'd experienced. The team can agree to limit themselves to the less complex forms, but it's a slippery slope and many end up adding just a bit until everything the language has to offer gets used somewhere. Then it takes a good chunk of the team to sort out any area on second look, or a new better team to maintain what's been produced.

I think programming languages should have 2 scores: how good it feels to write new code in it; how bad it feels to maintain old code in it.

Re:Ask HN: What programming language do we use if IQ of whol... by Wildgoose on Thursday November 16, 2023 @09:24AM (#38289848)
I think it is more likely that average human intellect is going to regress in the next few years.
Re:Ask HN: What programming language do we use if IQ of whol... by nittanymount on Thursday November 16, 2023 @09:23AM (#38289827)
the language to use, it depends what you want to do, right?
Re:Ask HN: What programming language do we use if IQ of whol... by DamonHD on Thursday November 16, 2023 @09:19AM (#38289774)
ASM
Re:Ask HN: What programming language do we use if IQ of whol... by jjgreen on Thursday November 16, 2023 @09:27AM (#38289891)
Cumulatively?
Re:Ask HN: What programming language do we use if IQ of whol... by incomingpain on Thursday November 16, 2023 @09:29AM (#38289909)
Re:Ask HN: What programming language do we use if IQ of whol... by chubot on Thursday November 16, 2023 @10:04AM (#38290409)
All of them at once
Re:Ask HN: What programming language do we use if IQ of whol... by deafpolygon on Thursday November 16, 2023 @10:04AM (#38290410)
binary
Re:Ask HN: What programming language do we use if IQ of whol... by Wonnk13 on Thursday November 16, 2023 @10:09AM (#38290480)
So is there an implicit assumption that some languages are only appropriate for geniuses? That Javascript as the such only exist because of low IQ individuals?

I want to assume good intent, but the basis of the question is mildly offensive, no?

Re:Ask HN: What programming language do we use if IQ of whol... by Smaug123 on Thursday November 16, 2023 @10:26AM (#38290695)
Inoffensive. One of the explicit Golang design criteria, as espoused by Rob Pike, was to be usable by "Googlers, fresh out of school, who probably learned some Java/C/C++/Python". The language would presumably look very different if it had been designed for more powerful users.
Re:Ask HN: What programming language do we use if IQ of whol... by JohnFen on Thursday November 16, 2023 @11:19AM (#38291440)
Rob Pike wasn't talking about how smart the programmers are, though. He was talking about how knowledgeable and/or experienced they are.
Re:Ask HN: What programming language do we use if IQ of whol... by Smaug123 on Thursday November 16, 2023 @11:38AM (#38291718)
They trade off against each other. A language designed for people who can compose primitives, for example, can be used well either by people who have seen all the combinations of primitives before, or by people who can quickly grasp the implications of a new primitive with respect to the others.
Re:Ask HN: What programming language do we use if IQ of whol... by Asraelite on Thursday November 16, 2023 @11:46AM (#38291831)
Look at it the other way: is Scratch appropriate for adults? Does it only exist because of children? I would say yes.

In a hypothetical world of super-geniuses, existing programming languages would be the new Scratch and adults would use something more advanced.

I don't think it's offensive to consider programming paradigms that would be too difficult for most people to ever wrap their heads around.

Re:Ask HN: What programming language do we use if IQ of whol... by t-3 on Thursday November 16, 2023 @10:17AM (#38290565)
The same ones. Did you think smart people don't go along with the crowd like everyone else? People will use what they have, regardless of how smart, because people are lazy, things are hard, and $x is already shown to work.
Re:Ask HN: What programming language do we use if IQ of whol... by emblaegh on Thursday November 16, 2023 @10:41AM (#38290897)
Butterflies
Re:Ask HN: What programming language do we use if IQ of whol... by klyrs on Thursday November 16, 2023 @10:49AM (#38291025)
They'd each individually roll their own language, compiler, web stack, operating system, editor, etc. Documentation, standards, etc. would be unnecessary, as interoperability is the hobgoblin of small minds.
Re:Ask HN: What programming language do we use if IQ of whol... by zzk1st on Thursday November 16, 2023 @10:56AM (#38291103)
No offense to anybody, it's just the max length of HN title restricted me to ask questions in a brief but perhaps not friendly way.

I guess what I want to ask is if the popularity of programming languages is related to mankind's cognitive ability as a whole species, or if the designing of programming languages is optimizing towards a certain cognitive level. Or, say if we want to design a programming language only for ChatGPT, what kind of programming language would that look like. I think it's an interesting open end question leading to many directions. Again, no offense.

Re:Ask HN: What programming language do we use if IQ of whol... by MarioPython on Thursday November 16, 2023 @11:07AM (#38291248)
Rust <3
Re:Ask HN: What programming language do we use if IQ of whol... by JohnFen on Thursday November 16, 2023 @11:18AM (#38291424)
I don't think that what programming languages become popular is related much to the cognitive level of programmers. I think it has more to do with (in order of amount of effect) fashion, intertia, and the fitness of the languages to particular tasks
Re:Ask HN: What programming language do we use if IQ of whol... by PurpleRamen on Thursday November 16, 2023 @11:24AM (#38291515)
None. Because at this point humanity is able to avoid all that s**. Or we go down in an epic battle royal.
Re:Ask HN: What programming language do we use if IQ of whol... by gaws on Thursday November 16, 2023 @12:15PM (#38292305)
The C Programming Language
Re:Ask HN: What programming language do we use if IQ of whol... by qbrass on Thursday November 16, 2023 @01:00PM (#38293020)
Yeah, they have a 160 IQ, they know how to handle a footgun.
Re:Ask HN: What programming language do we use if IQ of whol... by RetroTechie on Thursday November 16, 2023 @12:33PM (#38292627)
Spoken language?

Early programming was machine code or flipping switches. Then assembly. Then C, Forth or similar low-level languages.

Now many people use scripting languages, Python, Go & other high-level languages.

See the pattern? The general evolution is from machine-friendly to human-friendly. Regardless of programmer's IQ.

The logical endgame is programming your toaster with spoken commands. Or no programming at all. It'll just watch your responses to learn how you like your toast.

Re:Ask HN: What programming language do we use if IQ of whol... by usgroup on Thursday November 16, 2023 @12:49PM (#38292865)
I think many cognoscenti will pick languages for their deep aesthetics. That means things like J, Lisp, Prolog, etc.

Coding outside of the pedestrian languages can be a border line mystical experience. Mind expanding. Life changing. Just not in JavaScript; sorry :-)

Re:Ask HN: What programming language do we use if IQ of whol... by usgroup on Thursday November 16, 2023 @12:39PM (#38292714)
The Archimedean lever of all languages: Prolog.

I’m of the controversial opinion that’s it’s only not used more because of the cognitive overhead of its simplicity. Its few capabilities are so extremely overloaded and productivity very much depends on the savvy of the programmer.

It is also the clearest language I know for writing down thoughts in a computational logic.

Re:Ask HN: What programming language do we use if IQ of whol... by mikewarot on Thursday November 16, 2023 @03:03PM (#38294707)
Either Lisp or Stoic would work very well if you have a lot of mental stack space to keep track of parameters