News for hackers. Stuff that matters.
Re:My Kid Will Never Hack Linux by toast0 on Wednesday May 17, 2017 @12:17PM (#14359933)
> Do we not want the next generation to exclusively use safe languages?

Someone has to write (and maintain) the safe languages.

Re:My Kid Will Never Hack Linux by PeterisP on Wednesday May 17, 2017 @01:29PM (#14360657)
You can easily write the compilers/interpreters/other tooling in high level, memory safe languages. Not all, but quite a few of those safe languages have their tooling built in the same language

PyPy is written in Python, golang has a compiler made in go, etc. Many others do rely in part on LLVM, but in the "long future" there's no technical reason why a common component like LLVM has to be written in C/C++, who knows, people might switch to something else written in a memory-safe language.

Re:My Kid Will Never Hack Linux by moosingin3space on Wednesday May 17, 2017 @12:50PM (#14360267)
Counterexample: Rust compiler is written in Rust.
Re:My Kid Will Never Hack Linux by PeterisP on Wednesday May 17, 2017 @01:30PM (#14360668)
Doesn't Rust compilation rely on LLVM for all the actual compilation from IR to machine code?
Re:My Kid Will Never Hack Linux by kibwen on Wednesday May 17, 2017 @01:42PM (#14360804)
For now it does, but there's an upcoming experimental alternative backend written in Rust. Furthermore, there's no reason that LLVM has to be written in C++, it was just the best choice available when LLVM got started 15 years ago. Suffice to say, there are higher priorities for the Rust project than porting LLVM. :P
Re:My Kid Will Never Hack Linux by moosingin3space on Wednesday May 17, 2017 @02:33PM (#14361389)
Yes, but there is a research project here that replaces LLVM for codegen: https://github.com/stoklund/cretonne
Re:My Kid Will Never Hack Linux by nv-vn on Wednesday May 17, 2017 @12:21PM (#14359966)
Not like it requires C to implement a new language.
Re:My Kid Will Never Hack Linux by Jtsummers on Wednesday May 17, 2017 @01:19PM (#14360552)
This is a remarkably common belief and it bugs me to no end. I don't know why, but many people have developed this conviction that C is required for computers to work, that that's the baseline of computation. This comes from both novices and experts. I haven't figured it out.
Re:My Kid Will Never Hack Linux by moosingin3space on Wednesday May 17, 2017 @02:48PM (#14361588)
The C Abstract Machine looks like a generic machine based on the Von Neumann architecture, so it "feels" like it should be fundamental. Add in some sunk-cost fallacy, and a lot of people end up with the belief that C is fundamental to computing, despite the existence of systems that do not use any C.