5 ms·
I continue to wonder why No one has ever used it as part of the CPython / CRuby compiler?
by ksec 12y ago
I continue to wonder why No one has ever used it as part of the CPython / CRuby compiler?
- vertex-four 12y agoFor Python: likely because the few people who need a faster Python, have the JIT experience to build one, and have the time and/or funding to do so, are working on PyPy.
- gecko 12y agoAnd adding to that: the reason why things like LLVM come up a lot is because, if you write your chain right, you get things like LLDB for free. Using DynASM as your JIT base still forces you to write GDB hooks or a custom debugger, which, while hardly impossible, also aren't the easiest thing in the world. I actually think DynASM is a lot easier to wrap your head around on the JIT landscape, but it's also much more suited to a build-the-world type of situation.
- chrisseaton 12y agoFor a JIT for a complex dynamic language like Python and Ruby, emitting the machine code is not a significant part of the problem. The problem is in choosing which instructions to emit, and other things like transitioning between different stacks and how you store your objects. I don't think DynASM helps with those problems.