gentoo.ru
Enlightenment - Beauty at your fingertips
e17@conference.gentoo.ru
Воскресенье, 16 августа 2009< ^ >
evadim установил(а) тему: Enlightenment 0.17 в Gentoo || https://projects.niifaq.ru/projects/enlightenment/wiki/Wiki || git: http://git.niifaq.ru/enlightenment-niifaq/ || layman: http://git.niifaq.ru/enlightenment-niifaq/plain/Documentation/layman/enlightenment-niifaq.xml
Конфигурация комнаты

GMT+4
[00:40:55] pva вышел(а) из комнаты
[01:21:21] tonn вошёл(а) в комнату
[01:29:23] lk4d4 вошёл(а) в комнату
[01:29:45] lk4d4 вышел(а) из комнаты
[02:45:05] <Night Nord> Хм
[02:45:11] <Night Nord> А run everything стал получше
[02:45:24] <Night Nord> Теперь он работает шустро, в отличии от обычного run и занимает меньше места
[02:54:30] Night Nord вышел(а) из комнаты
[03:23:55] tonn вышел(а) из комнаты
[05:17:45] Mellon вышел(а) из комнаты
[08:26:46] tonn вошёл(а) в комнату
[08:32:36] tonn вышел(а) из комнаты
[08:34:36] tonn вошёл(а) в комнату
[08:35:51] tonn вышел(а) из комнаты
[11:23:56] in[10]se вошёл(а) в комнату
[11:48:28] in[10]se вышел(а) из комнаты
[11:59:40] lk4d4 вошёл(а) в комнату
[12:04:32] lk4d4 вышел(а) из комнаты
[12:19:02] <evadim> его каждый день пинают, по десятку комитов
[12:53:20] <evadim> вау
[12:53:24] <evadim> Log:
From: "Hanspeter Portner" <ventosus@airpost.net>

This concerns Ticket #109: Add Lua support for Edje

It adds Lua as scripting facility to Edje, letting Embryo untouched.
It should be easier to use and be more flexible than Embryo, imho

---
The patch
---

Lua 5.1 is used in sandboxed mode. Lua byte code is not
platform/architecture independent, Lua code is saved as text in the Edje
container and parsed at load time, therefore.

The patch goes in two directions

1) Analogous to Embryo for scripting logic, messaging and custom states.
The same things are implemented as in Embryo:

- messaging from and to C
- manual creation of timers, animators, pollers for custom events /
animations
- manual manipulation of Edje parts by means of the public
edje_object_part_* and internal functions and custom states

-> those routines are actually implemented as Lua
bindings to
functions in Edje.h and Ecore.h
-> the implementation is done in an object oriented way, so that the
interface gives the feel of an object description language, pretty
similar to EDC itself
-> combining custom states and custom animators allows
for fancy
animations and transitions, e.g circular/spline translations or
complex/conditional transitions, etc.
-> this is just the same as Embryo does, but implemented in Lua, so
nothing new here, actually

2) Dynamic object creation and manipulation

- this interface stems from the 'script_only' objects in
Edje. Those
objects are a kind of scriptable Edje counterparts to Evas_Smart
objects. The infrastructure for Embryo is already there, but has
never been used
- I added this in Lua and added some first bindings to
experiment
with
- I thought it would be useful to allow for a limited dynamic
creation of ui parts
- We can create instances of groups from within the same Edje
container and use them just like the main Edje object as
stated in
1)
- And there are some stand-alone bindings to dynamically create
Evas_Image, Evas_Table, Evas_Line, Evas_Polygon as examples

-> this may be useful to decouple the program from the ui
even more,
to be able to do things that have to be done in the program itself
atm, but actually belong to the user interface, but need dynamic
creation of objects or complex interactions
-> those objects are manipulated manually with Lua bindings
to the
corresponding edje_object_* and evas_object_* functions

---
Discussion points
---

Both stuff in 1) & 2) is functioning, but needs testing, feedback,
improvements, ...

Stuff in 1) can already fully replace Embryo scripting with Lua
scripting. There still is space for improvements/additions, though.

Of the stuff in 2), I think it may only make sense to add the dynamic
creation of groups defined in the same Edje container. Dynamic creation
of other Evas_Objects makes not much sense, as most of them can already
be used as Edje parts and be manipulated with custom states (apart from
polygons and lines) and it would make the whole theming potentially more
programing-like and much more susceptible for errors, etc.

Would this be useful, or drop it all?

The scripting should be there just for logic, conditionals, custom
states and animations, not for a whole dynamic canvas, imho.

There is a patch around with EXTERNAL Edje parts. Seems to be a better,
faster, more secure way to extend Edje with custom objects.

There would be the possibility of precompiling Lua code at compile time
(edje_cc) for faster loading, but we would have to patch and run our own
Lua version.
The Lua parser is pretty fast, though, and using
byte-converted/endianness-swapped byte-code does only pay off for Lua
chunks of some kilo lines.
Byte code also occupies much more space than text in the final Edje
container, as it includes debug symbols.

---

Cedric and Vincent told me, that the plan was to replace Embryo totally
by Lua before the official release of Edje at the end of the year? So it
would make sense to bring Lua to svn soon and look how it fits in, test,
debug, adapt it further to the themers needs, decide on its final shape,
GATHER SOME PEOPLE TO HELP

---

The Lua enhanced Edje is in sync with svn and can be get directly here
git clone git://repo.or.cz/edje_lua.git
cd edje_lua
git checkout -b lua_patch origin/lua_patch

or apply the attached patch

There are also some examples to show the usage of the things
mentioned
above
- showcase.edj: shows usage of custom animators, custom states,
messaging and the script_only object
- test.edj: test cases of script usage and bindings (custom states,
custom transitions, tween_states, animators, timers,
object_parts),
but most of it are experimental script_only objects

http://didgmo.sourceforge.net/showcase.edj
http://didgmo.sourceforge.net/test.edj

The source of showcase.edc is attached, too, to just have a glimpse at
Lua inside of EDC

---

So, what do you guys think?

Thanks and sry for the looong mail, hehe


Author: raster
Date: 2009-08-15 19:34:02 -0700 (Sat, 15 Aug 2009)
New Revision: 41802
[13:19:47] <evadim> хм, теперь edje без lua в системе не собирается
[13:22:20] <evadim> O_o а он у меня стоит...
[13:24:25] <evadim> хех, обновил - пошло
[13:27:40] matt вошёл(а) в комнату
[13:32:25] <evadim> заняяятно...
[14:32:18] Mellon вошёл(а) в комнату
[14:55:01] matt вышел(а) из комнаты
[14:55:18] matt вошёл(а) в комнату
[15:00:10] Mellon вышел(а) из комнаты
[15:08:54] Mellon вошёл(а) в комнату
[15:09:06] pva вошёл(а) в комнату
[16:18:17] Night Nord вошёл(а) в комнату
[16:33:41] <Night Nord> Ну луа и луа
[16:33:47] Night Nord честно говоря пофиг =)
[16:36:57] <evadim> злой ты
[16:37:12] <evadim> а нород вот в рассылке офигевает
[16:37:19] <evadim> как набросились
[16:40:22] <evadim> вот как перец встроит управление mpd в обоину - будеш знать
[16:44:53] <Night Nord> Гыгы
[16:45:21] <evadim> вот в тесте какието переключатели
[16:48:36] <Mellon> интересно было бы посмотреть на 3d модель интерактивного жилого помещения типа иконок и гаджетов но привязанных визуально к различным предметам обихода :)
[16:51:01] <evadim> Mellon: ты хоть сам понял что сказал?
[16:51:27] <Mellon> да, в винде раньше такие скринсейверы были
[16:55:01] <evadim> E SVN: jeffdameth trunk/e/src/modules/everything
Log:
'everything' module: cleanep up key down function.
- added extra keys for faster navigation. documented on
http://trac.enlightenment.org/e/wiki/Gadgets/Everything

Author: jeffdameth
[16:55:49] <Night Nord> Mellon: ога и google room?
[16:55:59] <Mellon> допустим, календарь откидной на столе отображал настоящую дату, часы - время, если тыкаешь в ежедневник, то актуальный журнал раскрывался и тд и тп.
[16:56:47] <Mellon> Night Nord: надо будет посмотреть шо такое :)
[16:57:34] <Night Nord> Это старый прикол - Google room search: "Lost keys"
Results:
Under table
и картинка комнаты с обведенными ключами =)
[16:57:58] <Night Nord> Вообщем-то сделать такое довольно просто, нужен тока 3д двиг
[16:58:04] <Night Nord> Остальное - довольно банально
[16:58:10] <Night Nord> Тока нафих оно тебе на рабочем столе?
[16:58:40] <evadim> будет обоина/скринсейвер которые будут жрать немеряно ресурсов
[17:01:30] <Night Nord> Ну не немерянно
[17:01:43] <Night Nord> Там основное сидит прямо в памяти видяхи
[17:01:50] <Night Nord> Собсно текстуры по большей части
[17:02:00] <Night Nord> Видяха не нагружается обычно
[17:02:16] <Night Nord> Другое дело, что когда запускается что-то, что грузит видяху - это дело надо выгружать
[17:02:48] <Night Nord> Я бы даже сказал, что оно будет ощутимо быстрее нежели то, что есть в Ё сейчас, ибо сейчас Ё жрет тока проц да локальную память
[17:02:54] <Mellon> ага, просто хоть какая-то альтернатива унылым обоям
[17:04:02] <Night Nord> Вообще не так сложно, тотже эдж сделать просто вместо картинок - модельки
[17:04:26] <Night Nord> Двиг не особо сложный должен быть, ибо вращать головой тут не нужно
[17:04:29] <Mellon> ага
[17:04:41] <Night Nord> Фактически тупо рендерер, можно из бледера стянуть, к примеру
[17:05:40] <Mellon> Night Nord: я ссылки что-то не нахожу на это дело, всё какие-то статьи на совршенно левых сайтах которые ведут хз куда-то не туда.
[17:05:48] <Night Nord> Ты про что?
[17:05:58] <Mellon> про гугл румс
[17:06:20] <Night Nord> Бгг, это прикол с башорга
[17:06:30] <Night Nord> Или даже не с башорга
[17:06:36] <Night Nord> Вообщем это "гугл в будующем"
[17:08:11] <Mellon> ггг, http://blogoscoped.com/archive/2006-04-01-n20.html
[17:24:03] matt вышел(а) из комнаты
[17:24:22] matt вошёл(а) в комнату
[21:05:40] Mellon вышел(а) из комнаты
[21:09:35] Mellon вошёл(а) в комнату
[21:49:13] Night Nord вышел(а) из комнаты
[21:58:17] Night Nord вошёл(а) в комнату
[22:00:11] Night Nord вышел(а) из комнаты
[22:22:09] Night Nord вошёл(а) в комнату
[22:26:11] Night Nord вышел(а) из комнаты
[22:29:49] Night Nord вошёл(а) в комнату
[22:52:10] tonn вошёл(а) в комнату
[22:53:44] tonn вышел(а) из комнаты
[22:58:55] matt вышел(а) из комнаты
[23:17:22] tonn вошёл(а) в комнату
[23:20:23] tonn вышел(а) из комнаты
[23:24:57] tonn вошёл(а) в комнату
[23:36:33] tonn вышел(а) из комнаты
[23:37:32] tonn вошёл(а) в комнату
[23:47:54] tonn вышел(а) из комнаты: Replaced by new connection
[23:48:05] tonn вошёл(а) в комнату
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!