π
<-
Chat plein-écran
[^]

BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+E

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby parisse » 12 Jun 2018, 20:36

Unfortunately, I must strip some features to spare bytes, I'm trying to keep the most important ones (i.e. keep CAS features, I have dropped all geometry/plot commands for example). If you want to check, I have the current not functional addin test.g3a on my web page:
https://www-fourier.ujf-grenoble.fr/~parisse/casio/
If you need test.bin or object files I can also put them there.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 78%
 
Posts: 3511
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby amazonka » 12 Jun 2018, 22:28

Thanks for sharing - i have checked the checksums and executable code size and file size etc in the header and offset for the checksum at the end of the file and all seems right to me and at correct offsets -so I also suspect that it is OS problem not mkg3a one. It must be really hard to make the file smaller and decide what features to drop. I noticed the strings at the end of the files are occupying quite a lot of space - close to how much you need to lose - maybe you can strip them out into a separate file (to be installed together with the addin) and have the addin read it on the fly via some index to make you addin considerably smaller.
User avatar
amazonka
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 0%
 
Posts: 18
Joined: 12 Jun 2018, 11:00
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby parisse » 13 Jun 2018, 06:56

I don't think I will do that unless I'm forced to, because it requires too many changes. But looking at the strings is an excellent idea, I can locate positions where I can remove code without loosing much functionnalities.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 78%
 
Posts: 3511
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby Adriweb » 13 Jun 2018, 07:02

On the CE and the Nspire, programs are/can-be compressed first, making transfers faster and storage more efficient. Then, at launch, it's extracted in RAM. This is done by adding some self-extract code at the top of the program, that will run when the program is opened.
Could there be a way to do this quickly on the Casio? Could be RLE to code it faster, but generally a better one would be preferred (zx7 on the CE, zlib on the Nspire)
Image

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...)
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80.3%
 
Posts: 14617
Images: 1218
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby parisse » 13 Jun 2018, 11:37

I don't think it is possible, because the RAM visible to the addin seems to be 1M large.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 78%
 
Posts: 3511
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby critor » 13 Jun 2018, 12:03

Ah merci. Donc sur les 8M de RAM, on aurait droit à 1M de mémoire de travail pour l'application courante.
Cela va donc dans le sens de ce qui a été constaté pour le Python.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 42.7%
 
Posts: 41502
Images: 14751
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby parisse » 13 Jun 2018, 12:34

je ne sais pas comment ils arrivent a utiliser 1M, parce qu'il y a me semble-t-il 64K de tas et le reste du mega pour la stack et la ram statique. Sauf s'ils utilisent 2 malloc differents.
On peut soupconner que c'est ca qui permet de passer d'une appli a une autre en conservant la memoire, on observe en effet que si on quitte une appli avec la touche MENU et qu'on revient dedans on la retrouve dans l'etat courant. Si cette hypothese est vraie, il y aurait un maximum de 8 applis qu'on pourrait faire tourner simultanement.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 78%
 
Posts: 3511
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby amazonka » 15 Jun 2018, 06:51

Simon Lothar wrote about g3a virtualisation among others here http://www.casiopeia.net/forum/viewtopi ... ing#p14339 “At best syscall 0x0026 could serve as template. 0x0026 is used to virtualize a G3A. Important syscalls in this course are 0x1DAA, which enumerates the 4096-byte blocks of an open file, and 0x0009, which sets the TLB.
Possibly syscall 0x0027 is informative, too. It virtualizes the static RAM (8*64k) of a G3A and uses 0x000A to set the TLB.

I did not unravel the way of 0x0026 in detail, therefore I cannot present examples. These things are rather complicated.”

Asking him what he knows about size of add-in limitations / workarounds may help a lot.

Separately my understanding of addin states being preserved is that only for the most resently exited addin it is preserved when you leave to main menu and come back to it. Also something gbl08ma I think was calling child process can be launched when another add-in/built-in app is started as e-activity like strip app (with checkered status bar) and then menu key press switches from child process to back to the parent app.

Having said it all it is still possible to create linked with eachother addins- for example have one addin save its state or more like history of inputs etc and when necessary launch another addin reusing those saved inputs for some additional functionality not available in the first addin...
User avatar
amazonka
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 0%
 
Posts: 18
Joined: 12 Jun 2018, 11:00
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby parisse » 15 Jun 2018, 19:04

I'm afraid I don't understand what you mean by virtualization and so, but perhaps that is not essential if I can fit something good enough in 2M.
For file exchange between addins, I think it could be very useful for khicas programs, because they could be written with the Python addin using Python khicas syntax compatibility.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 78%
 
Posts: 3511
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: BAC 2018 : du calcul formel avec Eigenmath sur Graph 90+

Unread postby amazonka » 15 Jun 2018, 19:28

I don’t know myself but will ask Simon provided my login still works there.
User avatar
amazonka
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 0%
 
Posts: 18
Joined: 12 Jun 2018, 11:00
Gender: Not specified
Calculator(s):
MyCalcs profile

PreviousNext

Return to News Casio

Who is online

Users browsing this forum: No registered users and 134 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
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.
1565 utilisateurs:
>1551 invités
>9 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)