You are viewing a single thread.
View all comments View context
3 points

Threads giving you race conditions? All concurrent programming will do that if you’re shit at it.

Well, if you write Rust then there won’t be race conditions.

permalink
report
parent
reply
1 point

Only in the context of data within the rust code. If you’re writing threaded rust that interfaces with external IO, for example, you can still get bit by a race condition. A person can absolutely be shit enough to hit a race condition in rust.

permalink
report
parent
reply
2 points

interfaces with external IO

How would you run into a race condition like this with safe Rust? You can’t share mutable file handles between threads for example. I’m not sure you’re correct in saying its still possible. Even if it is, it doesn’t sound easy.

permalink
report
parent
reply
1 point

Rust is great, and I truly mean that. But saying you can’t get race conditions in Rust is just not true.

And also, not everything is going to be written in Rust. When the company you’re working for needs a web application quickly, that’s better done in other languages.

And also also, Spring has a lot of niceties when it comes to concurrency that make this much less of a point.

permalink
report
parent
reply
2 points

You can’t get data races at least, and in practice it’s very difficult to get actual race conditions.

permalink
report
parent
reply

Greentext

!greentext@sh.itjust.works

Create post

This is a place to share greentexts and witness the confounding life of Anon. If you’re new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

  • Anon is often crazy.
  • Anon is often depressed.
  • Anon frequently shares thoughts that are immature, offensive, or incomprehensible.

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

Community stats

  • 6.9K

    Monthly active users

  • 976

    Posts

  • 23K

    Comments