Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ExtendeD

Pages: 1 ... 25 26 [27] 28 29 ... 55
391
Lua / Re: MoonScript for Nspire
« on: August 14, 2011, 12:16:44 pm »
Nice language :) It reminds me the syntax of Groovy. It's a quite new language, isn't it?

But it's suuuuch a pain to install on Windows ... I had to:
- Download luarocks and run install.bat
- Add C:\LuaRocks\bin to the PATH
- Install wget (required by LuaRocks. Why doesn't it integrate it?)
- Add c:\Program Files (x86)\GnuWin32\bin to the PATH
- Install Visual Studio Express because... Moonscript's dependency "lpeg" is built with VC's command "cl"
- Add C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64 to the PATH (there are several cl.exe versions in the installation directory, use the one which runs on your computer)
- Install git required by Moonscript's dependency "luafilesystem"
- Add C:\Program Files (x86)\Git\bin to the PATH
- Open the Visual Studio 2010 Express command line prompt for 'cl.exe' to work
- Run luarocks: http://moonscript.org/#installation
- Add C:\LuaRocks\bin to the PATH
- Copy all the .dll files from C:\LuaRocks\lib\lua\5.1 to C:\LuaRocks\bin (strangely "C:\LuaRocks\lib\lua\5.1" is not scanned when loading Lua modules)

And now "moonc test.moon" throws:
Code: [Select]
lua: fatal error: `C:\LuaRocks/share/lua/5.1//alt_getopt.lua:75: attempt to get length of local 'arg' (a nil value)
stack traceback:
        C:\LuaRocks/share/lua/5.1//alt_getopt.lua:75: in function 'get_ordered_opts'
        C:\LuaRocks/share/lua/5.1//alt_getopt.lua:156: in function 'get_opts'
        [string "..."]:11: in main chunk

Any idea? The wierd thing is that I cannot find where alt_getopt is used by Moonlight in its source code.

[edit] get_opts is actually called from inlined Lua code in moonc.exe. Command-line arguments doesn't appear to be correctly propagated to the "arg" variable, may be a Moonscript bug on Windows ?

392
Ndless / Re: Ndless suggestions thread
« on: August 14, 2011, 11:01:45 am »
I like this thread :)

Thanks for this patch, here it is on the Ndless's SVN: http://hackspire.unsads.com/wiki/index.php/Libndls#CPU
Shouldn't CPU_SPEED_90MHZ be 0x00145002, as on OS < 2.1 according to this?
And is this one correct: #define CPU_SPEED_120MHZ 0x000A1002 ?

393
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: August 11, 2011, 07:58:36 am »
I have missed something: does it mean the built-in tool palette cannot be used with the player and the Computer Software?

394
TI-Nspire / Re: [Lua] Image Editor
« on: August 10, 2011, 05:10:11 pm »
Did you try Luna?

395
Calculator C / Re: C Q&A Thread
« on: August 10, 2011, 04:49:16 pm »
calc84maniac: oops, right :)

t0xic_kitt3n: sure! Commited as on_key_pressed().

396
Calculator C / Re: C Q&A Thread
« on: August 08, 2011, 05:01:40 pm »
Rather this (untested):

Code: [Select]
inline int is_on_key_pressed() {
  return !(*(volatile int*)0x900B0028 & 4);
}

397
Calculator C / Re: C Q&A Thread
« on: August 08, 2011, 04:46:59 pm »
For your first question this complies with C99:
Code: [Select]
struct sprite sprite = {.type = 1, .x = 6.5, .y = 17.5, .velocityX = 0, .velocityY = 0};But it strangely fails if sprite[0] is used, I don't know why.

For you second question, check 900B0028 bit 4, see http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports#900B0000_-_Power_management .

398
Great DJ.
Posting TI-Nspire related news is nearly a full-time job, the community is quite active :)

399
TI-Nspire / Re: [Lua] Image Editor
« on: August 06, 2011, 01:21:46 pm »
Nice tool Chockosta :)

400
Cuervo: no problem for me.
I'll merge back the changes if they are OK for Mac OS X users.

401
OpenSSL and zlib are embedded in the OS. Lionel exported some of the symbols of zlib in Ndless 2.0 so they can be directly used.
For OpenSSL the symbols and functions needs to be defined.
Then there is minizip, I'm not sure how portable it is, since it isn't really well written.

402
I could include them in the Luna archive put it really depends on their size as Lionel points out.
If they are too big, just upload or attach the one you've built for your own Linux distro, adriweb may then update his post to list them.

403
Just to be clearer on one point of adriweb's post: Luna fortunately doesn't infringe TI's patent in any way.

404
Calculator C / Re: Non-blocking serial read-function?
« on: July 30, 2011, 02:59:32 am »
You will have to use direct I/O access. It's not different than doing it from a computer: http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports#90020000_-_Serial_UART

Here is a code snippet that was once used in Ndless, equivalent to puts():

Code: [Select]
void ut_puts(const char *str) {
volatile unsigned *line_status_reg = (unsigned*)0x90020014;
volatile unsigned *xmit_holding_reg = (unsigned*)0x90020000;
while(*str) {
while(!(*line_status_reg & 0b100000)); // wait for empty xmit holding reg
*xmit_holding_reg = *str++;
}
}

405
Lua / Re: Third-party ports of Lua to TI calculators...
« on: July 25, 2011, 05:06:46 pm »
I personally haven't heard of it until now, I'm not sure RAGE2000 advertise it much.

Pages: 1 ... 25 26 [27] 28 29 ... 55