TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 dribel将近 6 年前
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 条评论

davismwfl将近 6 年前
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).
steveklabnik将近 6 年前
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.