fbpx
dirtSimple.orgwhat stands in the way, becomes the way

Software Development

The Eggs are Coming…

Bob Ippolito and I hacked out a lot of the Python Eggs implementation today. (My new shorthand for explaining them is “An egg is to a Python as a jar is to Java”.) I wrote a “bdist_egg” command for setuptools, which is a Python sandbox project where...

Time to fly…

Everything’s ready, I think. I hope. The presentation slides are up. I’m almost packed. I’ve got dried meat and other provisions ready. The laptop appears ready to go, and I’m actually posting this from the laptop. It’s my wife’s laptop, and...

Advanced Generic Function Techniques

Sometimes, more than one method of a PyProtocols generic function (or entry in a Dispatcher object) applies in a given circumstance. For example, you might need to sum the results of a series of pricing rules in order to compute a product’s price...

What do you want to see? (in my PyCon slides)

With PyCon just a few weeks away, I’ve been throwing together my slides for the presentation on generic functions, and I’m short a few examples and diagrams. The tricky part is that you can’t fit much text on a slide, so I need to come up with some...

Making it from scratch (with TDD and Python)

Ah, the smell of fresh-baked bread. Or maybe it’s fresh-cut wood, depending on your choice of metaphor for programming.The last couple of weeks, I’ve been working on a prototype platform API for Chandler, called “Spike”. It’s purely a speculative...

From Nine to Five…

…microseconds, that is.Just when I thought I couldn’t possibly pull any more optimization tricks in pure Python, I found a couple more tonight. First, it occurred to me that because generic function wrappers use a dispatcher instance’s __getitem__...

Optimization Surprises

This weekend, I took another crack at trimming microseconds off the common-case path for generic function execution, and succeeded in dropping the excution time from 13.2 microseconds to just over 9.8. (Which is about 9 microseconds overhead added...

The Prisoner’s Dilemma

Politics-Oriented Software Development: “Also remember that someone who points out a problem early is a troublemaker; someone who fixes a problem at the last minute is a hero.”The Core Protocols (page 3): “When I believe I have a better idea than...

Torture-testing Generic Function Performance

Since I’m claiming that my PyCon presentation will be on “efficient” rules in Python, I thought this weekend that it might be a good idea to actually measure the performance of the current generic function implementation in PyProtocols.For the...

The Courage to do things Simply

In my second professional programming job, I had a really interesting boss. When we had a design meeting, we would all sit around a whiteboard, and as Roger (my boss) threw out things we needed to accomplish, the other programmers and I would...

“Monkey Typing” for Python

I’ve just posted a partial draft of a pre-PEP proposal to add what I’m calling “monkey typing” to Python. It’s an extension of the infamous “duck typing” concept that seeks to simplify the use of interfaces in Python to the point where they scarcely...

dirtSimple.org

Menu

Stay In Touch

Follow our feeds or subscribe to get new articles by email on these topics:

  • RSS
  • RSS
  • RSS

 

Get Unstuck, FAST

Cover photo of "A Minute To Unlimit You" by PJ Eby
Skip to toolbar