[Y-devel] bytecode modules

Andrew Suffield asuffield at debian.org
Wed Apr 6 10:17:55 BST 2005


On Mon, Apr 04, 2005 at 09:58:55AM +0200, simper-2 at student.ltu.se wrote:
> * Bytecode or script for L&F modules.
>   - Performance.
>   - Requires changes to the server and lots of work.
>   + No network latency.
>   + Security, no theme plugins with spy-ware or other crap.
>   
> Here I'm arguing that designing a bytecode for theme/wm/widgets modules is a
> good idea.

Certainly it's possible and has at least some advantages. However,
it's not necessary, and I can't think of a good reason to go to that
much effort.

As a statement of general principle, I can see no reason not to
include a reasonably implemented system along these lines, but you
should never be obliged to use it and the default theme(s) should be
native and not implemented in this manner. Also, I would discourage
people from writing themes which can only run in this manner, so part
of implementing it should be writing a translator that generates
native code (this should not be hard; translate it to C or something).

Lastly, implementing widgets in this manner is a bad idea. If you
can't do something using an existing widget, and you can't implement a
generic widget suitable for inclusion with the servers, then you
probably should be rendering directly and not using widgets at all. A
"Tetris widget" is always the wrong approach.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  https://www.debian.org/ |
 `. `'                          |
   `-             -><-          |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20050406/38bc9ab1/attachment.bin


More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved