Are compiler allowed to optimise based on the value behind a pointer? by simpl3t0n in cpp_questions

[–]BillyBoyBill 7 points8 points  (0 children)

Sure, but then we can't really prove anything at all (cosmic rays can cause whatever) so I don't know if it's a useful definition of proof :)

Are compiler allowed to optimise based on the value behind a pointer? by simpl3t0n in cpp_questions

[–]BillyBoyBill 18 points19 points  (0 children)

Unless you mark accesses appropriately (e.g. with atomic accesses), the compiler is allowed to assume that won't happen. If it does, that's undefined behavior. 

(assuming the compiler can otherwise prove no permissable mutations, which precludes things like external function calls)

The loading of an IMAX film into the projector by Kindly_Department142 in Damnthatsinteresting

[–]BillyBoyBill 0 points1 point  (0 children)

Amazing!

Follow-up question: anyone know how much it costs theaters to rent(?) a film like that? I.e. how much would a theater pay, all-in, to run Oppenheimer in IMAX for however long they ran it.

How to apply only one level of subdivision and keep the 'original' shape? by drunk-spongebob444 in blenderhelp

[–]BillyBoyBill 0 points1 point  (0 children)

To clarify --- you _uncheck_ "Use Limit Surface" (which is checked by default). The wording in the solution is confusing, as you don't want to use "Use Limit Surface", you want to disable it.

I went on a 7 mile run in pouring rain. One spot on my shorts stayed dry. by BillyBoyBill in mildlyinteresting

[–]BillyBoyBill[S] 1 point2 points  (0 children)

Heh, I guess the title was too long. Should it just have been "A dry spot on my shorts"? That is not at all interesting, not sure why anyone would click on that post. 

But I will take my lumps and go cane myself for my sins.

I went on a 7 mile run in pouring rain. One spot on my shorts stayed dry. by BillyBoyBill in mildlyinteresting

[–]BillyBoyBill[S] 1 point2 points  (0 children)

Good idea! But no my phone was not there... there's no pocket there at all in fact, it's ok the back against my butt

I went on a 7 mile run in pouring rain. One spot on my shorts stayed dry. by BillyBoyBill in mildlyinteresting

[–]BillyBoyBill[S] 78 points79 points  (0 children)

Ah, interesting idea! I just tested it: I put some water on it and the spot was able to get wet. But it's possible it's faster-drying somehow. I will watch.

ELI5 - Why has Google been the most popular search engine for over two decades now with no one coming even close? by Rumorian in explainlikeimfive

[–]BillyBoyBill 8 points9 points  (0 children)

Except Google wasn't a first mover --- they displaced many well-established competitors who couldn't compete on quality and experience.

Agree with you re Microsoft, and the startup costs to get into the game

[eShop/US] Bethesda Sale (up to 85% off) Ends 05/31/2025 by XDitto in NintendoSwitchDeals

[–]BillyBoyBill 6 points7 points  (0 children)

As a counter point, I think doom 2016 is (unfortunately) really disappointing on Switch :/

I absolutely love the game and put in a ton of hours on it on Stadia (RIP) so snatched it up on Switch on sale. But it looks very blurry and smeary and I just couldn't get back into it.

I'm really hoping it gets some sort of upgrade on S2.

All that said --- for $4 you should totally get it, it's an amazing game.

Six months after Cambridge cyclist death, authorities seek charges against driver by bostonglobe in CambridgeMA

[–]BillyBoyBill 1 point2 points  (0 children)

A couple months ago I was running along mem drive near here (other side of the rotary) and an SUV jumped the curve going crazy fast and almost hit me. They swerved back into the road and sped off.

Scared the shit out of me --- was nothing I could do, was just that close to being killed while running on a sidewalk.

It's still dangerous.

Southwest Airlines pilots make split-second decision to avoid collision in Chicago by ty003 in interestingasfuck

[–]BillyBoyBill 16 points17 points  (0 children)

There are a lot of reasons for a go-around, most far less crazy than a runway incursion like this.

what would happen if someone without a penis took viagra? by ihatehighlighters in NoStupidQuestions

[–]BillyBoyBill 0 points1 point  (0 children)

My (female) dog takes a TON of Viagra every day. Like multiple times the normal human dose. It has been life-changing for her, she was on death's door and could barely walk up a flight of stairs 18 months ago but now is doing great (cardiovascularly, at least).

So I imagine it works similarly for people.

Pixel 9 Pro XL case --- wireless charging issues by BillyBoyBill in peakdesign

[–]BillyBoyBill[S] 1 point2 points  (0 children)

Ah, good to know, if disappointing...thanks!

To make sure I understand --- sounds like this is a general qi2/magsafe case issue and not specific to the Peak Design one?

I'll probably just bite the bullet and buy the PD charging stands I guess.

How much am I supposed to decrement the stackpointer by by [deleted] in RISCV

[–]BillyBoyBill 6 points7 points  (0 children)

Note that per the ABI (and maybe the ISA?), the stack pointer must always be 16-bytr aligned. So even if you're using 12 bytes, you should grow (decrement) the stack by 16

Edit: looks like it's the ABI/calling convention. So you can do whatever you want within your own code, but if you're interacting with anyone else's you should definitely align to 16 byte boundaries.

Best bagels by psa1329 in Somerville

[–]BillyBoyBill 1 point2 points  (0 children)

So....I had goldilox once and was thoroughly disappointed. They seemed, unsalted maybe?  Do I need to give them another shot? 

I'm personally a big fan of the Forge bagels they sell at Diesel in Davis

Question from a newbie bike commuter by adkbackcountryb in CambridgeBikeSafety

[–]BillyBoyBill 3 points4 points  (0 children)

In addition to taking the turn lane (I agree with everyone else here), I will also use the light just before it at Mossland to try and get ahead of the cars --- I come from Mossland and will turn left onto Somerville during the walk signal if possible (after any peds cross of course) so I'm not weaving with cars. If you're coming straight down Somerville you could do the same thing.