top | item 4926718

(no title)

zatara | 13 years ago

I am very intrigued by your approach, could you please share more of it or maybe point some books that go deeper on this?

discuss

order

jacquesm|13 years ago

I can point you in the direction of an open source project that does the same thing in a different way: http://www.python.org/about/success/cog/

That should get you going, be sure to read the introduction.

In the past I've used this trick for many different purposes (for instance, writing driver code for a large variety of graphic cards with various memory lay-outs and port setups, greatly reducing the amount of code to maintain, for performance reasons you don't want that code to be too generic), but lately it has come into its own in a project that I'm working on where the large majority of the code is generated.

Unfortunately I can't share any code (it's written under contract).