News for hackers. Stuff that matters.
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.
Re:Higgs JavaScript Virtual Machine by jermo on Saturday November 15, 2014 @04:27PM (#8612717)
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/
Re:Higgs JavaScript Virtual Machine by kr0 on Saturday November 15, 2014 @02:34PM (#8612425)
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
Re:Higgs JavaScript Virtual Machine by echaozh on Sunday November 16, 2014 @06:28AM (#8613996)
You either have an AOT compiler or an interpreter with JIT compilation. What's a JIT compiler?
Re:Higgs JavaScript Virtual Machine by mistercow on Sunday November 16, 2014 @02:30PM (#8615137)
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.

Re:Higgs JavaScript Virtual Machine by bzbarsky on Sunday November 16, 2014 @09:52PM (#8616630)
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.

Re:Higgs JavaScript Virtual Machine by protopete on Sunday November 16, 2014 @10:08AM (#8614333)
AOT: ahead of time

JIT: just in time

Compiler applies to both of them.