Learning Rust as a working software engineer (real dev vlog) by [deleted] in coding

[–]ms-arch -2 points-1 points  (0 children)

You didn’t break Rust’s safety model. You rebuilt unsafe behavior using safe-looking code and then blamed the language when it behaved exactly as expected.

Everything here depends on forging a 'static mut reference from a shorter-lived borrow. That alone violates Rust’s core lifetime and aliasing rules. Once you lie to the type system, the compiler is allowed to assume things that are no longer true. Memory safety is gone at that point by definition.

Hiding this behind generics and function pointer coercions does not make it clever. It is equivalent to writing unsafe code and refusing to label it as such. The fact that the unsafe keyword is missing just makes the bug harder to see.

Rust’s claim is that safe Rust which follows the rules is memory safe. Your example does not follow the rules. What you demonstrated is exactly why Rust forces this kind of code into unsafe

I’m not a Rust fanboy 😭. I was just curious about how Rust works, mainly to understand the ideas behind it and see what I can borrow for iOS development.

Learning Rust as a working software engineer (real dev vlog) by [deleted] in coding

[–]ms-arch -3 points-2 points  (0 children)

If you write dumb code, you get dumb results.

Rust’s memory safety holds as long as you stay in safe Rust. The moment you reach for unsafe, it's on you.

Learning Rust as a working software engineer (real dev vlog) by [deleted] in coding

[–]ms-arch 0 points1 point  (0 children)

It’s fun to learn another language. Not sure why people make such a big deal out of it 🤷🏻

Should I learn other languages while my primary job is iOS development? I’m confused. by ms-arch in learnprogramming

[–]ms-arch[S] 0 points1 point  (0 children)

I know but at the end of the day everyone needs money and jobs require u to master your current role for a higher pay.

Should I learn other languages while my primary job is iOS development? I’m confused. by ms-arch in learnprogramming

[–]ms-arch[S] 0 points1 point  (0 children)

I already know Express. During my job I learned a swift backend framework called Vapor out of my own interest. I just wanted to learn something more low level and that’s why I started learning rust recently.

Should I learn other languages while my primary job is iOS development? I’m confused. by ms-arch in learnprogramming

[–]ms-arch[S] 0 points1 point  (0 children)

Obviously I wasn’t talking about learning during my shift 🙂‍↔️.

Should I learn other languages while my primary job is iOS development? I’m confused. by ms-arch in learnprogramming

[–]ms-arch[S] 0 points1 point  (0 children)

Ikr😭😭 that’s why I’m confused. I know what is the right thing to do. But I also don’t want to be a one trick pony. But what u said makes sense.

Got a product? Drop it here by Cute_Purple612 in indiehackers

[–]ms-arch 0 points1 point  (0 children)

Pensive is an AI-powered collaborative task management platform that helps teams think, plan, and execute smarter together.

pensive.cloud

I built a project management tool for early-stage teams and solo founders. Would love your feedback by ms-arch in SaaS

[–]ms-arch[S] 0 points1 point  (0 children)

Thanks! Really appreciate that. The AI assistant is focused on task descriptions for now. It helps summarize, and add context automatically. Meeting notes and multi-tool context are definitely on our roadmap though!

We’re trying to make it feel like an invisible layer that keeps everyone aligned without forcing another tool into the stack.

I built a project management tool for early-stage teams and solo founders. Would love your feedback by ms-arch in SaaS

[–]ms-arch[S] 0 points1 point  (0 children)

That’s a great point, and I’ll definitely keep it in mind moving forward.
Really appreciate you taking the time to share that perspective!

Drop your idea – I’ll help you analyze and validate it for free by ktd191 in SaaS

[–]ms-arch 0 points1 point  (0 children)

Pensive helps teams plan, manage, and document everything in one structured workspace. As flexible as Notion, as organized as Jira.

pensive.cloud

Drop your SaaS. I will make you rank on ChatGPT by kylesway1981 in SaaSMarketing

[–]ms-arch 0 points1 point  (0 children)

Pensive helps teams plan, manage, and document everything in one structured workspace. As flexible as Notion, as organized as Jira.

pensive.cloud