Re: Native JIT compiler for Django?

2018-01-28 Thread Etienne Robillard
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. Le 2018-01-28 à 11:14, Jani Tiainen a écrit : So w

Re: Native JIT compiler for Django?

2018-01-28 Thread Etienne Robillard
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 Le 2018-01-28 à 08:30, Jani Tiainen a écrit : Hi. 28.1.2018 3.10 ip. "Etienne Robillard" > kirjoitti: Hi Jason,

Re: Native JIT compiler for Django?

2018-01-28 Thread Jani Tiainen
Hi. 28.1.2018 3.10 ip. "Etienne Robillard" kirjoitti: 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. And thats the catch. You can easily write code that is slow and no language, no JIT or tool can fix. Fo

Re: Native JIT compiler for Django?

2018-01-28 Thread Etienne Robillard
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 any

Re: [pypy-dev] How to implement a JIT compiler for Django ?

2018-01-28 Thread Etienne Robillard
succesful, where success is defined as making it a default backend. to translate CPython classes into a tracing JIT compiler... This statement is devoid of meaning. I'm positive you can use PyPy in embedded C/C++ applications to enable trace compilation of Python objects. JIT is co

Re: Native JIT compiler for Django?

2018-01-28 Thread Jason
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 > instruct

Re: [pypy-dev] How to implement a JIT compiler for Django ?

2018-01-28 Thread Etienne Robillard
human-generated Python code. So far, I want to use the LLVM backend (PyPy) to translate CPython classes into a tracing JIT compiler... Tracing JIT engines like PyPy translate bytecode into machine code on the fly taking into account invariants discovered during runtime, which theoretically

Re: Native JIT compiler for Django?

2018-01-28 Thread James Bennett
mined that some part of our program is not running fast enough to meet some specific goal. Until we know that we have a problem, we don't try to reach for a solution. Django can, as the other reply mentioned, run on PyPy, which uses a nice JIT compiler. If you have no specific goal in mind

Re: Native JIT compiler for Django?

2018-01-28 Thread Etienne Robillard
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 bra

Re: Native JIT compiler for Django?

2018-01-28 Thread Jani Tiainen
p. "Etienne Robillard" kirjoitti: > >> Hi, >> >> I would like to know if it's possible to compile Django code with a JIT >> compiler to a C file using LLVM? >> >> What do you think? >> >> Etienne >> >> >> Etienne R

Re: Native JIT compiler for Django?

2018-01-28 Thread Etienne Robillard
ed to optimize your python code before trying such an extreme actions? 27.1.2018 9.04 ip. "Etienne Robillard" <mailto:tkad...@yandex.com>> kirjoitti: Hi, I would like to know if it's possible to compile Django code with a JIT compiler to a C file using LLVM? Wh

Re: Native JIT compiler for Django?

2018-01-28 Thread Jani Tiainen
if it's possible to compile Django code with a JIT > compiler to a C file using LLVM? > > What do you think? > > Etienne > > > Etienne Robillard > tkad...@yandex.com > https://www.isotopesoftware.ca/ > > -- > You received this message because you are subscribe

Native JIT compiler for Django?

2018-01-27 Thread Etienne Robillard
Hi, I would like to know if it's possible to compile Django code with a JIT compiler to a C file using LLVM? What do you think? Etienne Etienne Robillard tkad...@yandex.com https://www.isotopesoftware.ca/ -- You received this message because you are subscribed to the Google Groups &q

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
;>>> lists) but I also asked if I can use JavaScript scripts such as jQuery, >>>> jQuery UI and other jQuery plugins from the scripts in Python and Russell >>>> said it's possible but not practical for production. And I'm thinking about >>>> de

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
>> developing Speedy Mail Software or other projects for production (of course >> after the alpha & beta are over) so I guess we are stuck with JavaScript >> for the client side programming. And I don't mind if they use a compiler or >> an interpreter or any other m

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
for the client side programming. And I don't mind if they use a compiler or an interpreter or any other method to run Python in the client side, as long as it works. But without using jQuery and other plugins it would be very hard to use these projects in production. Uri. *Uri Even-Chen* [i

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thank you Russ. If it's not possible to do it easily in production then I guess we are stuck with JavaScript, although I prefer Python. But without jQuery, jQuery UI and other jQuery plugins I find it very difficult to write client side scripts in Python. So I think we will write client side script

Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Russell Keith-Magee
On Sat, Aug 8, 2015 at 4:27 PM, Uri Even-Chen wrote: > Hi Russ, > > I checked the projects you mentioned, but is it possible to communicate > with other JavaScript scripts such as jQuery, jQuery UI and plugins for > jQuery? I would like to have a way to communicate from Python to JavaScript > in

Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Robert
On 8/7/2015 7:00 AM, Uri Even-Chen wrote: To Django users, Are you familiar with pyjs ? I saw the website and I see that the latest stable release is from May 2012. Is it possible to use pyjs to compile Python to JavaScript? Which versions of Python are supported? Are vers

Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Uri Even-Chen
Hi Russ, I checked the projects you mentioned, but is it possible to communicate with other JavaScript scripts such as jQuery, jQuery UI and plugins for jQuery? I would like to have a way to communicate from Python to JavaScript in the client side, otherwise I really think we will not be able to u

Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Uri Even-Chen
Hi Russ, Thanks for the information. Yes, I'm looking for software that is ready for production, or at least works well in most platforms. I also know JavaScript, but I was thinking about programming in Python for the client side too. I will check the projects you mentioned, thank you! Uri. *Ur

Re: pyjs - a compiler from Python to JavaScript

2015-08-07 Thread Russell Keith-Magee
Hi Uri, There are multiple projects out there trying to bridge the gap between Python and Javascript. PyJS was one of the first I was aware of, but to the best of my knowledge, it hasn't been very active for the last couple of years. Brython and Skulpt are two other projects - those two *have* bee

pyjs - a compiler from Python to JavaScript

2015-08-07 Thread Uri Even-Chen
To Django users, Are you familiar with pyjs ? I saw the website and I see that the latest stable release is from May 2012. Is it possible to use pyjs to compile Python to JavaScript? Which versions of Python are supported? Are versions 2.7 and 3.4 supported? And is it possible to

Re: Embedding a compiler to my web page

2015-03-07 Thread Russell Keith-Magee
be *extremely* careful about how you set up the compilation tools to make sure they are adequately sandboxed. Yours, Russ Magee %-) On Sun, Mar 8, 2015 at 12:08 AM, luis zarate wrote: > You should want to read about subprocess > > https://docs.python.org/3.4/library/subprocess.htm

Re: Embedding a compiler to my web page

2015-03-07 Thread luis zarate
You should want to read about subprocess https://docs.python.org/3.4/library/subprocess.html Install your favorite compiler and call it with subprocess as a comand line program. 2015-03-07 9:01 GMT-06:00 Snehasish Sen : > How can I embed a c/c++ compiler to my site which can host a programm

Embedding a compiler to my web page

2015-03-07 Thread Snehasish Sen
How can I embed a c/c++ compiler to my site which can host a programming competetion -- 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-user

Re: compiler

2012-11-05 Thread Kurtis Mullins
You could use Lint to check your code for syntax errors. On Mon, Nov 5, 2012 at 4:18 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > I tried copy/pasting the code you linked into PyCharm and it worked fine. > Gotta be spacing/indentation somewhere. > > > _Nik > > On 11/5/2012 1:

Re: compiler

2012-11-05 Thread Nikolas Stevenson-Molnar
I tried copy/pasting the code you linked into PyCharm and it worked fine. Gotta be spacing/indentation somewhere. _Nik On 11/5/2012 1:26 AM, Markus Christen wrote: > I have tryed your input, but i have always the same problem... i cant > fix it. it doesent work and i dont know why. (i have it in

Re: compiler

2012-11-05 Thread Nikolas Stevenson-Molnar
I know you checked it, but indentation is the only thing I can think of that would cause this. The problem isn't necessarily on the line with the return statement, there may be an earlier line indented incorrectly. Have you tried PyCharm's "Convert Indents" feature? Edit > Convert Indents > To Tabs

Re: compiler

2012-11-05 Thread Bill Freeman
So the error printout doesn't give the line number of the offending return statement? On Mon, Nov 5, 2012 at 4:26 AM, Markus Christen wrote: > I have tryed your input, but i have always the same problem... i cant fix > it. it doesent work and i dont know why. (i have it in pycharm and there > are

Re: compiler

2012-11-05 Thread Markus Christen
I have tryed your input, but i have always the same problem... i cant fix it. it doesent work and i dont know why. (i have it in pycharm and there are only these 2 return problems marked.) Am Freitag, 2. November 2012 18:44:46 UTC+1 schrieb ke1g: > Surely the error message included a line num

Re: compiler

2012-11-02 Thread Bill Freeman
Surely the error message included a line number? Also, probably not related, but check that there is no whitespace after your line ending back-slashes. (Hint it is safer to put the opening triple quote before the backslash, and safer yet to put the triple quoted string in a pare of parentheses, t

compiler

2012-10-31 Thread Markus Christen
Good Morning I have downloaded files, that can helps by my mssql-odbc connection. This is my downloaded file: http://code.google.com/p/django-pyodbc/source/browse/trunk/sql_server/pyodbc/compiler.py?r=190 On lines 188 and 273, i become the message "'return' outside of function". It's not a spac

[ANN] Pyjamas 0.5 Web Widget Set and python-to-javascript Compiler released

2009-03-11 Thread lkcl
folks, hi, as a django user, i can't help but let people who use my favourite web server framework know of the pyjamas 0.5 release. in addition to the release notes (copy here) : http://groups.google.com/group/comp.lang.python/browse_thread/thread/f1c9e1d2fb251c4e# there is further information r

Re: Python have a JIT (Just-in-time) compiler?

2008-10-17 Thread bruno desthuilliers
On 17 oct, 00:57, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-10-16 at 12:02 -0700, bruno desthuilliers wrote: > > On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Python have a JIT (Just-in-time) compiler? > >

Re: Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 12:02 -0700, bruno desthuilliers wrote: > On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Python have a JIT (Just-in-time) compiler? > > There's psyco, but it only works on x86 and imposes some restrictions >

Re: Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread [EMAIL PROTECTED]
But because it does not track the python when it is installed natively, since this is a great benefit On 16 out, 17:02, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Python have a JIT (J

Re: Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread bruno desthuilliers
On 16 oct, 20:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Python have a JIT (Just-in-time) compiler? There's psyco, but it only works on x86 and imposes some restrictions in the way you code. --~--~-~--~~~---~--~~ You received

Python have a JIT (Just-in-time) compiler?

2008-10-16 Thread [EMAIL PROTECTED]
Python have a JIT (Just-in-time) compiler? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this g

Re: psycopg installation error: C compiler cannot create executables

2007-01-05 Thread Alasdair
Oh - one more thing: James Bennett posted over at TextDrive saying he'd installed psycopg via DarwinPorts, but I've been trying to do that over the last couple of days and it stalls while trying to fetch PostgreSQL 8.1.3 (which it wants as a precondition for installing py-psycopg). I don't know

Re: psycopg installation error: C compiler cannot create executables

2007-01-05 Thread Alasdair
If Joseph's suggestion doesn't work, you may want to look at your Xcode installation. I had the same output as you when trying to install psycopg until I updated my Xcode install (following advice on a forum thread in French which I've since lost). You'll have to create a developer account at the

Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Joseph Heck
ges checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. Any ideas? > --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Honza Král
.. gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. Any ideas? Maybe you look into `config.log' for more details? ;) you may be better of looking for this issue on google or psycopg website, bu

Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe
Sorry, ignore the "bold --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe
/Versions/2.4 checking definitions in Python library makefile... done checking location of python library... $(prefix)/lib/python2.4/site-packages checking location of python shared modules... $(exec_prefix)/lib/python2.4/site-packages checking for gcc... gcc checking for C compiler default output file name