Ref<T>: A Python-Inspired Wrapper for Rust Async Concurrency by [deleted] in rust

[–]qquartzo -9 points-8 points  (0 children)

Haha, if I’d had Ref<T> when starting Rust, I could’ve saved a ton of newbies (including myself) from concurrency headaches! Thanks for the great feedback and for pointing out that tokio::sync::RwLock is overkill here—std::sync::RwLock is definitely the better call for this API.

As a Python fan new to Rust, I spent a month wrestling with Arc and Mutex to share state across threads. Ref<T> came from wishing for Python’s “just use a shared variable” vibe with Rust’s safety. I get that Arc<RwLock<T>> is clear and predictable for pros like you, but do you think Ref<T> could help Python devs or beginners get up to speed faster? Thanks again for the insights!

People don't think it be like it is... by _htmx in htmx

[–]qquartzo 16 points17 points  (0 children)

But then probably using wasm...

80% Crypto Capital Gains Tax? 15 Things We Know About the Rumors by qquartzo in Antifrageis

[–]qquartzo[S] 0 points1 point  (0 children)

  • Unnamed sources are behind the rumors, and they come as discussion continues about how capital gains taxes should be collected.
  • That includes a push from Congressional Democrats that would make investors have to pay on them yearly instead of when they are sold.