--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec8bf736-c316-8e9a-01ec-16383c78e746%40yandex.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jani,
I don't want to optimize my code manually except with machine-compiled instructions.
Cheers,
Etienne
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91ofbbm2uNyWmJ%3DH9H8eWMmFEpOPNnN3JkJy1UWmcw6kACQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-- Etienne Robillard tka...@yandex.com https://www.isotopesoftware.ca/
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91ofbbm2uNyWmJ%3DH9H8eWMmFEpOPNnN3JkJy1UWmcw6kACQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-- Etienne Robillard tka...@yandex.com https://www.isotopesoftware.ca/
The reason I want to use a JIT compiler for running embedded
Django applications is this:
"More recently, developers began pioneering a new field in dynamic compilation called trace compiling, or tracing. During compilation into the intermediate language, the compiler can mark the branches within the code, for example, a label in front of a return statement, a jmp operation at a break statement, or call or return. The reasoning is simple, if you strip away all of the jumps and function calls, no matter how long the program is, as long as its written by a human, then from an engineer's perspective, the program will always run in negligible time. Where programs begins to eat up memory however, are the various loops, recursive calls, and whatnot. Essentially, the introduction of branches makes the complexity of the program unpredictable, hence by optimizing the frequently used loops and function calls, we can effectively balance the efficiency of the program with the resources required to compile the code (which is still not trivial by any means). It also solves another major problem. Whenever the program counter (or instruction pointer) hits one of the branch markers, its entire execution flow is traced and stored (and will eventually be compiled if that route is taken frequently enough). Because the program flow of a string concatenation differs from those of an integer addition or even an overloaded function, each of these flow generates unique traces with their unique signatures (the input). For this very reason, if we encounter a string concatenation before an integer addition, the program will not only be able to identify the integer case as a completely different route, but will also be able to break down the complexity of the environment so that further optimizations during the compilation of the integer route can safely assume that its inputs are strictly integers. Neat huh?" [1]
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91odnLhi9JQFzGD%2BJqLP26s0Eh1J4iJAh3mJYtiCvSDgQoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
I don't want to optimize my code manually except with machine-compiled instructions.
Hi Jason,
Please don't read me wrong. I want to allow my users to optimize
the efficiency of Python/Django web applications using JIT.
Cheers,
Etienne
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b5f37295-8ca1-4c33-a819-6c524c76deb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jason,
Please don't read me wrong. I want to allow my users to optimize the efficiency of Python/Django web applications using JIT.
Cheers,
Etienne
Le 2018-01-28 à 07:55, Jason a écrit :
What I get from you, Etienne, is that you think this is a cool area to look into, but don't have anything else aside from that suspect coolness factor to apply to your proposal. Besides, this thing you said above--
I don't want to optimize my code manually except with machine-compiled instructions.
makes me extremely concerned that you're in the middle of an X-Y Problem and are avoiding the core issue because you don't feel its your responsibility to practice good design, execute profiling to benchmark performance and implement what optimizations are available for the bottlenecks identified.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b5f37295-8ca1-4c33-a819-6c524c76deb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Etienne Robillard tka...@yandex.com https://www.isotopesoftware.ca/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/179ea6ad-a568-e794-ce04-4a41121470f5%40yandex.com.
Hi Jani,
I agree.
I'm really not interesting in "fixing" bad code. I work with open-source grade only softwares like Django. :)
Cheers,
Etienne
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91ofqA9_DBtqkkeFjbf8fgw5jXSSSmmoD%2Byn6nW6bpyD_bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Django-hotsauce is a high-performance toolkit for Django. Using Cython under the hood is really a good method to optimize standard Django applications, but I want to investigate how JIT and PyPy can further improve performances beyond Cython.
So whats the whole fuzz about JIT and all that if you're happy with Django as is and how it works with Python..? :-o
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91ofqA9_DBtqkkeFjbf8fgw5jXSSSmmoD%2Byn6nW6bpyD_bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-- Etienne Robillard tka...@yandex.com https://www.isotopesoftware.ca/
--
Jani Tiainen
- Well planned is half done, and a half done has been sufficient before...