halgari/clojure-py — Issue #21: .PYC emulation
Author: halgari
Created: 2012-02-01 12:02:48+00:00
State: open

When the stock CPython compiler compiles a .py file, it saves the results as a marashalled code object. This way, on the next run of the program, the module can simply be unmarshalled, and no compilation is needed. It would be nice to also have this feature for .clj files.

From my experiences, a problem we hit, is that the marshal module doesn't like behing handed bytecodes like ```(LOAD_CONST, RT.map(1, 3))``` and cPickle won't pickle code objects at all. We should look into options here, either by fixing up the way we load CONSTs or by extending cPickle.