related posts
10 sats \ 5 replies \ @halalmoney 16 Feb 2023
Extract:
“As a piece of C or C++ code gets bigger and bigger, it’s possible for even the most careful coder to make lots of memory mistakes, filling the software with bugs.”
reply
0 sats \ 4 replies \ @mallardshead 16 Feb 2023
The gigachad fuck stack:
Carbon/C++
Typescript/Javascript
Python
The chad fuck sometime stack:
Rust
Swift
Go
The fucking loser stack:
Java
ASM
Haskell
reply
0 sats \ 3 replies \ @jk_14 16 Feb 2023
C for full control and maximum speed in critical apps
Go for fast writing of non-critical apps
reply
26 sats \ 2 replies \ @petertodd 16 Feb 2023
C does not give you full control. Modern C compilers are extremely complex beasts, that do all kinds of unexpected optimizations. They also are limited in what optimizations they can perform, due to the fact that C code can't express things like ownership. So C compilers have to be pessimistic in many situations.
Rust just as fast as C, and gives you just as much control. But if you choose to use the safety features, it's far safer. The only reason not to use Rust instead of C is if your particular tool chain just doesn't have Rust support.
Comp-sci has moved on. C has simply become almost entirely obsolete, in a similar way to how raw assembly is almost entirely obsolete.
reply
0 sats \ 0 replies \ @jk_14 16 Feb 2023
OK, in my niche I'm using C and gcc, due to gigantic amount of binary data to process ultrafast...
On another subject:
There is only one situation which may trigger consensus for Bitcoin hardfork: quantum computing threat, which is impossible to solve with soft fork only. And it would be a good opportunity to simultaneously fix long term security budget problem...
We have got a single chance for having decentralized money. It looks like there is less and less devs saying: "two orders of magnitude is missing only"
reply
0 sats \ 0 replies \ @nkmg1c_ventures 16 Feb 2023
Modern C++ (post 2014) is a pretty nice in-between
reply
0 sats \ 0 replies \ @cryptocoin 17 Feb 2023
See also another post, found here on SN, with an additional take on why to consider Rust:
This programming language could halve the land used by data centers
#138107
https://interestingengineering.com/innovation/rust-can-halve-data-center-land-use
reply
0 sats \ 2 replies \ @mallardshead 16 Feb 2023
Probably gets rapidly replaced by Carbon over the second half of this decade
reply
0 sats \ 1 reply \ @snakedye 16 Feb 2023
https://github.com/carbon-language/carbon-lang
It seems like Carbon developers disagree.
reply
0 sats \ 0 replies \ @nkmg1c_ventures 16 Feb 2023
Kotlin was pretty nice when I had to use it for work, lots of nice built-ins that made it a lot more pleasant and maintainable than Java.
reply