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: Resources to learn high-performance C++/Rust?

10 pointsby o10449366almost 3 years ago
I&#x27;m a programmer that&#x27;s mostly worked with Python so far in my career. At various points, I&#x27;ve run into performance bottlenecks that others have solved by writing high-performance libraries in C++ and Rust, mainly for things like data iterators and network servers.<p>What are some good resources to learn how to write high-performance and low-latency code that can interface with popular languages like Python in 2022? There are a lot of open-source libraries I can analyze and study, but often I feel like the techniques and optimizations they use go way over my head.

1 comment

kibwenalmost 3 years ago
This may be a bit of a cop out, but compiled, runtimeless languages are so astonishingly faster than Python on average (especially for things like numeric computation in loops) that you don&#x27;t actually <i>need</i> to go out of your way to write optimized code. If this is your first systems-level language, the I&#x27;d say just focus on getting your head around things like pointers and the stack vs. heap, and you&#x27;ll find that your code will be plenty fast. Only then,if you really really need more optimization, will it be worth your time to learn about advanced optimization techniques.
评论 #31870434 未加载
评论 #31870808 未加载