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: Going All-In on Rust

15 pointsby itsmefazalmost 3 years ago
I am a full-time engineer working for an MNC where the tech stack is Java &#x2F; Python. Outside of work, I spend most of my time in competitive coding and teaching programming to friends&#x2F;family.<p>I am looking to transition to Rust for all my side projects (and possibly everywhere in the near future). I don&#x27;t have any specific reason for this transition other than to move away from Java &#x2F; Python.<p>I want to continue my competitive coding practice and my side projects that are mostly low-level systems. I am looking to build a niche for myself and see Rust as an escape (something I can explore and grow with). I might be overplaying my hand here, any suggestions would be helpful.<p>Is there anything to keep in mind before I take this plunge?

8 comments

reil_convnetalmost 3 years ago
I worked fulltime in Python (Deep Learning and web services for around 10 years) and used Go for some projects in past. I recently introduced Rust as a language for some server side logic and desktop app. Some observations: 1. Rust coding takes time. Something you would write in an hour in Python would take a day in Rust. 2. Rust code is almost always faster. 3. Rust almost will never cause an exception in production if you are not just doing unwraps and expects everywhere. This sometimes feels a lot of work while coding. In python, I almost always end up solving some production exceptions despite of writing tests. Not a fault with Python btw, you could always write better tests. 4. Writing Python is more enjoyable. However, you know you will never be able to write stuff in Python that you can in Rust. I think of Rust as a good compromise for a Python programmer to write low level code without learning C++. Being productive in C++ will take years, being productive in Rust takes a few months. Rust is like C++ but written with high level language features. 5. There are other fast languages which would be better for a Python developer like Nim, but they have no library ecosystem. Rust has almost got a good library for everything I need it for (just like Python).
评论 #32255451 未加载
mecsredalmost 3 years ago
Why make the transition so dramatic? Write one project in Rust, see how it feels. How much did you learn, from which challenges? Complete a competition with your solution in Rust. How was your performance, what benefits did the language offer in your solution? I think if you tackle those two things you can answer your question about the rest of your work better than any HN comment.
评论 #32255179 未加载
tgflynnalmost 3 years ago
What kind of competitive coding ? If it&#x27;s the kind where the first to code a working solution to a relatively small problem wins I don&#x27;t think I would choose Rust for that.
评论 #32254495 未加载
jmartin2683almost 3 years ago
Read the whole book, cover yo cover. That’s about it.<p>I adopted rust a while back and have since ported basically everything to it, even at work. It’s my new best friend, for sure.<p>The best advice is just to keep going.
throwaway41413almost 3 years ago
I have a feeling writing something in Rust takes whole day, while writing same code in Python is less than 1 hour.
mdcdsalmost 3 years ago
Keep in mind reasons why you want to move away from Java&#x2F;Python.<p>Perhaps there is a different language that can fit the bill.
oxffalmost 3 years ago
Work. You want to check you can be employed with it if you go all-in.
评论 #32254599 未加载
b20000almost 3 years ago
if you want to learn low level programming learn C and C++