π
<-
Chat plein-écran
[^]

Performances, la NumWorks détrône la HP Prime ! :o

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby critor » 18 Dec 2017, 12:09

Merci, édité. Oui simple erreur de recopie, sinon ça n'aurait pas marché. :p
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 45%
 
Posts: 41669
Images: 15208
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby Lionel Debroux » 21 Dec 2017, 07:56

Je pense que Numworks a raison d'utiliser double pour les nombres flottants Python, et j'imagine qu'à moyen terme, pour des raisons de place disponible dans la Flash (du premier modèle), ils devront arrêter cette coûteuse duplication de code entre float et double dans le moteur de calcul. Même si les performances en souffriront.
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.2%
 
Posts: 6860
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby zardam » 22 Dec 2017, 22:52

J'ai finalement isolé la source de la différence de performance. En fait, cela provient de l'implémentation softfloat de la liba qui est moins rapide que celle de la libgcc. En utilisant la libgcc, j'ai des performances cohérentes avec celles de la pyboard. La dèrnière version du mandelbrot du forum s'exécute en environ 38 secondes (avec 320, 222, 10 en argument). Cerise sur le gâteau, utiliser la libgcc libère quelques ko de flash :)

Le code est ici : https://github.com/zardam/epsilon/tree/libgcc et il faut compiler avec l'option "USE_LIBGCC=1" pour l'activer.
User avatar
zardamPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 34.6%
 
Posts: 233
Images: 13
Joined: 11 Oct 2017, 23:39
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby compsystems » 23 Dec 2017, 12:41

What is the time used by the following code ?, Since I do not have a real hp-prime.

Please can someone make a comparison with ti-nspire & micropython

Code: Select all
EXPORT fractal(W,H,N)
BEGIN
LOCAL x,y,z,c,j,w,h,n;
w:=2.7/(W-1);
h:=1.87/(H-1);
n:=255.0/N;
FOR y FROM 0 TO H-1 DO
  c:=-2.1-i*(h*y-.935);
  FOR x FROM 0 TO W-1 DO
   z:=0;
   FOR j FROM 0 to N-1 DO
    IF ABS(z:=z²+c)>2 THEN
     break;
    END;
   END;
   PIXON_P(x,y,j*255*20);
   c:=c+w;
  END;
END;
FREEZE;
//WAIT(0);
END;
User avatar
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 40.2%
 
Posts: 256
Joined: 30 May 2011, 13:44
Gender: Male
Calculator(s):
MyCalcs profile

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby critor » 23 Dec 2017, 13:06

Unfortunately, we can't compare with TI-Nspire+MicroPython, since the Nspire graphic module for MicroPython won't let you write to the screen directly.

Your code takes 1min28.64s.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 45%
 
Posts: 41669
Images: 15208
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby compsystems » 24 Dec 2017, 14:30

This implies that you must port a library or graphic engine or develop a new one?
User avatar
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 40.2%
 
Posts: 256
Joined: 30 May 2011, 13:44
Gender: Male
Calculator(s):
MyCalcs profile

Re: Performances, la NumWorks détrône la HP Prime ! :o

Unread postby critor » 24 Dec 2017, 14:48

If we want to include the TI-Nspire in the comparison, we need to add instructions writing directly to the screen to a MicroPython module.

Currently :
- TI-Basic won't let you output anything else than characters to the screen
- Lua is buffering screen outputs, performing them all at once when it wants
- MicroPython and DukTape are forcing you to use offscreen layers (called Textures)

So none of them can be used.

The latter was a very bad choice from an educational point of view (not that it matters with the exam mode anyway nowadays, but the MicroPython port was supposed to target education if I remember the first posts about it well enough).
Since programming beginners with their simple graphic programs won't accept/understand why they have to define, dim and deal with all those big offscreens just to turn on a few pixels.
And you can't turn them into advanced programmers accepting and understanding this without showing them why it's needed for more advanced graphic programs.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 45%
 
Posts: 41669
Images: 15208
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Previous

Return to News NumWorks

Who is online

Users browsing this forum: No registered users and 5 guests

-
Search
-
Social TI-Planet
-
Featured topics
"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.
Offre de test des nouveautés de rentrée 2024 par Casio. Enseignant(e), reçois gratuitement 1 exemplaire, à ton choix, de la Graph Light ou bien de la Graph Math+
14€ remboursés par Casio sur l'achat de ta calculatrice Graph 35 d'ici le 31 Octobre 2024
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 90+E d'ici le 31 Décembre 2024
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 25 d'ici le 31 Décembre 2024
8€ remboursés par Casio sur l'achat de ta calculatrice Graph Math+ d'ici le 31 Octobre 2024
Reprise de ton ancienne fx-92 Collège ou Graph 25/35/90 à 3€ peu importe son état. Même non fonctionnelle et donc invendable, même ancienne Graph 35 non conforme aux programmes (pas de Python), même ancienne Graph 25/35 inutilisable aux examens (pas de mode examen) et donc invendable. Etiquette de retour fournie, pas de frais de port à payer.
3€ remboursés par Casio sur l'achat de ta calculatrice fx-92 Collège d'ici le 30 Septembre 2024
5€ de remise immédiate sur l'achat de ta calculatrice TI-83 Premium CE Edition Python chez les revendeurs partenaires
4€ de remise immédiate sur l'achat de ta calculatrice TI-82 Advanced Edition Python chez les revendeurs partenaires
3€ de remise immédiate sur l'achat de ta calculatrice TI-82 Advanced chez les revendeurs partenaires
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234567891011121314
-
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.
1573 utilisateurs:
>1566 invités
>2 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)