From 7aa6ef6854d69252294394419b6ac3f834bfcd42 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 18 Apr 2014 18:37:15 +1000 Subject: A few comments++ --- ClientHamr/GuiLua/GuiLua.c | 2 +- ClientHamr/GuiLua/skang.lua | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'ClientHamr/GuiLua') diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c index 27e01d7..3854bdd 100644 --- a/ClientHamr/GuiLua/GuiLua.c +++ b/ClientHamr/GuiLua/GuiLua.c @@ -60,7 +60,7 @@ See if I can use LuaJIT FFI here. Since this will be a library, and skang apps could be written in C or Lua, perhaps writing this library to be FFI friendly instead of the usual Lua C binding might be the way to go? LuaJIT is not ready yet, since it needs include files copied into -Lua files, and does not support macros. +Lua files, and does not support macros, which EFL uses a lot of. For the "GUI hosted in another app" case, we will need some sort of internal window manager running in that other app. diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 8a882d2..53ba99b 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -8,6 +8,7 @@ C will let us - Network stuff. No need to look at Lua socket stuff, we have Ecore_Con. Database stuff. No need to look at Lua SQL stuff, we have esskyuehl. Maybe. + Actually, we could have the best of both worlds, since it is currently a C / Lua hybrid. B-) ]] @@ -669,11 +670,6 @@ end local Mum = { --[[ From an email by Mike Pall - -"Important: create the metatable and its metamethods once and reuse -the _same_ metatable for _every_ instance." - -This is for LuaJIT, he's the author, and concerns performance. -]] __index = function (parent, key) -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. @@ -753,6 +749,14 @@ end, newMum = function () local result = {} +--[[ From an email by Mike Pall - +"Important: create the metatable and its metamethods once and reuse +the _same_ metatable for _every_ instance." + +This is for LuaJIT, he's the author, and concerns performance. + +TODO - Which is the exact opposite of what we are doing. Perhaps we can fix that? +]] for k, v in pairs(Mum) do result[k] = v end @@ -1533,6 +1537,9 @@ Alternate plan - button:bottom(-10):right(5) -- 10 pixels below the bottom of button, 5 pixels to the right of the right edge of button. button:width("12") -- 12 characters longer than the width of button. + But then how do we store that so that things move when the thing they are + relative to moves? + Squeal - Squeal was the database driver interface for SquealStuff, the database -- cgit v1.1