Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: critor on April 12, 2011, 09:01:13 pm

Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 09:01:13 pm
The real 3.0 Periodic Table face :
http://tibank.forumactif.com/t6885-topolangage-script-ti-os-30-enfin-un-langage-api#109245

I've just newsed about the new Nspire "secret" programming language included in OS 3.0! (according to our first investigations some kind of an object oriented script, very similar to Lua)
http://ti.bank.free.fr/index.php?mod=news&ac=commentaires&id=1042
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: mikehill2003 on April 12, 2011, 09:01:25 pm
Yes, they would.

Wow.  I thought that be against the law or something.  Do they at least have to warn people that they are buying a flawed product?

lolwow
Are you using MS Windows right now?
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: calc84maniac on April 12, 2011, 09:02:02 pm
Yes, they would.

Wow.  I thought that be against the law or something.  Do they at least have to warn people that they are buying a flawed product?
The product itself isn't flawed, the software simply has a bug (which doesn't produce incorrect results, but just gives an error message). That's what OS updates are for.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: mikehill2003 on April 12, 2011, 09:04:32 pm
Yes, but they don't have to patch it if they don't want to. Critor has complained to TI about OS bugs, and they haven't fixed them. (If I remember correctly)
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: calc84maniac on April 12, 2011, 09:08:26 pm
Yes, but they don't have to patch it if they don't want to. Critor has complained to TI about OS bugs, and they haven't fixed them. (If I remember correctly)
If said OS bugs were not part of the math functionality, they'd have less incentive to fix them. I'm sure they'll fix fundamental glitches in the math functions (and didn't someone in that google groups topic say something about a reply from TI that they planned to fix the bug?)
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 09:13:41 pm
The real 3.0 Periodic Table face :
http://tibank.forumactif.com/t6885-topolangage-script-ti-os-30-enfin-un-langage-api#109245


Are we currently able to use this or will it require a software hack?
I've just newsed about the new Nspire "secret" programming language included in OS 3.0! (according to our first investigations some kind of an object oriented script, very similar to Lua)
http://ti.bank.free.fr/index.php?mod=news&ac=commentaires&id=1042
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 09:14:02 pm
Yes, but they don't have to patch it if they don't want to. Critor has complained to TI about OS bugs, and they haven't fixed them. (If I remember correctly)
If said OS bugs were not part of the math functionality, they'd have less incentive to fix them. I'm sure they'll fix fundamental glitches in the math functions (and didn't someone in that google groups topic say something about a reply from TI that they planned to fix the bug?)

For information, I've reported a math bug giving a bad result with complex numbers on all TI-83/83+/84+ OSes.

2 years ago...

They replied with a "thank you", and "we're forwarding to the development team".

They never fixed anything... The bug is still there in the 84+ 2.56MP OS.


angle(N) with N being a negative real number returns Pi in both radian and degree angular modes.

In degree mode, it should return 180.

Of course, a human will automatically replace Pi by 180.
But a program will just continue to perform its operations using the wrong value, if its developer wasn't aware of the bug.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: calc84maniac on April 12, 2011, 09:16:30 pm
Yes, but they don't have to patch it if they don't want to. Critor has complained to TI about OS bugs, and they haven't fixed them. (If I remember correctly)
If said OS bugs were not part of the math functionality, they'd have less incentive to fix them. I'm sure they'll fix fundamental glitches in the math functions (and didn't someone in that google groups topic say something about a reply from TI that they planned to fix the bug?)

For information, I've reported a math bug giving a bad result with complex numbers on all TI-83/83+/84+ OSes.

2 years ago...

They replied with a "thank you", and "we're forwarding to the development team".

They never fixed anything... The bug is still there in the 84+ 2.56MP OS.


angle(N) with N being a negative real number returns Pi in both radian and degree angular modes.

In degree mode, it should return 180.

Of course, a human will automatically replace Pi by 180.
But a program will just continue using the wrong value...
Well yes, I realize that they don't care about TI-84+ bugs anymore. But for their shiny TI-Nspire line, they actually care about that stuff it seems.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: mikehill2003 on April 12, 2011, 09:18:51 pm
Quote
Are we currently able to use this or will it require a software hack?
Use what, the periodic table? If it's a page that can be added to documents, or a program like the scratchpad, I doubt we can use it on the non-CX nspires. If it's a tns, it should work on any OS3 nspire.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 09:20:55 pm
I hope they care about TI-Nspire bugs. Theyt already have a bad enough rep on stuff like that(mainly from us). If they keep it up they will probably start losing lots of customers

EDIT:
Quote
Are we currently able to use this or will it require a software hack?
Use what, the periodic table? If it's a page that can be added to documents, or a program like the scratchpad, I doubt we can use it on the non-CX nspires. If it's a tns, it should work on any OS3 nspire.

I was talking about the scripting language that makes it work
By the way I downloaded this app and have not seen any real special functionality what is it supposed to be able to do on nonCAS Nspire?
I don't think any of what I'm seeing would require a scripting language I have a version much like this on my calc already that is community made
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: mikehill2003 on April 12, 2011, 09:23:04 pm
I hope they care about TI-Nspire bugs. Theyt already have a bad enough rep on stuff like that(mainly from us). If they keep it up they will probably start losing lots of customers
See, the problem is that they don't have to care. Schools (their main source of calculator purchases) will buy them anyway. I'd have a Prizm right now if the OS was a little better, but IMO TI dosen't have any close competitors.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 09:23:27 pm
Quote
Are we currently able to use this or will it require a software hack?
Use what, the periodic table? If it's a page that can be added to documents, or a program like the scratchpad, I doubt we can use it on the non-CX nspires. If it's a tns, it should work on any OS3 nspire.



I suppose he was meaning "using the script language behind the periodic table".

And the answer is no.

We can only use it if we get the special software to insert/edit "TI.ScriptApp" widgets.
The, TI-Nspire Developer Edition?
It seems John Powers has it.


No wonder they're trying to kill Ndless. They'll be able to sell that software, and/or the generated documents! :P
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 09:25:27 pm
I wonder if they'll try to sell the SDK and if so when and for how much. I will not pay much for it(most $20) otherwise I can get a copy of it off the internet easily enough if they release it.

yeah that was what I meant. we'lll have to hack it or maybe John Powers will be nice and give it to us
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 09:31:49 pm
I wonder if they'll try to sell the SDK and if so when and for how much. I will not pay much for it(most $20) otherwise I can get a copy of it off the internet easily enough if they release it.

yeah that was what I meant. we'lll have to hack it or maybe John Powers will be nice and give it to us

John Powers was allready in the TI-68k development team.
I don't think you'll get anything from him by simply "asking" for it.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 09:58:42 pm
Petition maybe?

A hack will proably be our best idea for now.
so what exactly is the scripting language(Lua) doing in the periodic table file?
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 10:03:04 pm
Petition maybe?

A hack will proably be our best idea for now.
so what exactly is the scripting language(Lua) doing in the periodic table file?

Lots of things that are totally impossible with the public TI-Nspire programming language.
If you don't understand, just try to program something like that on a TI-Nspire without using Ndless.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 10:04:46 pm
I kind of see what it is doing. Just it doesn't seem that revolutionary. Easier browsing and a nice view position. Doesn't have as much data as my other one but is easier to navigate.

In the image of it it looks like it does a lot more on my calc it has no kind of pop-out menus
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 10:10:56 pm
Well, the most important information is not that a periodic table has been released... That's not revolutionary.

The most important information is that the ti-Nspire now supports a new "private" programming language.
And that even TI is releasing documents using this "private" language, and not the "public" one! :P
And by digging into the code, it seems very advanced for a script: an object oriented script!
It seems to handle classes and inheritances! (yes, like C++ or Java...)
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 10:19:08 pm
I heard that it had the same syntax as Lua. Is that true?
I mean nothing revolutionary is being done. It doesn't seem to be all that different froma regular program

EDIT: Never mind I hadn't been pressing enter on them and didn't realize what it could do. This truly is pretty good. I see many uses
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 10:23:59 pm
I heard that it had the same syntax as Lua. Is that true?
I mean nothing revolutionary is being done. It doesn't seem to be all that different froma regular program

If you still don't understand, just try to create such regular programs on the TI-Nspire and come back after that.

Did you even know that the TI-Nspire public programming language was very limited... even the TI-80/81 and Casio programming languages are more advanced!


I didn't state it was revolutionnary.

This is just information: the "public" programming language, which is so wonderfull according to T3 teachers is not even used by TI to release Nspire documents. They're using a "private" programming language.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: ruler501 on April 12, 2011, 10:25:37 pm
Please look at my edit. I hadn't realized all of what it could do so I thought it was not as good as it is. It actually is pretty good and apears to be very useful.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: critor on April 12, 2011, 10:26:55 pm
Please look at my edit. I hadn't realized all of what it could do so I thought it was not as good as it is. It actually is pretty good and apears to be very useful.

Oh, yes :)
Ok.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Lionel Debroux on April 13, 2011, 01:27:24 am
Who wants to make a technical post to introduce the new, private programming language onto the tinspire Google group ? :D
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Goplat on April 13, 2011, 02:09:50 am
First Lua game on the TI-Nspire ;D
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Lionel Debroux on April 13, 2011, 02:15:19 am
Great, congratulations ;)
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: DJ Omnimaga on April 13, 2011, 02:16:58 am
O.O

This makes me want to update now O.O
/me grabs TNOC, though...

EDIT: Wow that is great. Simple but I'm so happy to see non-BASIC stuff already running on the Nspire OS 3.0, even if it's not pure ASM/C. Great job guys with your discoveries!
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Levak on April 13, 2011, 07:39:26 am
1 week without game on Nspire. Dude, it was hard to survive \o/
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Munchor on April 13, 2011, 07:44:38 am
1 week without game on Nspire. Dude, it was hard to survive \o/

I imagine :P Does the Basic have getKey already?
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Lionel Debroux on April 13, 2011, 07:46:50 am
Nope, the Nspire's BASIC still doesn't contain getKey or drawing, AFAWCT.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Levak on April 13, 2011, 07:50:47 am
... whereas in the Nspire Lua API, we've got a Graphic Component/Content/Controller (choose the one you like) named gc.
For example :

gc:setFont()
gc:setColorRGB()
gc:setPen()
gc:drawRect()
gc:fillRect()

etc ...
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Munchor on April 13, 2011, 07:51:34 am
... whereas in the Nspire Lua API, we've got a Graphic Component/Content/Controller (choose the one you like) named gc.
For example :

gc:setFont()
gc:setColorRGB()
gc:setPen()
gc:drawRect()
gc:fillRect()

etc ...

That's awesome, I should get OS 3.0 and start coding some Lua games.
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Levak on April 13, 2011, 07:55:25 am
First Lua game on the TI-Nspire ;D

Don't forget to add 2 new options in your emulator ;)
"Export XML"
"Import XML"

By the way, a third option "Nspire -> PC *.tns download" could be great  :p

Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Yeong on April 13, 2011, 08:32:12 am
do we hav to know XML to program?
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Lionel Debroux on April 13, 2011, 08:34:30 am
Probably not - someone is bound to make tools that ease this particular part of Nspire Lua programming :)
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: Levak on April 13, 2011, 08:39:08 am
do we hav to know XML to program?
Have a little look, here :
http://tibank.forumactif.com/t4905-tuto-syntaxe-du-fichier-tns
Title: Re: TI-Nspire OS 3.0 Released: Nleash no longer working
Post by: DJ Omnimaga on April 13, 2011, 07:20:42 pm
Oh this is nice, I didn't know that was available. Someone should translate this in English at one point. Thanks Levak. :D