eub: (quiz)
[personal profile] eub
Well, I took some pictures of the cherry tree blooming out front, and had fun with Photoshop.
flowers crop median min crop
spray sky rot crop dodge sharpen

I really don't know what I'm going to do for a job. Trying to persuade people that they don't really need me to have five years of full-lifecycle industry experience doesn't seem to be working.

I spent my whole coding day tracking down a timing problem that turned out to stem from a boneheaded error in doing arithmetic. Here's a quiz for your job applicants: given two pairs of uint32 values, (start_hi, start_lo) and (stop_hi, stop_lo), compute the 64-bit difference (stop - start).



Possible answer #1: something like
diff_lo = stop_lo - start_lo; // wraparound still gives correct lo.
diff_hi = stop_hi - start_hi;
diff = (((uint64) diff_hi) << 32) | diff_lo;
Diagnosis: too dumb.

Possible answer #2: something like
diff_lo = stop_lo - start_lo; // wraparound still gives correct lo.
diff_hi = stop_hi - start_hi - !!(start_lo > stop_lo); // borrow?
diff = (((uint64) diff_hi) << 32) | diff_lo;
Diagnosis: too damn clever.

Possible answer #3: something like
start = (((uint64) start_hi) << 32) | start_lo;
stop = (((uint64) stop_hi) << 32) | stop_lo;
diff = stop - start;
Diagnosis: might be okay.



But we had very good sushi at Ototo. (For better or for worse, they were out of this intriguing-sounding green tea tiramisu.)

Date: 2003-03-25 06:06 am (UTC)
From: [identity profile] ralphmelton.livejournal.com
Clarification: do you care about wraparound in the result?

Date: 2003-03-25 07:29 am (UTC)
From: [identity profile] kalmn.livejournal.com
i went for dim sum this weekend, and they had green tea mousse cake. i thought it was very interesting, but several people at my table set upon it with cries of glee, after having been reassured that the green did not mean it was lime flavored, but seaweed flavored.

Date: 2003-03-25 09:08 am (UTC)
From: [identity profile] thatmathchick.livejournal.com
I really don't know what I'm going to do for a job.

Hear you on that one....

I recently heard a story that was attributed to you. The response to "Why do you want to work for XYZ company?" was something like,

"Well you see I've developed this slight addiction, to eating. Also a real fondness for something they call 'shelter'. I firmly believe that XYZ is an ideal company to match my interests in this way."

Date: 2003-03-25 10:07 am (UTC)
dr4b: (duck)
From: [personal profile] dr4b
sweetie, your pictures of the cherry tree are awesome.

Date: 2003-03-25 10:34 am (UTC)
From: [identity profile] jinian.livejournal.com
Oh, the first picture is wonderful.

I haven't liked tiramisu yet, but I would certainly try a green-tea-flavored kind.

Date: 2003-03-25 12:15 pm (UTC)
From: [identity profile] eub.livejournal.com
The assumption is that the 64-bit value never wraps. When we get into THz clock rates this will start to break.

Date: 2003-03-25 12:32 pm (UTC)
From: [identity profile] eub.livejournal.com
You know, I've never seen seaweed ice cream.

Date: 2003-03-25 12:36 pm (UTC)
From: [identity profile] kalmn.livejournal.com
[blink]

oh, dear.

please tell me that you are being overly specific and that you haven't seen seaweed icecream, not that you haven't seen green tea ice cream. if you haven't seen green tea ice cream, let me know and i will figure out a way to ship you some.

Date: 2003-03-25 04:00 pm (UTC)
From: [identity profile] indigodove.livejournal.com
Love the pictures, Eli. I can't wait for things to start blooming out here -- our crocuses are just starting.

Date: 2003-03-25 04:32 pm (UTC)
From: [identity profile] eub.livejournal.com
Thank yinz.

Date: 2003-03-25 04:34 pm (UTC)
From: [identity profile] eub.livejournal.com
Seaweed!
Page generated Feb. 27th, 2026 11:29 pm
Powered by Dreamwidth Studios