π
<-

iostream et STL

C, C++, ASM...

Re: iostream et STL

Unread postby Lionel Debroux » 03 Apr 2014, 19:23

Sounds like you've found fun tasks for yourself, Adriweb: making a Ndless Lua extension out of giac, and building a a quick Lua GUI on top of it ;)
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 11.3%
 
Posts: 6869
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Re: iostream et STL

Unread postby Excale » 03 Apr 2014, 20:35

parisse wrote:A calculation GUI for giac would already be great! And if the GUI gives easy access to the online help (like in Xcas, Index, where you have a short description of the command, and you can select an example to be copied in the commandline where you can modify it, or navigate to a related command) and menus (a suitable menu could be a submenu of Xcas menu, see attached file for the French version) it would be awesome. Embedded 2-d plots and/or programs is harder, probably a couple months of work.


Does Giac support UTF-16 input (and/or output)?
User avatar
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 3.9%
 
Posts: 2955
Images: 3
Joined: 10 Sep 2010, 00:00
Gender: Male
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby parisse » 03 Apr 2014, 20:48

The parser uses UTF8 and prints UTF8 but there are conversion routines to UTF16 (utf82unicode and unicode2utf8)
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3721
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby ExtendeD » 03 Apr 2014, 20:57

This is indeed a perfect use case for Ndless Lua extensions. Prototyping and building UI with Lua and the TI-Nspire API is much easier.
User avatar
ExtendeDPremium
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 64.1%
 
Posts: 204
Joined: 30 Dec 2004, 00:00
Gender: Male
Calculator(s):
MyCalcs profile
Class: N/A

Re: iostream et STL

Unread postby Excale » 03 Apr 2014, 21:20

parisse wrote:The parser uses UTF8 and prints UTF8 but there are conversion routines to UTF16 (utf82unicode and unicode2utf8)


Perfect. I might try something someday then.
User avatar
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 3.9%
 
Posts: 2955
Images: 3
Joined: 10 Sep 2010, 00:00
Gender: Male
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby Adriweb » 03 Apr 2014, 21:54

Lionel Debroux wrote:Sounds like you've found fun tasks for yourself, Adriweb: making a Ndless Lua extension out of giac, and building a a quick Lua GUI on top of it ;)

Well, highly probably "no". Nspire C(++)-fluent people can do the Lua extension and sure, I can do the rest :P
It's actually nothing else than me being much better at Nspire Lua that at Nspire C(++) (I only made a hello world for 3.1 :P)
And for such a project, everyone only wants the best out of it :D

I'll start looking at ways to integrate the online help to a fork of Xavier's superspire code. I'm already familiar enough with it so diving in won't probably be an issue.

Edit : btw, when I have time, though.... :/

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.7%
 
Posts: 14820
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: iostream et STL

Unread postby Legimet » 05 Apr 2014, 04:58

I haven't been following this that much lately, but does it use Newlib now?
User avatar
LegimetProgrammeur
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 8%
 
Posts: 13
Joined: 12 Dec 2013, 02:49
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby parisse » 05 Apr 2014, 07:29

No, I did not try to compile with newlib, it's os.h+ustl+nspire-io+tommath.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3721
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby parisse » 09 Apr 2014, 09:56

Updated with RTTI enabled during compilation (I have removed -fno-rtti from the nspire-g++ script). It seems to work, at least finite field are now supported, for example GF(2,4).
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3721
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby Adriweb » 01 May 2014, 12:31

Some news since last time ? :)

(BTW, Excale was trying to build giac for the Nspire, but couldn't make it. Are there any specific things to do ?
I guess he can reply himself to ask proper instructions ^^
Du nouveau depuis quelques semaines ? :)

(PS : Excale tentait de builder giac pour Nspire, sans succès si j'ai bien compris : y aurait-il des instructions particulières ?
Enfin, je le laisse répondre pour demander ce dont il aurait besoin en particulier ^^)



Edit : translated into english too.

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.7%
 
Posts: 14820
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

PreviousNext

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: ClaudeBot [spider] and 6 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1511 utilisateurs:
>1500 invités
>6 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)