News for hackers. Stuff that matters.
[deleted]
Re:Glibc getaddrinfo stack-based buffer overflow by pjmlp on Tuesday February 16, 2016 @11:31AM (#11110966)
Yes, UNIX was adopted by the corporations and brought C with it.

Some people don't get it that before it happened we were happily using other systems programming languages way safer than C.

Re:Glibc getaddrinfo stack-based buffer overflow by voidlogic on Tuesday February 16, 2016 @01:29PM (#11112009)
>Some people don't get it that before it happened we were happily using other systems programming languages way safer than C.

Maybe some people, but most systems programming was done is Assembly before C.

Re:Glibc getaddrinfo stack-based buffer overflow by pjmlp on Tuesday February 16, 2016 @01:49PM (#11112155)
If targeting home computers, the so called mini-computers and home micros, yes. C was just yet another "managed language".

If targeting real computers, what is nowadays left as mainframes, then no.

Extended Algol was already being used by Burroughs in 1961 for writing Assembly free OSes.

There are lots of other examples, which C advocates tend to ignore, so that they can sell the story that before C there was only Assembly to those that don't bother with history of computing.

Re:Glibc getaddrinfo stack-based buffer overflow by TeMPOraL on Tuesday February 16, 2016 @01:37PM (#11112067)
No, you're not getting it :). There was a whole world besides Assembly and C, now mostly lost to us. E.g. Lisp machines, which even had hardware support for Lisp-specific things like tagged pointers.
Re:Glibc getaddrinfo stack-based buffer overflow by bsder on Tuesday February 16, 2016 @08:21PM (#11114471)
Whose performance was so bad that porting the Lisp Machine software to a general purpose Alpha added multiple factors of performance increase.
Re:Glibc getaddrinfo stack-based buffer overflow by pjmlp on Wednesday February 17, 2016 @02:14AM (#11115939)
C compiler performance in the 80's for home micros was so bad, that functions were basically naked entry points to full inline Assembly.

And here we are now discussing how good modern C compilers are.

If there isn't the willingness to spend the money to optimize performance, of course it won't improve.

Re:Glibc getaddrinfo stack-based buffer overflow by bsder on Wednesday February 17, 2016 @02:45AM (#11116067)
The initial port of Genera to an Alpha matched the performance of Symbolics fastest workstations:

http://pt.withy.org/publications/VLM.html "Version 1.0 of the emulator exceeded our initial performance goals, achieving nearly the performance of our high-end custom workstation."

An initial port to a foreign architecture (in-order execution, 64-bit memory space which is going to overload caches, inefficient 8-bit transactions) matched 15+ years of hardware development on the native architecture.

That wasn't lack of money or development. That was a stunning rebuke that Lisp Machines had an inferior architecture.

Re:Glibc getaddrinfo stack-based buffer overflow by pjmlp on Wednesday February 17, 2016 @04:39AM (#11116582)
> That wasn't lack of money or development. That was a stunning rebuke that Lisp Machines had an inferior architecture.

No, it wasn't nothing more than lack of willingness and money to do it, instead they complained about the state of art and went home.

Re:Glibc getaddrinfo stack-based buffer overflow by bsder on Wednesday February 17, 2016 @03:23AM (#11116216)
> C compiler performance in the 80's for home micros was so bad, that functions were basically naked entry points to full inline Assembly.

For good reason: memory and disk were ferociously expensive until about 1996-1997.

Things like unchecked bounds make sense when you can barely get your computer to do what you want. Designing a VLSI chip through about most of the 1990's was HARD. Everything was an exercise in how to fit things on disk, fir things in RAM, run enough polygons, or run enough instructions on the emulator to actually boot.

Now: we can emulate a 6502 in Javascript while animating it. We can emulate entire PowerPC chips at real-time speed. So, yeah, NOW allocating a couple of cycles to bounds checking and garbage collection makes perfect sense.

We should have started the conversion away from C in 2000. The problem is that 1) sunk cost keeps design decisions made in vastly different environments around for far longer than is reasonable and 2) we didn't really have good replacement options for C until starting about 2005.

And then the cellular phone revolution hit and put us back to programming like its 1995. Finally, now that cell phones even have an overabundance of CPU, storage, and memory--we now can start to care about security.

Re:Glibc getaddrinfo stack-based buffer overflow by pjmlp on Wednesday February 17, 2016 @04:40AM (#11116585)
> For good reason: memory and disk were ferociously expensive until about 1996-1997.

Yet Burroughs was able to use Extended Algol in 1961 in an architecture much more constrained than a PDP-11.

> we didn't really have good replacement options for C until starting about 2005.

Ada, Turbo Pascal, Extended Pascal, Modula-2, Modula-2+, Modula-3, Delphi, Oberon, Oberon-2, Component Pascal, Active Oberon, Cedar, Mesa, Algol 68, Extended Algol, CPL,...

Re:Glibc getaddrinfo stack-based buffer overflow by TeMPOraL on Tuesday February 16, 2016 @01:34PM (#11112047)
In general, adoption of UNIX has managed to convince a lot of smart people to believe something as absurdly sounding as "worse is better".

(I'm only half-sarcastic here.)

Re:Glibc getaddrinfo stack-based buffer overflow by cmrx64 on Tuesday February 16, 2016 @11:37AM (#11111026)
(For the record, grandparent originally ended with "Some people just don't get it")
Re:Glibc getaddrinfo stack-based buffer overflow by tosseraccount on Tuesday February 16, 2016 @03:17PM (#11112830)
What do you think?
Re:Glibc getaddrinfo stack-based buffer overflow by blt on Tuesday February 16, 2016 @09:15PM (#11114713)
Anyone who reads HN for long enough knows, thanks to your comments ;)