1246
News / Native Lua Extensions thanks to the latest Ndless update !
« on: February 16, 2012, 06:21:01 pm »
The latest Ndless update provides a wonderful we've been excited about for some time now : Third-Party Lua Extensions !
You can see the news article on TI-Planet.org there, or right here directly translated in English :
Hi all, Today is a great day (like many others these days...)
You know already that, on the Nspire, it was possible to program in:
Now Extended (Ndless author) offers to combine the power of C with the simplicity of Lua, with the "xLua" (for "eXtendedLua ", but it is I who named like that, Extended did not specify a name. ... )
I am announcing today the appearance of native extensions on Lua!
Mix native routines with your Lua scripts (using Lua modules)!
Isn't that awesome ?
To take advantage of this new feature, download the latest version of Ndless (see end of this post), and once installed, transfer samples/luaextdemo.tns to a folder named ' /ndless/luaext 'on your TI-Nspire, and run runluaextdemo.tns to have a simple example (prints "hello world" on the console). Note by the way the return of "print ()" (sound output is back !) that TI was removed in version 3.1 ...
Writing extensions is fairly simple and is based on the C API standard Lua. You can judge for yourself in the sources available in the download ( src/samples/luaextdemo ).
Official Manual: http://www.lua.org/manual/5.1/manual.html#3
For now, only a few API functions are available, but this is improving day by day!
We can therefore take advantage graphical routines faster! (Especially for images ...)
Your extensions ideas are welcome !
Download the latest version ( r547 ) of Ndless 3.1: http://tiplanet.org/forum/archives_voir.php?id=3891
Please note that this "xLua" feature is this in development and can be buggy, so use it at your own risks
You can see the news article on TI-Planet.org there, or right here directly translated in English :
Hi all, Today is a great day (like many others these days...)
You know already that, on the Nspire, it was possible to program in:
- Basic : the more integrated with the OS, with great math interactions. However, it is slow and has few graphics possibilities etc..
- Lua : Since OS 3, TI added this interpreted language that fits the Nspire very well and provides great improvements over the Basic, thanks to strong performances in both graphic and power etc.. Lua is known to be easy to use and flexible in terms of language itself.
- C / Asm : Thanks to jailbreak Ndless. This is the most powerful because it directly controls the calculator's processor (ARM9). However, it is quite difficult to master especially for beginners.
Now Extended (Ndless author) offers to combine the power of C with the simplicity of Lua, with the "xLua" (for "eXtendedLua ", but it is I who named like that, Extended did not specify a name. ... )
I am announcing today the appearance of native extensions on Lua!
Mix native routines with your Lua scripts (using Lua modules)!
Isn't that awesome ?
To take advantage of this new feature, download the latest version of Ndless (see end of this post), and once installed, transfer samples/luaextdemo.tns to a folder named ' /ndless/luaext 'on your TI-Nspire, and run runluaextdemo.tns to have a simple example (prints "hello world" on the console). Note by the way the return of "print ()" (sound output is back !) that TI was removed in version 3.1 ...
Writing extensions is fairly simple and is based on the C API standard Lua. You can judge for yourself in the sources available in the download ( src/samples/luaextdemo ).
Official Manual: http://www.lua.org/manual/5.1/manual.html#3
For now, only a few API functions are available, but this is improving day by day!
We can therefore take advantage graphical routines faster! (Especially for images ...)
Your extensions ideas are welcome !
Download the latest version ( r547 ) of Ndless 3.1: http://tiplanet.org/forum/archives_voir.php?id=3891
Please note that this "xLua" feature is this in development and can be buggy, so use it at your own risks