Nov 30 2007

maybe a light dustup?

Tag: Ranting and ReflectionsJoe @ 11:38 pm

Really, the day is well past closed – I’ve been watching some video’s online this evening, and it’s getting close to being Saturday rather than Friday at this point. Seattle’s gotten quite chilly this evening, and the weather folks have even issued a special statement indicating we’re ripe for a little snowfall – cold front settled in a bit, precipitation on it’s way.

Tomorrow’s high in Seattle looks to be around 37 degrees – if we do see anything, I expect it’ll be towards morning and won’t last the day. Still, I wouldn’t mind a light dusting for the color.


Nov 27 2007

Eventlet – more python concurrent programming

Tag: Geekstuff, Ranting and ReflectionsJoe @ 8:59 pm

Doing that RSS read-up for the evening, and I spotted a bit about Eventlet on Wes Felter’s blog. Just looking at the summary… well – by god, it seems a like to Kamaelia’s Axon.Component thingy.

Here’s the snippet that caught my attention:

Eventlet is a networking library written in Python. It achieves high scalability by using non-blocking io while at the same time retaining high programmer usability by using coroutines to make the non-blocking io operations appear blocking at the source code level.

Reading some more about it, it seems even closer to the Stackless conceptual layout, with a built-in channels mechanism/library as well. (I’d like deeper into there, but the MediaWiki thingy that Linden Labs is using appears to require a login to just see the pages… Either that or there’s a lot of missing wiki pages that are linked up).

Guess I’ll have to redo my hackysack implementation with this library and see how it compares…


Nov 27 2007

generator based concurrent programming – redux

Tag: Geekstuff, Ranting and ReflectionsJoe @ 6:50 pm

A little earlier in November, I wrote up a little concurrent programming exercise using Kamaelia. Michael Sparks commented a bit on it, and suggested some improvements – which was really cool. He’s the guy that make Kamaelia, and helped me a few months back when I was first investigating “hey, will this work?”

So I took used his code updates and I wanted to share the difference in execution speed:

10 concurrent objects, 1000 loops:
python timeit.py -s “import hackysack” “hackysack.runit(10,1000)”

Originally: 10 loops, best of 3: 127 msec per loop
Updated Code: 10 loops, best of 3: 142 msec per loop

100 concurrent objects, 1000 loops
python timeit.py -s “import hackysack” “hackysack.runit(100,1000)”

Originally: 10 loops, best of 3: 587 msec per loop
Updated Code: 10 loops, best of 3: 180 msec per loop

1000 concurrent objects, 1000 loops
python timeit.py -s “import hackysack” “hackysack.runit(1000,1000)”

Originally: 10 loops, best of 3: 6.05 sec per loop
Updated Code: 10 loops, best of 3: 550 msec per loop

10000 concurrent objects, 1000 loops
python timeit.py -s “import hackysack” “hackysack.runit(10000,1000)”

Originally: 10 loops, best of 3: 60.4 sec per loop
Updated Code: 10 loops, best of 3: 4.26 sec per loop

So what’s this all mean? Well – mostly that using generators for this sort of shared in-process concurrent style execution is possible and effective. Stackless Python still kicks it’s ass hands down – but the benefit you get right now is you can use a stock Python distribution and get the benefit of the tasklet coding style that makes some things really effective.

Michael even has some recent fiddling that uses forked python processes, talking between them to get multiple cores into the game.


Nov 24 2007

Cook’s Illustrated Pie Crust, Redux

Tag: Ranting and ReflectionsJoe @ 2:43 pm

Back by popular demand!

The resulting mess before you is a cherry pie with a joe-made-it-way-to-freakin-think lattice top. If I was better, the lattice would have been woven and much thinner. Obviously I’ll just have to practice.

cherry pie, homemade crust

You can get a bit of a closer view of that crust on top – it’s flaked up nicely and browned beautifully. The innards were good and simple – just a quadruple handful of cherries, some sugar, and a bit of flour and egg yolk to make a stab at binding it together. It’s not exactly set up beautifully, but it doesn’t suck.

from-scratch pie crust

The results of the Cook’s Illustrated pie crust were pretty darn good. I clear suck at rolling out the crust, but I didn’t have any of the terrible cracking problems that I remember having many years ago, and the results were definitely flaky and very, very tasty. The vodka did indeed evaporate, leaving no trace – a brilliant thought and suggestion from the geniuses at Cook’s Illustrated.

I’ve learned that the little fold-down table in the kitchen is about 8 inches too short for me to roll out dough. It’s surprising how much your back can hurt when you’re bending over at a weird angle and trying to focus on something like rolling out crust. Next time I’ll clear the living room table or something.

Next experiment (in a while, I still have one and a half pies available for eating…) I think I’ll tackle a classic apple pie. I want to try and do the woven lattice crust. I might instead go for a series of small tarts – lots of crust practice without needing a huge amount of innards…


Nov 22 2007

cookin’ day

Tag: Ranting and ReflectionsJoe @ 12:07 pm

I don’t really have enough time between things to play Mass Effect, but I figure I have a few minutes to scribble up a blog post. I played the game until about midnight last night, working through a bottle of wine while I did. I half expected to be in bad shape this morning, but the wine went down nicely and didn’t leave me with any terrible ill effects this morning. It was a wine I hadn’t had before – Sangre de Toro. It had a short nose and a short finish with a nicely sharp bite to it that went well with dinner last night.

Without any significant lubrication today (no port, as yet…) I’ve been cooking up a storm. Turns out dinner is aimed for a little earlier than I expected, so while I made some pie dough, it’s still setting up in the fridge. I bought a couple of frozen crusts to be safe, and ended up using them when I pulled together a couple of pumpkin pies that are in the oven now. The turkey is ready to go too – we’ll have LOTS of leftovers – and I’m simmering up a light roue to make a bit a gravy with the turkey drippings when it’s all set to come out. I guess another 15 or so minutes for the pies, then re-arrange the oven racks, and the turkey goes in.


Nov 21 2007

Cooks Illustrated

Tag: Ranting and ReflectionsJoe @ 4:42 pm

Nathan has been a “subscriber” of Cooks Illustrated for years. These are the incredibly effective cooking nutcases that do things like scientifically analyze everything in involved with making the perfect cookie. And I’ve got to tell you – they do a damn fine job of it.

Since it’s pre-turkey-day today, its my time to think about some serious cookery. Pies (pumpkin of course, and made from scratch – not that canned squash crap), roasting bird prep, and thinking about how I’m going to make the gravy are all on my mind. A few evenings ago, I went to Metro Market to get all my supplies. They completely rock by the way – because they’re the only place where you can still FIND pie pumpkins right now. I got a couple, of course – they’re baking down now. But I also picked up a copy of Cooks Illustrated. It had an article on something that I’ve always had trouble with – making an excellent pie crust: Foolproof Pie Dough.

So tonight I think I’ll be trying it out. I’m going to need at least two crusts, maybe three – depending on how much pumpkin bakes out… Nathan will be proud!


Nov 21 2007

Mass Effect

Tag: Ranting and ReflectionsJoe @ 12:06 am

I picked up Mass Effect today after work… Yeah, of course I got it. I’m a science fiction fan, Bioware product fan, and I’ve been looking forward to seeing what these guys have created for months now.

I spent a few hours playing it tonight, and my initial reaction is pretty positive. You can feel the legacy of KOTOR, and so far the game play really feels like a forward adaptation of that setup. Similar basic concepts with new UI’s and ways to interact with the game. They (bioware) do sort of just pitch you in to the deep end of the game – there’s a “tutorial”, but frankly it wasn’t very deep. Some of the game play is pretty seriously difficult – there’s a “timed event” relatively early in the game that I had to run through multiple times before I figured it out – even to know where to go to get the goals of that “act” accomplished.

After Assassin’s Creed, the environment seems much more “on rails” – limited in where you can go, but the game interactions are significantly more advanced – as you’d hope and expect from a game billing itself as an RPG. It has an aspect of “take cover or you’ll get nuked quickly” in its combat play that I haven’t really gotten the hang of – like so many others, I tend to charge up the middle into withering machine gun fire a couple of dozen times before I get the hint that I need to some something other than use brute force. I’m not terribly brilliant that way…

I’m looking forward to spending many more hours with Mass Effect over the Thanksgiving weekend – but for now, I’m turning in. I’ve got a meeting at work with some folks that I’ve never met, but seriously respect, tomorrow. I’m looking forward to it – which means I don’t want to stay up all night and oversleep getting in to work. Plenty of weekend time coming up.


Nov 20 2007

Redcode returns!

Tag: Geekstuff, Ranting and ReflectionsJoe @ 9:47 am

I didn’t even try and make an entry for the IronCoder competition, but I always watch what comes out. Shoot – just reading some of that code is a hell of an interesting perspective on how folks are getting things done.

As I was reading through the project list of submitted entries, I just started laughing when I saw that Josh Freeman had an entry called “CoreWar 85″. I thought, “naw, it couldn’t be…” – but sure enough, it’s a fully functional CoreWar/redcode tournament engine, completely with a visual of the memory space. He even included a few redcode programs from back in the day.

Of course I had to play out a few tournaments with the code included, all the while snickering and laughing outright. Karen came over and wondered why these little red and blue lights zipping about the screen was causing my noise, so I had to explain the history a bit of the game.

Josh – even if you don’t win, that’s a 100% beaut entry and “retro” theme. Congrats!


Nov 17 2007

spending the weekend with Assassin’s Creed

Tag: Ranting and ReflectionsJoe @ 7:01 pm

Friday I got home from work a little early – a doctor’s appointment to get a couple of moles removed, yecch. Since I was out early, I stopped by Blockbuster and rented Assassin’s Creed for the XBox 360. Seeing as I’ve got a couple of stitches in my back now, I figured I could treat myself and stay reasonably quiet this weekend.

It’s been a pretty good so far. I’m really, really impressed with the background artists and the exploration/free-range kind of movement you can enjoy with the game. It’s really sort of a linear story-line (nobody said it wasn’t), but if you enjoy roaming about in a game looking for all the various crevices, this is the game for you.

So far I’ve finally figure out how to assassinate a few Templar knights in the game (bad guys in this one, apparently) – and I’ve learned that they generally kick my butt in a straight up fight. I can’t “pickpocket” with the controls to save my life, but it looks like I get to mostly avoid that function too. Thank god.

The visuals in the game are really what’s worth writing about. I can’t praise the Ubisoft artists and engineers enough for it – the sweeping views out over a virtual Damascus, Jerusalem, and Acre are just amazing. Not surprisingly, the review that Gabe made in Penny Arcade really nails it.


Nov 17 2007

great quote

Tag: Geekstuff, Ranting and ReflectionsJoe @ 10:47 am

Scanning through postings in NetNewsWire and I ran across a post by BBum talking about Acorn. I saw this quote and laughed:

… get done exactly what I wanted with very little spastic monkey style interaction with the user interface.

Oh – and while I’m sure that his PyObjC work contributed to a nice license from the “fine folks at Flying Meat” – the mere fact that he knows where and what Shakespeare’s Pizza is probably contributed in there as well. At least, that’s my theory.


Next Page »