peterw;544896 Wrote: 
> Where'd you get that idea? Aside from low-level audio processing
> (including DRM), 
> everything in the user interface and SBS/MySB control chains is Lua.
> Look at all the patches that have been release for Erland's Patch
> Installer applet -- those rely on the fact that the interesting stuff
> is done in Lua.

What I was meaning was that the "heavy lifting" is all done in C/C++
code.

To put it another way, if you rewrote all of the LUA code in C/C++ you
would only save a small amount of CPU cycles because 99% of the time
the CPU is running compiled code and NOT the UI or talking to SBS. The
LUA code, is relatively speaking, light weight when compared to things
like decoding JPGs or MP3.  It might be critical, but it is "simple"
for the CPU to do.

Look at the analog clock screensaver for a great example: the LUA
script is tiny.  All the clever stuff, such as rotating the images that
represent the hands on the clock, is done in C via SDL.  There is no
sense in writing that glue code in anything other then a high level
interpreted language like LUA, IMO.

I could well be wrong; I'm only vaguely familiar with SqueezePlay's
guts, but that's how I see it.


-- 
Aslak3

(SB 2, SB Boom, SB Radio)
------------------------------------------------------------------------
Aslak3's Profile: http://forums.slimdevices.com/member.php?userid=31977
View this thread: http://forums.slimdevices.com/showthread.php?t=78465

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to