Tuesday, 28 February 2006
Tail Call Optimization as a Python Decorator
Until today the coolest uses I've seen for Python decorators were implementing design by contract and currying. However, Crutcher Dunnavant has implemented a decorator which performs tail call optimization by messing with the runtime stack. Even cooler, it's only 14LOC. Go check it out!
Subscribe to:
Posts (Atom)