Non-determinism from generators

I was tinkering a bit tonight with simulating nondeterminism a-la McCarthy’s Amb operator — in Python. This is peculiar as Amb is usually implemented using either first class continuations or syntactic abstractions. Python supports neither.

So what is non-deterministic programming? Continue reading

Rootbeer – Sioux City Sarsaparilla

Sioux City Sarsaparilla

image

Mild sarsaparilla, and well balanced. Probably great as a first time sarsaparilla.

Rootbeer – Snake River

Snake River Sarsaparilla

image

Sharp and licoricey, punchy and ends softly. A very well balanced beverage. Definitely will buy again.

Awaiting JavaScript

Funny diversions in continuations seen this week. They’re not new, but new to me.

Continue reading

A little Call/cc in C#

Yesterday, I wanted to show someone how CallCC works in C#/async, but I couldn’t find any examples in my web search results. C#/async has been out in the world for some time, I’d be surprised if this hasn’t been done before, but just in case here’s a quick implementation.

Enjoy.

Continue reading

Rootbeer – Death Valley

Death Valley Root Beer

image

Good, simpler licoricey flavor. I can’t put my finger on it, but it’s just missing something for me. Enjoyed, but not on my short list.

Rootbeer – Brownie

Brownie Caramel Cream Root Beer

image

Very caramely, to degree I’d be happy to call it a caramel soda with a little root beer. I’m think I’ll be skipping it in the future, but only because I’m not a huge caramel fan. Definitely give it a shot if you’re a fan of caramel.

Rootbeer – XXX

Triple XXX Root Beer

image

Good bite, licoricey and caramely but not overpowering. There’s a Triple XXX diner in Issaquah that will serve it to you in an ice cold mug which makes it absolutely amazing, especially as a float. Would definitely buy again.

Rootbeer – Boylan’s

Boylan’s Creamy Red Birch Beer

image

Split personality; creamy like a root beer float, but just a hint of dry birch flavor. The aftertaste is complex and enjoyable. I’m on the fence – definitely a pleasure to drink, but may only buy rarely.

Rootbeer – Bulldog

The Original Bulldog Root Beer

image

Great bite, notable wintergreen without overpowering, but finishing smooth with vanilla. Will buy again, and it might be a good regular to keep stocked.