Enlightenment EFL Adds "Elua", A Lua JIT App Runtime
Written by Michael Larabel in Desktop on 11 June 2014 at 11:38 AM EDT. Add A Comment
The latest addition to the Enlightenment Foundation Libraries is Elua, a Lua-based Just-in-Time application runtime stack.

Responsible for a heck of a lot of new code added to EFL yesterday was this LuaJIT-based runtime. "Elua is a LuaJIT based runtime for the EFL meant to provide facilities for rapid application development. The name is temporary. The EFL bindings will be generated with Eolian."

Very simple Enlightenment apps can now be written, here's an example test application written for this Enlightenment LuaJIT environment:
local win = elm.Window("test", "Hello World")

win:smart_callback_add("delete,request", function()

local bg = elm.Background(win)
bg:size_hint_weight_set(1.0, 1.0)

local bx = elm.Box(win)
bx:size_hint_weight_set(1.0, 1.0)

local lbl = elm.Label(win)
lbl:text_set("Lua runtime test")

local counter = nil
local step = 5

local btn = elm.Button(win)
btn:text_set("Reset counter")
btn:smart_callback_add("clicked", function()
if not counter then
btn:text_set("Add " .. step)
counter = counter and (counter + step) or 0

win:resize(360, 360)

In other Enlightenment EFL work, the latest code now also has a full ETC2 encoder. ETC2 is the latest version of the Ericsson Texture Compression technique that's mandated by OpenGL ES 3.0 and OpenGL 4.3.

In other news, in case you missed it, Enlightenment 0.19 is in alpha with its Wayland improvements, new compositor code, etc.

About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Desktop News
Popular News
Trending Reviews & Featured Articles