4 ms·
> It offers a simple API in three basic languages: C, Lua and LED I haven't been able to find any reference to LED as a language, anyone have a link? Just curi
by netghost 10y ago
> It offers a simple API in three basic languages: C, Lua and LED
I haven't been able to find any reference to LED as a language, anyone have a link? Just curious.
- hatfieej 10y agoI think it was a language they developed to be used with IUP. Original research paper: http://webserver2.tecgraf.puc-rio.br/iup/download/spe95.pdf http://webserver2.tecgraf.puc-rio.br/iup/download/spe95.pdf Under "Resources->LED" on the site there is some more information: http://webserver2.tecgraf.puc-rio.br/iup/en/led.html http://webserver2.tecgraf.puc-rio.br/iup/en/led.html
- eggy 10y agoCheck the site. There's a nice example there. It is basically a script-like way of building interfaces. The cool thing is that it is loaded as a resource, so you can edit the LED script after compiling, and as long as you haven't changed any of the identifier names, you can modify the GUI. I am going to try that this week. Sounds like a nice compromise between the newer 'Immediate-Mode GUIs' and the standard event-based one. I can see it as a way to let the user skin your app within your control of how much they can modify.
- wrp 10y agoIUP is great, but there is very little tutorial information. You have to learn from the reference and source examples. For LED, just look at the listings alongside the C and Lua. It's a simple language to figure out. Although LED allows GUI modification without recompilation, it seems hardly anyone uses it. IUP is so well designed that GUIs in Lua or C are quite simple to hand code. A C version will be more verbose than Lua, but if I'm writing a logic in C, I find it more convenient to stick with C for the GUI.