Introducing a Pure LUA JVM luje

Posted on Monday, October 7, 2013 by RICHARD HARRIS, Executive Editor

luje is an experimental (read: toy) Java virtual machine written in pure Lua. It works by compiling Java bytecode into Lua scripts on-the-fly and then running them using Mike Pall's LuaJIT 2. The result is an extremely fast but incredibly lightweight Java virtual machine which can outperform Sun's Hotspot in some situations.

Right now it excels at anything which involves tight loops and float or doubles in local variables --- see the LocalBench benchmark. It'll comfortably beat Hotspot (on amd64, or Zero on ARM) with those. However, it does very badly with longs, as LuaJIT currently boxes those. Fields and methods of objects are stored in hash tables, so accessing fields in an inner loop will tend to cause luje to slow down. In any non-trivial benchmark it usually manages about 50% to 75% of Hotspot. Still, that's not bad given that the whole thing is less than 3000 lines of code.

More App Developer News

Wave 100i and Wave 150i harmonic drive mounts from Sky-Watcher arrive



Deep space astrophoto targets for May of 2024



A new Hercules rotating focuser lands from Optec



Buildbox 4 AI turns game ideas into reality faster than ever



Odeeo hires Spotify executive James Cowan



Copyright © 2024 by Moonbeam Development

Address:
3003 East Chestnut Expy
STE# 575
Springfield, Mo 65802

Phone: 1-844-277-3386

Fax:417-429-2935

E-Mail: contact@appdevelopermagazine.com