Re: Ca avance lentement (Stackless Python)
|-| /-\ |_ ()7 [°¿°] a écrit :
> Bonsoir !
>
> La seule fois où je me suis intéressé à Stackless, personne n'a pu
> vraiment me dire ce que ça apportait ("en pratique, c'est quoi, quel
> intérêt à, la continuation?")
> Et puis, j'ai remarqué que ce projet vivait par à-coups, avec de très
> longs mois sans mouvements. Donc, gros doute sur la pérennité du truc...
>
> @+
>
> Michel Claveau
>
>
J'ai l'impression que Stackless est vivant en ce moment.
C'est essentielement un Hack de C-Python, ffaisant que l'évaluateur
n'utilise plus la pile de C pour les pasages de paramètres. Compte tenu
des problèmes étanges avec le portage sur DSM-G600 que je rencontre il
se pourrait effectivement que ce soit des écrasements de pile.
Il se rajoute une fonctionalité de Tasklet. Si j'ai bien compris
stackless intégre un ordonaceur (round robin) et ces tasklet sont gérées
par cette ordonanceur.
"It allows programmers to reap the benefits of thread-based programming
without the performance and complexity problems associated with
conventional threads. The microthreads that Stackless adds to Python are
a cheap and lightweight convenience which can if used properly, give the
following benefits:
* Improved program structure.
* More readable code.
* Increased programmer productivity."
et description sur python.org :
"Stackless Python is a fork of CPython, but not one that diverges very
far from the main tree. Christian Tismer rewrote the main interpreter
loop of CPython to minimize its use of the C stack; in particular,
calling a Python function in Stackless Python doesn't occupy any more
room on the C stack. This means that, while CPython can only recurse a
few thousand levels deep before filling up the C stack and crashing,
Stackless can recurse to an unlimited depth. Stackless is also
significantly faster than CPython (around 10%), supports continuations
and lightweight threads, and has found a community of highly skilled
users who use it to do things such as writing massively-multiplayer
online games. The Stackless Python home page is at
http://www.stackless.com."
Séduisant non ?
|