Be sure to give your demons plenty of exercise!!
- 7 Posts
- 34 Comments
dragontamer@lemmy.worldOPto Programming@programming.dev•Datastructure for intervals across 64-bits or 128-bits??English0·1 month agoGreat answer!!
After thinking about all this for a while, I’ve gone with the basic binary tree (leaning towards AVL tree as I expect my use case to be read heavy).
In my use case, multiple ‘intervals’ can merge together without major penalty (and should be merged together). It looks like a lot of these interval trees (including ph trees) are best when the intervals need to be kept separate.
There is a part of my algorithm where ph trees might be useful though. I’ll have to give it some though.
I’m kind of shocked that a basic binary tree ended up being so usable. Its a classic for a reason, lol. I guess I saw the intervals and got confused and overcomplicated things…
dragontamer@lemmy.worldto Programming@programming.dev•Can anybody explain why CUDA and Rocm are necessary and why OpenCL isn't the solution?English0·1 month agoBecause CUDA and ROCm/HIP are far easier to program.
The Khronos competitor to CUDA/ROCm is SYCL not OpenCL.
SYCL vs these other options is a fun theoretical problem, but only Intel seems to be pushing SYCL at all. OpenCL got stuck in OCL1.2 (the 2.0 release was dead. 3.0+ OpenCL ignores OCL2.0 but it’s too late, OpenCL is seen as a dead end tech these days).
The biggest issue is that OpenCL is a different language, while CUDA/HIP/SYCL are ‘just’ C++ extensions. This means that if you ever shared data between CPU and GPU in OpenCL (or DirectX or Vulkan for that matter), you have to carefully write and rewrite structs{} to line up between the two languages.
Meanwhile, CUDA/HIP support passing structs, classes and more between CPU and GPU (subject to conditions of course. GPUs can’t do function pointers or vtables for example, but cpu-only classes can have vtables)
dragontamer@lemmy.worldto Technology@lemmy.world•Trump to impose 25% to 100% tariffs on Taiwan-made chips, impacting TSMCEnglish0·4 months agoIf you optimize code, it will still run faster if the CPU or GPU is 30% faster.
If you make 50% speed improvements with code, you get 65% improvement with code+hardware upgrades. The hardware multiplies your software gains.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish7·4 months agoDid you forget about the election?
Immigrants from Springfield, Ohio are eating cats and dogs.
And now Trump is moving for mass deportations.
The good news is that Trump is ignorant and bad at his job. I dunno how long it’d take to setup detention camps for immigrants but it’s definitely coming.
I’d say that any Hispanic or Latino, even Puerto Ricans, are at risk. Depending on which state you are in. Arizona is known to throw out US Citizens for deportation if the sheriff thinks you look funny.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish9·4 months agoThe fucker paid for Pennsylvania votes last election. Literally paid for them.
He grew up in Apartheid South Africa and calls his African American workers ‘Plantation’ and none of them can move up the ladder in any of his companies.
He God damn knows what he is doing.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish14·4 months agoSee for yourself.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish128·4 months agoWe need to save and remember this moment. The assholes are already rewriting history as we speak.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish31·4 months agoBiden was a Charismatic leader?
Look, the shitty excuses already began.
Their eyes are still closed. Unless you walk up to that neighbor in the next day or so and show him the clip, he won’t see it or believe it.
Hell, it’s already too late and your neighbor is probably already making excuses about how Elon Musk is just sharing his hearts energy or some shit.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish4·4 months agoWhat we have here is Elon Musk helping out on Trump’s branding.
Even Team Trump, as fascist as they are, are being run by entire teams of teams. The spokespeople are just that, speakers.
A leader doesn’t make the decisions. The leader just unifies the people.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish41·4 months agoIf there is a leader, any leader at all, who’d try to lead the progressive cause? And one that people would really behind?
That’d be a good first start. Even celebrities like Jack Black.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish73·4 months agoNo. I’m just aware of the need for a charismatic leader.
Civil rights had Martin Luther King. Among other leaders. The idea of doing this without leadership is the fundamental flaw.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish49·4 months agoCool.
Give me a name. And stop stalling.
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish68·4 months agoAnd who will lead this revolution? Biden? Kamala?
Go on. Who is the leader? Do we just gotta all rally behind Jill Stein now?
dragontamer@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this is a real image is infuriatingEnglish931·4 months agoFrustrating but predictable.
Personally I’m pretty happy with how fucking awkward Elon was while doing it. The whole gif is really cringe.
It’s a long way to 2026 folks. We are going to have a lot of Federal Level damage in the next couple of years. Even if Democrats get elected in 2026+ we will have absurd debts to pay and likely be forced to raise taxes and be the bad guy again.
dragontamer@lemmy.worldto Technology@lemmy.world•TikTok says it is restoring service for U.S. users, thanking TrumpEnglish0·4 months agoThose NPCs are going to be part of American Politics for the next 20 years.
This isnt a laughing matter. This is the new reality of politics for at least 4 years and with serious possibilities for decades or even a century.
dragontamer@lemmy.worldto Technology@lemmy.world•TikTok says it's restoring service to US users based on Trump's promised executive orderEnglish0·4 months agoUhhh, Trump is literally the executive.
He just commands the FCC or other authorities to ignore TikTok. He can extend this ban evasion for all 4 years if he wants.
Congress and Supreme Court do not control the executive powers. The President does.
DBZ Demons confirmed.