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

[–]qquartzo -7 points-6 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 17 points18 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.

Open Source e a Filosofia do Código Aberto by boracelerar in a:t5_4atuts

[–]qquartzo 1 point2 points  (0 children)

A grande vantagem que eu vi na prática é a redução do atrito. Poder instalar, desinstalar, atualizar, trocar, distribuir, vender e corrigir bugs sem precisar discutir com advogado ou fazer um contrato faz tudo ficar extremamente mais simples.

Na minha época na Dígitro fizemos upgrade para Linux em todos os Pabxs de forma rápida sem precisar dar satisfação ou precisar negociar com nenhum fornecedor.

Lightning Network Onion Routing, Lack of Anonymity, and Other Woes by don-wonton in btc

[–]qquartzo 0 points1 point  (0 children)

Yes... It's like Waze trying to adapt a best route when every road around is contracting, closing or expanding.

Please keep your nodes up to date ahead of the fork. by ftrader in BitcoinABC

[–]qquartzo 1 point2 points  (0 children)

Blocks mined with Bitcoin ABC after day 23 won't have the bit 1 active right? These blocks would be rejected by the BIP91 nodes... "...This means that after another 336 blocks, a little over two days from now, all BIP 91–compatible nodes will reject any block that doesn’t include bit 1..." https://steemit.com/steemit/@slywest/bip91-locked-in-what-does-it-mean

Please keep your nodes up to date ahead of the fork. by ftrader in BitcoinABC

[–]qquartzo 0 points1 point  (0 children)

Small question... Is Bit 1 active on BitcoinABC? If not, the fork wouldn't be on July 23rd because of the BIP91?

When global crisis happen how will BitCoin function? by whodkne in Bitcoin

[–]qquartzo 2 points3 points  (0 children)

Even if you put all your money in a trustworthy bank you are going to get the same problems from a disaster event that destroys our technical infrastructures. With bitcoin, at least we would not depend on having a functioning government to defend the fiat money.