3 ms·
I think part of the reason you might see some bugs in the Bitcoin code is because it is C++ code managing low level things like memory and threading. You don'
by aaron-lebo 13y ago
I think part of the reason you might see some bugs in the Bitcoin code is because it is C++ code managing low level things like memory and threading.
You don't get static typing with nodejs, but you can probably simplify the implementation somewhat by not dealing with low level details and therefore actually get some safety. But aside form that justification there is also the fact that a lot of people won't touch C++ and a code base like this allows a lot more developers to read and understand the protocol.
I guess the ideal implementation would be a modern statically typed language like Rust, Go, or Haskell.
- oscargrouch 13y agoC++ is not for scared kids.. C++ is the katana of programming languages: powerful, but you must know how to use it to avoid cut yourself.. and i think the bitcoin core in c++ is being implemented in other softwares as well.. and im pretty sure that this is happening BECAUSE it was created in C++ (only C could also be a fit here) So kudos to Satoshi whoever he is for this..