Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: What language would you use to build Bitcoin today?
6 points by simonebrunozzi on March 28, 2021 | hide | past | favorite | 5 comments



Obviously Whitespace : https://en.m.wikipedia.org/wiki/Whitespace_(programming_lang...

But if my task is more specifically about fucking up the environment by wasting energy in datacenters, I would go with any JVM based programming language, like Java.


The jvm is too evolved--has jit native code generation. Consulting the benchmarks game[0] shows Perl is the winner.

It shows Matz's Ruby being slower, but there's 'Ruby' that edges out Perl.

[0] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...


As we might know, Bitcoin is written primarily in C++. This was probably a good choice back in 2009 or so.

If you were to invent/build Bitcoin today, would you still use C++? Or else? And if else, why?


I don’t know enough to answer but I can say Bitcoin is tempting me to learn c++ to understand it. And it’s purely geek motivations not profit. A goal would be to contribute to the codebase and I’m happy if I could get there in 2 years.

I’m quite fatigued with regular web dev feature implementation programming but something more “pure CS” like Bitcoin would be a lot of fun and I’ve always wondered how P2P systems work at the nitty gritty network level


Looking at other blockchain/P2P tech, Go or Rust seems like the most common choices.

Personally I'd go for Rust since I prefer a proper type system, but Go has strengths in its simplicity.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: