Re:Higgs JavaScript Virtual Machine
by jonny_eh on Saturday November 15, 2014 @01:54PM
(#8612322)
What is this? All the readme says is what's required to use it.
[ Parent
| on HN ]
It's a JavaScript JIT compiler. From the info page [1]:
Some notable features of Higgs include:
- A self-hosted runtime written in extended JavaScript
- Lazy/incremental JIT compilation Context-driven versioning of basic blocks
- A Foreign Function Interface (FFI) system to interface with C code
- An interactive shell (REPL) with access to low-level primitives.
- A simple module system and a set of useful libraries.
Example usage:
higgs --e "var x = 4; x = x + 5; print(x)"
or higgs file.js
[1] http://pointersgonewild.wordpress.com/higgs/I believe it's a cross compiler for JS.
Re:Higgs JavaScript Virtual Machine
by tachyonbeam on Saturday November 15, 2014 @11:23PM
(#8613435)
It's a JIT compiler that generates x86-64 machine code
You either have an AOT compiler or an interpreter with JIT compilation. What's a JIT compiler?
Here are about 5,000 reasons that nitpick is silly: http://scholar.google.com/scholar?as_vis=1&q=%22jit+compiler...
Clearly the term "JIT compiler" is a common way to describe such a system.
V8 has no interpreter. Just a pair of compilers (first tier and second tier), which compile stuff lazily at the point when it needs to run.
Would you call that an "AOT compiler"? Because most people wouldn't.