News for hackers. Stuff that matters.
Re:JavaScript right on the hardware by peterhunt on Wednesday August 14, 2013 @06:50PM (#6214907)
Because JavaScript runtimes are the best dynamic language VMs by a long shot.
Re:JavaScript right on the hardware by admax88q on Wednesday August 14, 2013 @06:51PM (#6214911)
The JVM would like to have a word with you.
Re:JavaScript right on the hardware by SimHacker on Wednesday August 14, 2013 @07:14PM (#6215075)
LuaJIT would like to have a word with JVM.

Plus, Lua isn't controlled by a creepy asshole who thinks the NSA is essential and says stupid shit like "Who's ever heard of government misusing information?"

Re:JavaScript right on the hardware by drdaeman on Wednesday August 14, 2013 @07:34PM (#6215183)
I'm curious. I persume, with quite powerful hardware, task's not going to be trivial and may require some concurrently running processes.

JVM has threads. Akka adds actors (those seem quite nice when used with Scala). Does Lua/LuaJIT offer something simple-looking-yet-powerful in that area?

Re:JavaScript right on the hardware by anonymoushn on Wednesday August 14, 2013 @08:34PM (#6215431)
This comment is a bit incoherent, so I'm not sure if I'm responding correctly at all. Your C/C++ program can contain any number of Lua states, and can also contain an infrastructure for passing messages between these states. The states themselves are single-threaded. Within a single Lua state, you can have any number of coroutines, but these do not work like JVM threads or goroutines; they must be scheduled explicitly.
Re:JavaScript right on the hardware by MatthewPhillips on Wednesday August 14, 2013 @10:31PM (#6215847)
I'll wait an hour for it to warm up, then come back and hear what it has to say.
Re:JavaScript right on the hardware by drdaeman on Wednesday August 14, 2013 @07:01PM (#6214978)
Nitpicking: while JVM implementations can run, they're not particularly tailored for dynamically typed languages.
Re:JavaScript right on the hardware by chongli on Wednesday August 14, 2013 @08:21PM (#6215386)
Clojure would like a word with you.
Re:JavaScript right on the hardware by gnaritas on Wednesday August 14, 2013 @11:04PM (#6215934)
Just because you can build a dynamic language on a vm doesn't mean it was designed and optimized for it.
Re:JavaScript right on the hardware by peterhunt on Wednesday August 14, 2013 @07:45PM (#6215236)
I don't think invokedynamic beats V8.
Re:JavaScript right on the hardware by dkuntz2 on Wednesday August 14, 2013 @06:57PM (#6214956)
Source?