TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Rust or Go for building an order execution engine in crypto?

2 pointsby dribelalmost 6 years ago
My company is building an order executor in crypto optimized for high through put into several exchanges.<p>I know that Rust is slightly faster, but I assume that over the course of the next 5 years, the nano second will not matter while I also think that one is more productive in Go. What do you guys think?

2 comments

davismwflalmost 6 years ago
I have built lots of super performant systems in C &amp; C++ but not for crypto specifically. Almost every time I ran tests to see if we could use something more productive, I absolutely love C&#x2F;C++ but I recognize there are safer and more productive (subjective) languages and tooling for a team as a whole many times.<p>So I&#x27;d actually side with your productivity thought on this, but would want to validate it some. If the difference in performance is a few ms 95% of the time and that is good enough given volume then I&#x27;d go with the most productive tooling. Another point, if your team knows Go and not Rust, I&#x27;d immediately just use Go first, you can always optimize if really needed later. When you try to learn a language while trying to build a detailed product that has a lot of performance requirements it is super hard to do it correctly the first time in.<p>That said, if the difference is a few ms but you are running millions of transactions a day then those ms do matter in terms of infrastructure costs, so you&#x27;ll have to balance that thought. Most likely if this is the first time you guys are building the order executor you&#x27;ll likely have need to touch it (from an architecture point) again in the next 6-12 months so I&#x27;d just use the most productive tooling first and learn what you need to and then implement it differently the next time (if needed).
steveklabnikalmost 6 years ago
I’m not a cryptocurrency enthusiast, so take this with a grain of salt, but there’s a <i>lot</i> of Rust in it. Like, some of the earliest non-Mozilla jobs were in cryptocurrency. Various companies sponsored our conferences. And of course, there’s Libra.