r/Bitcoin • • Apr 12 '13

Buttercoin - Open Source High-Performance Bitcoin Exchange Project

[deleted] — view deleted post

1.3k Upvotes

446 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Apr 13 '13

node.js is proven to work in a highly-scalable fashion, which seems like a good fit here.

Yes you'd get gains from using haskell, but using node.js isn't an amateur decision in and of itself - with the right test-suite and similar frameworks it is productive, stable, and scalable.

1

u/[deleted] Apr 13 '13

Scalable for what, though? Yes, it can scale in the number of HTTP requests per second it can do --this is what it was made for. Is it scalable in terms of number of transactions it can model and process on the backend? The problem I'm pointing out is with respect to the actual transaction processing system. JS has no business there.

Also, while unit tests provide some assurance of quality, a type checker proves that entire classes of bugs are not present, which is something a typical unit test cannot do. What is needed here is the aid of a type checker, unit tests, and I would suggest even some formal verification/model checking. See JML and JPF for examples of what I am talking about. You can write all the JS tests You want, but you would at best be slowly reimplementing all of this QA/formal verification work that is already done on other platforms.