I mean it could be Mutex, or Rwlock or anything atomic. It’s just when I have to put stuff into an Arc<> to pass around I know trouble is coming.
- 0 Posts
- 8 Comments
You’ll be fine. You will learn the lifetime stuff and all will work out. It’s not that bad to be honest.
I mean yah. That’s what it takes. But like when I try to write code around Arc<_> the performance just tanks in highly concurrent work. Maybe it’s an OOP rust skill issue on my end. Lol.
Avoiding this leads, for me at least, to happiness and fearless, performant, concurrent work.
I’m not a huge fan of go-lang but I think they got it right with the don’t communicate by sharing memory thing.
Skill Issue.
For reals though adopting a functional style of programming makes rust extremely pleasant . It’s only when people program in object oriented styles that this gets annoying.
No loops, and no state change make rust devs happy devs.
mholiv@lemmy.worldto Technology@lemmy.world•The "standard" car charger is usually overkill—but your electrician might not know that [32:26]English1·22 days agoI don’t think overprovisioning is a thing that is realistically is a problem in the U.S. or in Germany. I know that modern homes tend to have 300amp mains. Older homes 100amps. You would have to have a house that was wired in 1920 in order to have a 20amp mains available. In that case you have bigger issues safety wise.
mholiv@lemmy.worldto Technology@lemmy.world•The "standard" car charger is usually overkill—but your electrician might not know that [32:26]English2·22 days agoOhh! I spent some time in the U.S. and there are 230v mains available. They just have special plugs. All homes have 230v. It’s just not available through the shocked face plug.
mholiv@lemmy.worldto Technology@lemmy.world•The "standard" car charger is usually overkill—but your electrician might not know that [32:26]English8·22 days agoThe way that it works in most countries is that the breakers are per circuit in your wall. The breakers trip in order to prevent that single circuit from overheating and starting a fire in your walls.
Let’s say you have a wire that’s rated for 16amps. More than that and it becomes a fire risk just threw overheating. @230v that gives you 3680w per circuit.
If you have your industrial microwave, water heater, and car charger all going at the same time on that same circuit. This will draw way more than 3680w and thus would go over that 16a limit.
The breakers trips once you go over that 16a limit for safety. It’s a good thing. This all being said no sane electrician would put those three things on the same circuit. lol.
Circuit breakers are actually what enable you to safely over provision. Without them fires would just be a matter of time.
I know it works this way in the U.S. and Germany at least.
Hot take. Under semantic versioning everything after vista has been in essence a new version of vista.
Going from NT 5.x to 6.x was a major jump.
The reason why Vista had no/terrible drivers was because they went from an insecure one driver bug crashed the whole system model to more secure isolated drivers that don’t crash the whole system model. Developers had to learn how to write new drivers and none of the XP drivers worked.
They went from a single user OS with a multi user skin on top, to a full role based access control user system.
They went from global admin/non-admin permissions to scoped UAC permissions for apps.
Remember on Vista when apps constantly had that “asking for permissions” popup? That was the apps not using the 6.x UAC APIs.
Given the underlying architectural situation everything since Vista has been vista with polish added (or removed depending on how you look at it)
Things will go beyond vista when a new major release with new mandatory APIs shows up.