Run-Time code generation and just-in-time compilation are features of modern programming systems to strike the balance between generality and efficiency. SInce RTCG and JIT techniques are not portable and notoriously hard to implement, we propose code splicing as an alternative for dynamically-typed higher-order programming languages. Code splicing comines precompiled pieces of code using higher-order functions. While this approach cannot achieve the performance of ocmpied code, it can support some intriguingfeatures: very fast"compilation" times; satisactory run times, compared iwth interpretation; simple interfacing with ocmpiled code; protability.
展开▼