News for hackers. Stuff that matters.
Re:Ask HN: What technologies will we still be using in 20 ye... by PaulHoule on Tuesday December 14, 2021 @01:02PM (#29554898)
I hate to say it but I think C and C++ will still be there.
Re:Ask HN: What technologies will we still be using in 20 ye... by ozzythecat on Tuesday December 14, 2021 @01:27PM (#29555260)
I agree. I’ve been getting more and more into rust. It’s actually very elegant and feels fun, but writing production code for anything serious has turned into a massive battle against the compiler and borrow checker. Learning curve is steep and I still struggle over a year later.
Re:Ask HN: What technologies will we still be using in 20 ye... by PaulHoule on Tuesday December 14, 2021 @01:55PM (#29555715)
What's depressing that many people who are struggling with Rust are struggling to write very simple things such as unix tools like 'cat' and 'grep'.

I write C code for AVR8 where the C calling conventions, the stack, etc. are a problem and not a solution. In my mind for relatively simple programs and I can split the program into a few clear layers and if I was writing assembler I could allocate some of the registers to some of the layers (e.g. limited or no flushing of registers in interrupt handlers) and statically allocate RAM ahead of time.

I never get around to switching to assembler because the AVR8 is a dead end and if I really want better performance I can recompile my C code to a much more capable ARM or ESP32.

When I was working on rule-based systems I had this idea of "rules and schemes" where the rules are kept separate from the "schemes" which determine how the rules are applied, what order, etc.

I've thought the idea of separating programs into a core and layers of commentary could be useful in various ways. For instance a language like Rust might have a proof that memory allocation works separate from the main part of the program.

Re:Ask HN: What technologies will we still be using in 20 ye... by brianhorakh on Tuesday December 14, 2021 @04:19PM (#29557941)
Rust is infectious, its well named. Once there is a rust interface its better, and not for nothing but wasm makes rust a true polyglot.

C++ is inferior, but also older and better known, easier to hire competent people TODAY. 20 years, c++ maintenance will be a big industry, but AI CODEX (combined with fuzzers and auto regression) could also probably accurately transpile & test a lot c++ accelerating this.

Rust is integral to the EXCITING aspects of the linux kernel such as ebpf w/ io-uring that will eat modern k8 and other ecosystems like a blackhole. These are billion dollar markets that will principally disappear due to the kernel abstracting & obviating the need for them. Companies will move on for the security aspect, unfortunately because new threats require attention.

Rust devs & shops will spend a a significantly smaller fraction of their time troubleshooting code in the field & on smaller more efficient devices and certainly have less security issues as well. C++ will still exist in 20 years, but will be not in vogue. Anybody who thinks rust is hard clearly hasnt attempted c++ imho.

Typescript, python will also remain popular for other reasons.

Re:Ask HN: What technologies will we still be using in 20 ye... by tmaly on Tuesday December 14, 2021 @01:20PM (#29555172)
I came here to say the same thing. There is such a large code base of C, its hard to imagine it being replaced.

Just think of how much Cobol is still out there