In terms of memory usage it’s a waste. But in terms of performance you’re absolutely correct. It’s generally far more efficient to check is a word is 0 than to check if a single bit is zero.
- 0 Posts
- 22 Comments
excral@feddit.orgto Steam Deck@sopuli.xyz•Steam Deck gets a Battery Charge Limit control in the latest Beta14·3 months agoNo, I’m not suffering the consequences I’m fearing now. Having 80% capacity is enough to last me through the day, what I’m fearing is when the capacity drops below 60%, 50% or even less which I can greatly delay by only charging to 80%.
Additionally, I’m not forever stuck at 80%. If I know I will need more capacity, I can always disable the restriction for the next charge.
My experience is that the programmers from the first row very much still exist. My theory is that the number of programmers from the first row stayed the about same or even increased slightly. There are so many more so called “programmers” overall now, however, that in relation the first row programmers are much rarer now. And to be fair, you don’t need a programmer capable of programming entire games in assembly to center a div.
It’s all based on a very fundamental mathematical law: if you increase the size of something, the volume increases with the third power while the surface area increases with the second power. An insect twice as large would be 8x as heavy and need 8x as much oxygen but 4x as much surface area.
That’s also the reason why insects are as strong as they are. The strength of a muscle scales primarily with the cross section area of it, which again scales with the second power. So if you’d increase the weight of an ant by a factor 10,000,000 (e.g. 5mg to 50kg), the expected strength would increase by 10,000,000^(2/3) ≈ 46,400. If it could lift 10x it’s weight at the original size, it could now only lift about 4.6% of it’s weight
Ladies and gentlemen of this supposed jury, is it really fair to say my client hit him, when the brick is essentially 100% empty space? And isn’t he also essentially 100% empty space so can he even be hit?
But, ladies and gentlemen of this supposed jury, I have one final thing I want you to consider. Ladies and gentlemen, this is Chewbacca. Chewbacca is a wookie from the planet Kashyyyk. But Chewbacca lives on the planet Endor. Now think about that; that does not make sense! Why would a wookie, an 8 foot tall wookie, want to live on Endor, with a bunch of two foot tall ewoks? That does not make sense!
But more importantly, you have to ask yourself, ‘what does that have to do with this case?’ Nothing. Ladies and Gentlemen, it has nothing to do with this case. It does not make sense! Look at me. I’m a lawyer defending a major record company, and I’m talkin’ about Chewbacca! Does that make sense? Ladies and gentlemen, I am not making any sense! None of this makes sense! And so you have to remember, when you’re in that jury room deliberatin’ and conjugatin’ the Emancipation Proclamation, does it make sense? No! Ladies and gentlemen of this supposed jury, it does not make sense! If Chewbacca lives on Endor, you must acquit! The defense rests.
excral@feddit.orgto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•*Permanently Deleted*English22·4 months agoIf it was as easy as giving it a nice name, you could just rename seed boxes to fair use machines.
It’s a finicky legal topic, because transformative can be anything and nothing. If you take an album and shuffle the tracks or create a mixtape from multiple albums, that is technically transformative, but most likely not enough to justify fair use.
excral@feddit.orgto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Training AI Using ‘Pirated’ Content Can Be Fair Use, Law Professors ArgueEnglish10·4 months agoBy that logic it would be legal to pirate anything as long as you do so to write a review. Because then you download it to create some transformative product, protected under fair use.
Or better idea: someone should write a tool so that anyone can publish an AI based on their pirated library thus turning it into fair use
Even Noble Prize winners are surprisingly often affected by this -> wikipedia:Noble disease
Just fly at night if you worry it’s too hot
But the problem with oil is that it’s really good
Oil is good because it’s cheap and it’s only cheap because we don’t pay the full bill. If we’d bill polluters for the full cost it would take to offset the emissions, it would quickly stop being economically viable to use oil in many sectors.
Yeah, agreed. Carbon capture won’t save us, not trees nor otherwise. We have to slow down what we are doing to the planet.
The point of my comment is that if trees wouldn’t exist, they would seem like some futuristic sci-fi solution too good to be true. Just because something is shiny new tech, it isn’t automatically better. Sure, just planting trees won’t save us if we release all the carbon that is already captured in the form of fossil fuels, but how about we stop releasing all the carbon that is already captured in the form of fossil fuels?
I’ve heard there’s a practical green solution to carbon capture. The units are practically maintenance free and power themselves with solar energy. This allows to deploy them on many small patches of land. The captured carbon is stored in solid organic compounds that may be used as building materials. It may sound to sci-fi to be true, but it’s actually just trees.
excral@feddit.orgto Ye Power Trippin' Bastards@lemmy.dbzer0.com•Nazi lives DO matter according to the mods of europe@feddit.org11·6 months agoTo add to this, the “Bundestag” is elected in a week, which is why everything is about politics right now. It doesn’t help, that the political debate in Germany is extremely heated right now.
No command line args, just change the global const and recompile
Nah, don’t use global variables, magic values everywhere. And don’t use const whatsoever, we need to move fast and break things, we can’t let something immutable stop us
excral@feddit.orgto politics @lemmy.world•A new government memo feels like it’s straight out of ‘The Handmaid’s Tale’10·6 months agoInb4 non-white children born only count as three fifths
That’s the beauty about open source: it isn’t beholden to the whims of anyone. If disagree with the Linux Foundation, you’re free to make your own independent fork. Others that agree with you can then start contributing to the fork. And this isn’t a purely theoretical scenario as it has happend with other open source projects before.
Yes, absolutely. When you look at the innovations happening to Windows recently like Copilot integration and Recall I’m glad that Linux is “boring”
To escape a body of mass you need to have enogh velocity (kinetic energy) to overcome the gravitational pull of that body. You can imagine it like a ball sitting in a bowl. With little velocity it will just roll back and forth but if it’s fast enough it can roll out of the bowl and escape it’s influence.
That critical speed is called “escape velocity” and it depends on mass and distance from a body. The escape velocity of earth (from the surface) is about 11.2 km/s and the sun’s escape velocity (from earth orbit) is about 42.1 km/s. Earth orbits around the sun at about 29.8 km/s. If you launch in the direction of Earth’s orbit, you will orbit the sun already at about 41 km/s, so you “only” need 1.1 km/s more to escape the sun, too.
If you tried to reach the sun, you could launch in the opposite direction leaving you orbiting the sun at about 18.6 km/s. Since there is almost nothing in space you won’t slow down from friction and the orbit won’t decay. Instead you’d have to accelerate opposite the direction you’re traveling. Now, calculating exactly how much you’d need to decelerate isn’t trivial since you don’t want a stable orbit but an elliptical orbit that just touches the sun at the closest point (perihel). I don’t know how much deceleration that takes, but it’s propable that it’s easier than accelerating by 1.1 km/s to escape the sun.
Is there anything more American than aliens claiming to be the true Americans?