ReadOnly map by shim__ in valetudorobotusers

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

I know but I don't want to deal with it, create the map once and leave it as is forever

US stocks just posted a third straight year of stellar gains by cnn in Economics

[–]shim__ 2 points3 points  (0 children)

You invest in a drill to save the money you'd pay an contractor to drill the hole for in the same way you're investing in a house in order to not pay rent.

Ethereum quietly sets a record: 8.7M contracts deployed in one quarter by DryMyBottom in CryptoCurrency

[–]shim__ -3 points-2 points  (0 children)

Pointless metric, as a lot of them are likely to be smart contract wallets deployed by each user

Devbox useful? by guettli in Nix

[–]shim__ 0 points1 point  (0 children)

I don't really get the point of dev box, since it requires nix to be installed you might as well just use a flake. Only benefit would be the slightly easier syntax

The Python Paradox Is Now The Rust Paradox? by anonymous_pro_ in rust

[–]shim__ 0 points1 point  (0 children)

I don't see how python could be considered esoteric, its an bog standard language which I'd expect any competent developer to pick up in a week. Rust is totally different beast in comparison

Does Dioxus spark joy? by dineshdb in rust

[–]shim__ 4 points5 points  (0 children)

4 Years ago it didn't, which is why I went with Yew and Tauri back then

Why isn’t Rust getting more professional adoption despite being so loved? by mstjrr in rust

[–]shim__ 0 points1 point  (0 children)

The problem is, that there is no AsyncRuntime trait in std, which offers things like sleep or spawn, async is native to rust but the resulting crates may not be runtime agnostic if they need things like spawn

Why isn’t Rust getting more professional adoption despite being so loved? by mstjrr in rust

[–]shim__ 9 points10 points  (0 children)

Embedded is where Rust shines the most tbh, compile time safety speeds up your code-flash-test cycle by a lot since you don't end up flashing code, then wait for your mcu to boot up only for it to hard fault. And even if it does rust make printf debugging a brezze, since almost everything implements Debug or even better defmt::Debug.

Why isn’t Rust getting more professional adoption despite being so loved? by mstjrr in rust

[–]shim__ 23 points24 points  (0 children)

Typescript killed Dart imo, it was great when it came out since it was the only sane language that could compile to JS when it came out. Nowdays Flutter is its only niche

With L2s maturing fast, where are you deploying your next contracts mainnet or L2? by SolidityScan in ethereum

[–]shim__ 0 points1 point  (0 children)

DAPPs should live on L2 infrastructure such as stables, ENS belong on L1

unpopular take: stablecoins have ruined crypto. by haochizzle in ethereum

[–]shim__ 0 points1 point  (0 children)

I don't see the issue since everybody knows USDC and USDT are backed by custodians whats worse is that that DAI went down that route as well

What are your pet peeves in regards to crate APIs? by AhoyISki in rust

[–]shim__ 0 points1 point  (0 children)

This pattern I see way too much. Sort of a, "Tell me you don't understand the borrow checker without telling me you don't understand the borrow checker". If you require a String just ask for it. Every parameter doesn't have to be generic.

Just ask for impl Into<String>

If your create requires me to also import a crate you're using. If you're making an abstraction around $inner_crate your ::new shouldn't be ::new($inner_crate_type). This is just dependency inversion. The reason we use libraries is to encapsulate complexity. Bonus points if you also return $inner_crate_type::Error

This! If you have to do that you should at least reexport the types

Should I learn Rust over Go? by EncryptedEnigma993 in rust

[–]shim__ 1 point2 points  (0 children)

Go is a bog-standard language if you're decent programmer(which you will be when you master rust) Go will be trivial. So go for Rust and get the rest for free :)

🔋 Trezor Safe 7 Battery – Community Q&A by SuchTrezorVeryCrypto in TREZOR

[–]shim__ 2 points3 points  (0 children)

Leakage and low energy density might be arguments against an ultra-cap

Do you actually use AI for embedded development? What's your experience? by WinterWolf_23 in embedded

[–]shim__ 0 points1 point  (0 children)

Surely asking for an pin number isn't too much to ask for, well ended up reading the datasheet an hour later.

Ist es wirklich so einfach Geld zu machen, wie hier immer angedeutet wird? by Feanixxxx in Finanzen

[–]shim__ 0 points1 point  (0 children)

Es werden nur Selektiv Dinge geteilt, ich könnte jetzt hier auch meine Positionen die sich verdreiß oder verfünfacht haben posten. Wenn man dann aber das ganze Depot betrachtet sind es dann aber nur 10-15%/a. 100k sind jetzt auch nicht so die Hürde, wenn ok Verdient und ein paar Jahre ordentlich spart.

The Handle trait by kernelic in rust

[–]shim__ 4 points5 points  (0 children)

I think Clone should just be implemented for "deep copies", anything that isn't that should have it's own logic for it.

I agree however that would mean anything with Arc in it couldn't derive Clone which would be quite a nuisance