2 ms·
If there was a list of a use cases for typed, "safer" languages, crypto-currency would be near the top of the list. I can't think of any technical, risk-relate
by teacup50 13y ago
If there was a list of a use cases for typed, "safer" languages, crypto-currency would be near the top of the list.
I can't think of any technical, risk-related, or financial justification for implementing a core piece of crypto-currency infrastructure in Javascript, on Node.
It seems fairly clear that while Bitcoin itself may be a very well designed crypto protocol, the people doing the implementation are woefully underqualified.
- aaron-lebo 13y agoI 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..