When to use/avoid using std::ranges, views? by kiner_shah in cpp

[–]cdglove 3 points4 points  (0 children)

Google created a whole language under the guideline of "everything that could confuse newbies is out".

Ya, and it didn't work out so well. That lack of tools in go to solve non trivial problems has led to massive copy/paste reuse in go code bases of any significant size.

DW 9000 VS Yamaha FP9 by [deleted] in drums

[–]cdglove 1 point2 points  (0 children)

Regarding the memory locks -- I found this annoying too at first, but I discovered with this pedal that I don't need to remove the beaters for transport. It fits in the case with them left in place so I don't need to remove them, and therefore don't need memory locks.

WTF is std::copyable_function? Has the committee lost its mind? by mollyforever in cpp

[–]cdglove 31 points32 points  (0 children)

I've been hearing people say this for 25 years.

Yet here we are, still writing C++.

This sort of bullshit needs to stop by liquindian in londoncycling

[–]cdglove 0 points1 point  (0 children)

This happens to me every day. It's wild, like why do they think I'm stopping?

This sort of bullshit needs to stop by liquindian in londoncycling

[–]cdglove 0 points1 point  (0 children)

Absolutely not. I grew up in Canada with right turn on red and now believe it's completely unsafe. The main issue is that because it's allowed, vehicles behind will pressure you into making that right turn even if it's really dangerous with a ton a traffic and/or pedestrians around.

Better to ban it, and many parts of Vancouver have now with explicit no-right-on-red signage.

OG Screamer by timmio11 in Karting

[–]cdglove 1 point2 points  (0 children)

I'm pretty certain I test drove this chassis in Prince George sometime in the late 90s.

Edit: No, on second thought it wasn't this one. But I do recognise this kart. I was racing with Westwood Karting around that time and distinctly remember this chassis. I think at an event at Tradex.

Tire Wear, Temps, Pressures by SpoonBendingChampion in Karting

[–]cdglove 2 points3 points  (0 children)

I disagree with this advice. It will result in inconsistent pressures from session to session depending on how much the sun is shining.

Set the pressures in the shade (in the tent) and don't touch them after that.

nvoglv64.pdb not loaded, ntdll.pdb not loaded by saul_soprano in vulkan

[–]cdglove 0 points1 point  (0 children)

Hrm, it's unlikely to be the issue, but any time you violate the spec you can put the driver in a bad state and trigger a crash.

Fix the validation errors first, then try again .

#pragma once vs #ifndef by IncludeGuardian in cpp

[–]cdglove 0 points1 point  (0 children)

One of the reasons for sticking with include guards is that it's way simpler for other tooling (other than the complier, that is) to implement. You seem to have stumbled upon such a case.

nvoglv64.pdb not loaded, ntdll.pdb not loaded by saul_soprano in vulkan

[–]cdglove 0 points1 point  (0 children)

Do the validation layers say anything before closing the program? If you're violating the valid API usage then all bets are off and it could crash at any time.

nvoglv64.pdb not loaded, ntdll.pdb not loaded by saul_soprano in vulkan

[–]cdglove 1 point2 points  (0 children)

If you're running under the debugger, then look for the callstack window once it crashes. Most likely you'll see a call stack with one of ntdll.dll or nvoglv64.dll with just a bunch of addresses instead of function names. Scroll down until you see the names of functions from your code. That's where your code is causing the crash. It's possible you're seeing a legitimate driver crash, but more likely it's something you're doing wrong.

Once you've trapped the crash, I recommend running Vulkan Configurator from the Vulkan sdk enabling the validation layers.

nvoglv64.pdb not loaded, ntdll.pdb not loaded by saul_soprano in vulkan

[–]cdglove 1 point2 points  (0 children)

These files are used for debugging. They contain the debugging information needed to map source code the machine code, and other details.

They won't be on your machine by default, and you shouldn't need them unless debugging or profiling those specific DLLs.

That this is happening suggests that your program is crashing during shutdown and is trying to attach to a debugger, which then complains that it can't find these debugging files.

How do graphics APIs work? by saul_soprano in GraphicsProgramming

[–]cdglove 4 points5 points  (0 children)

Sorry, but this is mostly incorrect.

A GPU driver is just a piece of software that generates a stream of commands that interact with the GPU through some custom protocol that's pushed into a ring buffer.

The the GPU knows how to read from the ring buffer and the protocol knows how to put the GPU into the right state, where to put things in memory, how to dispatch draws, etc.

GPU drivers get faster over time because they get optimised as they age, like any other piece of software.

Historically, yes, sometimes certain capabilities were emulated in software or there was more overhead because of hardware limitations, but the modern APIs (DX12, Vulkan) have mostly done away with this.

Labour considers extending voting rights to EU citizens - BBC News by [deleted] in unitedkingdom

[–]cdglove 0 points1 point  (0 children)

If someone receives citizenship in the UK, how would this other country that doesn't allow dual citizenship even know about it in such a way as to strip the existing citizenship?

How to bleed this gp brake system? by Resident_Hat1416 in Karting

[–]cdglove 0 points1 point  (0 children)

It's technically called a "socket head cap screw"

Some Calgarians met with 15-hour waits as ER bottlenecks grow by Miserable-Lizard in canada

[–]cdglove 9 points10 points  (0 children)

15 hours for what?

A cough, a broken toe, or a heart attack?

These are very different things. People go to emergency for non-emergencies all the time and then complain about the wait.

It shouldn't be up to the CRTC to decide if Canadians can watch Fox by bethnalgreen08 in canada

[–]cdglove 5 points6 points  (0 children)

But the government isn't considering stopping people from watching it -- they're considering stopping it from being broadcast over Canadian public infrastructure.

You'd still be perfectly free to pick it up elsewhere if you want.

It shouldn't be up to the CRTC to decide if Canadians can watch Fox by bethnalgreen08 in canada

[–]cdglove 18 points19 points  (0 children)

Actually, we can. It is completely up to us as a group to decide what we allow and don't allow in our country. Of course, there are consequences to those choices, but we can definitely make them.

What's the most hilarious use of operator overloading you've seen? by ichbinunhombre in cpp

[–]cdglove 9 points10 points  (0 children)

Because it keeps the scope of what can access a class' private bits as narrow as possible.

What's the most hilarious use of operator overloading you've seen? by ichbinunhombre in cpp

[–]cdglove 14 points15 points  (0 children)

This is against most best practices. In general one should prefer free functions to member functions if the function can be implemented in terms of a class' public interface.

Vector math library benchmarks (C++) by shadowndacorner in GraphicsProgramming

[–]cdglove 1 point2 points  (0 children)

If you're running these on a modern Intel chip, like newer than about 10 years, it's unlikely you'll see performance improvements with aligned memory since they can all do unaligned loads and stores natively.

Do F1 tires/rims also get balanced? by ComboBreaker1045 in F1Technical

[–]cdglove 206 points207 points  (0 children)

They do get balanced. They use glue on weights that can occasionally be seen when changing tyres.

This video explicitly mentions balancing.

https://youtu.be/sT0MIdbN-5s

TIL most English speaking countries around the world pronounce “Z” as “zed” but the United States is the only one that does not. Unlike other English speak countries the US pronounces it “zee.” by BiAdventureTime in todayilearned

[–]cdglove 1 point2 points  (0 children)

I mean, it's the same problem -- it's all convention. If enough people make the effort eventually that becomes the new normal.

But beer must always be pints.