News for hackers. Stuff that matters.
Re:Glibc getaddrinfo stack-based buffer overflow by tkinom on Tuesday February 16, 2016 @01:44PM (#11112114)
Agree.

"C" to OS, Kernel, Computer Language, applications is like oxygen is to life on earth.

Yes, O2 causes fire from time to time, but you can't live without it.

Re:Glibc getaddrinfo stack-based buffer overflow by dh997 on Wednesday February 17, 2016 @12:14AM (#11115493)
The analogy is wrong because most all languages are Turing complete, and therefore equivalent despite paradigm and feature differences. The main reason seL4 was written in Haskell and again in C was to cross-verify behavior. C might be legacy ubiquitous, however it doesn't have to be the last word in shared library development by any means.

Any language which has a toolchain which produce flat binaries or use link scripts to specify sections can potentially be used for kernel and os dev. Bonus points for a toolchain which can compile itself.

There are kernels written entirely in Rust with some assembly glue. Others are writing production embedded domain-specific OSes in Haskell, OCaml, etc. for real, mission-critical systems right now and have been doing so for the last 5-10 years.

C inherently or inadvertently leads to giant codebases and subtle bugs when used too liberally, as opposed to higher-level, statically-compiled languages like Haskell and others.

The main issue with legacy code is how we choose to either keep investing effort in putting fingers into the levees or try something new in an incremental fashion.

PS: I would like to see Go get with it and support non-usermode, self-hosted and embedded development without including a giant, hard-to-port runtime in everything.

Re:Glibc getaddrinfo stack-based buffer overflow by cyphar on Wednesday February 17, 2016 @12:35AM (#11115577)
> The main reason seL4 was written in Haskell and again in C was to cross-verify behavior.

seL4 was modeled in Haskell, then written in C. Then they used tools to verify that the Haskell models matched the C code.

Re:Glibc getaddrinfo stack-based buffer overflow by cbd1984 on Friday February 19, 2016 @03:58PM (#11136571)
Do you know of a language called "C", as opposed to C?
Re:Glibc getaddrinfo stack-based buffer overflow by cbd1984 on Tuesday February 16, 2016 @11:41PM (#11115356)
I say we should write it in "Rust", as opposed to Rust.
Re:Glibc getaddrinfo stack-based buffer overflow by cbd1984 on Tuesday February 16, 2016 @08:26PM (#11114493)
> "C" to OS

There's the solution! Replace C with "C", a garbage-collected version of C! The quotes mean it's safe!

/s