Better HN
topnewbestaskshowjobs
Log inSign up

patcdr

13 karma · joined Jun 30, 2009 (17y ago) · 6 submissions

Submissions

comment 5y ago · link · parent

I've built a system that kinda does that: https://patcdr.net/carl/listing

tl;dr: People can build ASM modules on that site and load them into my game (when enabled) using chat commands. And it does work on my original SNES by using some SD2SNES trickery.

comment 16y ago · link · parent

My first day at Microsoft, I was worried about this. This worry dissipated once I saw my boss's boss pull one out in a meeting.

comment 17y ago · link · parent

I'd wager much higher than that. At the very least, I'm using Win7. Statistics on browser/OS usage from pg would be interesting though.

comment 17y ago · link · parent

It actually runs better in IE8 than it did in Chrome on my work machine...

comment 17y ago · link · parent

It still works fine if a and b are the same value.

Here's the general proof:

a ^= b (a = a ^ b, b = b)

b ^= a (a = a ^ b, b = b ^ (a ^ b) = a)

a ^= b (a = b ^ (a ^ b) = b ,b = a)

Now, let's replace all references initial values with constant c:

a ^= b (a = c ^ c = 0, b = c)

b ^= a (a = 0, b = c ^ 0 = c)

a ^= b (a = c ^ 0 = c, b = c)

Notice that at the end, you still end up with a = b = c. There are plenty of reasons not to use this approach, but that ain't one of them.