Posts

Showing posts with the label LLVM

The Missing Tool In Scripting World

Few days ago I was having beers with @aadsm and @sleistner and we were talking about languages and, of course, JavaScript too. That night I have realized there is a missing process, or better tool, that could open new doors for JavaScript world. The Runtime Nightmare The main difference between scripting languages and statically typed one is the inability to pre optimize or pre compile the code before it's actually executed. Engineers from different companies are trying on daily basis to perform this optimization at runtime, or better Just In Time, but believe me that's not easy task, specially with such highly dynamic language as JavaScript is. Even worst task is the tracing option: at runtime each reference is tracked and if its type does not change during its lifecycle, the code could be compiled as native one. The moment a type, an object structure, or a property changes, the tracer has to compile twice or split the optimizations up to N exponential changed performed in a...