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 whats the whole fuzz about JIT and all that if you're happy with 
Django as is and how it works with Python..? :-o


On Sun, Jan 28, 2018 at 3:45 PM, Etienne Robillard > wrote:


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" mailto:tkad...@yandex.com>> 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.

For example many times problem with Django is poorly written ORM
code. By doing unnecessary database queries.

Also to back up your claims how you can be sure that using tool X
over normal Python is faster?

What if your tool actally is slower?

Also you have to note that Django is only one part of whole stack
of tools used to run Django web app.

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+unsubscr...@googlegroups.com
.
To post to this group, send email to
django-users@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

tkad...@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+unsubscr...@googlegroups.com
.
To post to this group, send email to
django-users@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

.


For more options, visit https://groups.google.com/d/optout
.


-- 
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+unsubscr...@googlegroups.com
.
To post to this group, send email to
django-users@googlegroups.com .
Visit this grou

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,

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.


For example many times problem with Django is poorly written ORM code. 
By doing unnecessary database queries.


Also to back up your claims how you can be sure that using tool X over 
normal Python is faster?


What if your tool actally is slower?

Also you have to note that Django is only one part of whole stack of 
tools used to run Django web app.


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+unsubscr...@googlegroups.com
.
To post to this group, send email to
django-users@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

tkad...@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+unsubscr...@googlegroups.com
.
To post to this group, send email to django-users@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

.


For more options, visit https://groups.google.com/d/optout
.


--
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+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@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.


--
Etienne Robillard
tkad...@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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

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.

For example many times problem with Django is poorly written ORM code. By
doing unnecessary database queries.

Also to back up your claims how you can be sure that using tool X over
normal Python is faster?

What if your tool actally is slower?

Also you have to note that Django is only one part of whole stack of tools
used to run Django web app.

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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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 Robillardtkadm30@yandex.comhttps://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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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

.

For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.


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 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+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@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
tkad...@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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.
For more options, visit https://groups.google.com/d/optout.


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

2018-01-28 Thread Etienne Robillard

Great! Thanks very much for this post, Yury.

I'll do just what you suggested. :)

Cheers,

Etienne


Le 2018-01-28 à 07:35, Yury V. Zaytsev a écrit :

On Sun, 28 Jan 2018, Etienne Robillard wrote:

Anyways, having that said, I can't even infer what your original 
line of thinking was to embed what into what to speed up what 
exactly...


I'm looking to use JIT as a replacement for Cython in a upcoming 
Django-hotsauce release. :)


If this is indeed your goal, then I do have some good news for you: 
you don't have to do anything at all other than scraping Cython in 
order to achieve it. Just run your code on PyPy instead of CPython and 
you will benefit directly from PyPy's tracing JIT.


To answer the question of why do you have to scrape Cython before it 
comes up: you *can* run Cython compiled modules on top of PyPy thanks 
to its Python C API emulation layer (CPyExt). However, this will be 
inefficient because (a) crossing PyPy / C boundary is slow, although 
not as slow as it used to be in the past and (b) PyPy's JIT can't see 
into machine code created from Cython-generated C/C++ source code. 
Therefore, to benefit most from PyPy you'd better feed it pure Python 
code.


Once you translate a Django app into C code (let's assume this is 
actually possible for the sake of the argument) and then compile it 
into machine code using clang there is nothing more left for a JIT 
to operate upon, because machine code is interpreted directly by the 
CPU.


I'm really sure its possible to generate a C or C++ file from 
human-generated Python code.


In that case, you have to educate yourself, and specifically try to 
understand how Cython really works. Hint: generating C/C++ file from 
Python code != translate Python code into C/C++ code that doesn't 
require CPython runtime.



So far, I want to use the LLVM backend (PyPy)


PyPy doesn't have anything to do with LLVM at this point. There have 
been multiple attempts in the past to use LLVM as backend for PyPy, 
but so far none of them have really been 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 cool because it can theoretically makes Django and Python web 
apps outperform C applications.


These statements are both correct, but see the beginning of this email.



--
Etienne Robillard
tkad...@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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/2066b470-6e19-64ac-b07e-40bc829c117d%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


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 
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.


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

2018-01-28 Thread Etienne Robillard



Le 2018-01-28 à 05:11, Yury V. Zaytsev a écrit :


I think that you might be confused about the fundamentals of the 
technologies involved here.




Yes, I admit, i'm really just starting to understand PyPy fundamentals 
and LLVM.


Once you translate a Django app into C code (let's assume this is 
actually possible for the sake of the argument) and then compile it 
into machine code using clang there is nothing more left for a JIT to 
operate upon, because machine code is interpreted directly by the CPU.




I'm really sure its possible to generate a C or C++ file from 
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 enables them to outperform machine code generated 
without knowing the data it processes, and, in any case, run a lot 
faster than the interpreted byte code.


I'm positive you can use PyPy in embedded C/C++ applications to enable 
trace compilation of Python objects.


A possible source of confusion is that people often speak of speeding 
things up with LLVM (or nowadays even GCC) JIT; in most cases this 
amounts to so called method level JITs where specific isolated 
functions are compiled on the fly into machine code by the 
corresponding JIT backend and then called from the bytecode 
interpreter instead of actually interpreting the original bytecode for 
the method.


JIT is cool because it can theoretically makes Django and Python web 
apps outperform C applications.


Anyways, having that said, I can't even infer what your original line 
of thinking was to embed what into what to speed up what exactly...


I'm looking to use JIT as a replacement for Cython in a upcoming 
Django-hotsauce release. :)


Cheers,

Etienne

--
Etienne Robillard
tkad...@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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/ae3dfc98-b45a-d81f-7428-25ba6c93ba3d%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


Re: Native JIT compiler for Django?

2018-01-28 Thread James Bennett
You have not really provided an argument, though.

Programmers generally do not just do a thing for the sake of doing the
thing, even if it's a "neat" thing. They do a thing because they have a
need for that thing. We turn to things that can speed up our programs once
we have determined 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 other than "I heard
about JIT and want to use it", then run Django on PyPy. If you want to have
web applications written in C, write your web applications in C.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAL13Cg8%3DO%2BVf36En8S0THV3Q4YL4aBLFMNAqMEmmy6owiiQSYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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]



https://gist.github.com/leegao/1073233


Le 2018-01-28 à 05:00, Jani Tiainen a écrit :


Hi,

So what is your motivation to even try to make Python(and thus Django 
to convert it to C code (or run it on top of something like LLVM)?


Is there some part which is too slow in your application? Are you even 
sure that doing things that Django does would even be faster when 
compiling it to something like C-code?


In my projects I have few really complex calculation systems and I 
have resolved them by writing the slow part in C(++) and using C-types 
to bind C code to my Python (Django) app.


If you're just seeking generic speedup, there exists PyPy project [1] 
which can run Django and relevant database backends at least 
successfully. PyPy is JIT for python, works quite well without any 
modifications to Python code.


PyPy can run Django library just fine, I have seen reports about 15 
times faster execution in most operations. Never used it myself though 
since I haven't really found out Python be too slow in my apps.


[1] http://pypy.org/

On Sun, Jan 28, 2018 at 10:53 AM, Etienne Robillard 
mailto:tkad...@yandex.com>> wrote:


Hi Jani,

I don't want to optimize my code manually except with
machine-compiled instructions.

Cheers,

Etienne


Le 2018-01-28 à 03:12, Jani Tiainen a écrit :

Hi

Why you even want to add such a complexity?

Have you measured what part in your apps are really slow?

Have you tried 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?

What do you think?

Etienne


Etienne Robillard
tkad...@yandex.com <mailto:tkad...@yandex.com>
https://www.isotopesoftware.ca/ <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+unsubscr...@googlegroups.com
<mailto:django-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at
https://groups.google.com/group/django-users
<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

<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
<https://groups.google.

Re: Native JIT compiler for Django?

2018-01-28 Thread Jani Tiainen
Hi,

So what is your motivation to even try to make Python(and thus Django to
convert it to C code (or run it on top of something like LLVM)?

Is there some part which is too slow in your application? Are you even sure
that doing things that Django does would even be faster when compiling it
to something like C-code?

In my projects I have few really complex calculation systems and I have
resolved them by writing the slow part in C(++) and using C-types to bind C
code to my Python (Django) app.

If you're just seeking generic speedup, there exists PyPy project [1] which
can run Django and relevant database backends at least successfully. PyPy
is JIT for python, works quite well without any modifications to Python
code.

PyPy can run Django library just fine, I have seen reports about 15 times
faster execution in most operations. Never used it myself though since I
haven't really found out Python be too slow in my apps.

[1] http://pypy.org/

On Sun, Jan 28, 2018 at 10:53 AM, Etienne Robillard 
wrote:

> Hi Jani,
>
> I don't want to optimize my code manually except with machine-compiled
> instructions.
>
> Cheers,
>
> Etienne
>
> Le 2018-01-28 à 03:12, Jani Tiainen a écrit :
>
> Hi
>
> Why you even want to add such a complexity?
>
> Have you measured what part in your apps are really slow?
>
> Have you tried to optimize your python code before trying such an extreme
> actions?
>
> 27.1.2018 9.04 ip. "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 Robillard
>> tkad...@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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@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/ms
>> gid/django-users/ec8bf736-c316-8e9a-01ec-16383c78e746%40yandex.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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%3DH9H8eWMmFEpOPNnN3JkJy1UWmcw6
> kACQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91ofbbm2uNyWmJ%3DH9H8eWMmFEpOPNnN3JkJy1UWmcw6kACQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Etienne Robillardtkadm30@yandex.comhttps://www.isotopesoftware.ca/
>
>


-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.


Re: Native JIT compiler for Django?

2018-01-28 Thread Etienne Robillard

Hi Jani,

I don't want to optimize my code manually except with machine-compiled 
instructions.


Cheers,

Etienne


Le 2018-01-28 à 03:12, Jani Tiainen a écrit :

Hi

Why you even want to add such a complexity?

Have you measured what part in your apps are really slow?

Have you tried 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?

What do you think?

Etienne


Etienne Robillard
tkad...@yandex.com <mailto:tkad...@yandex.com>
https://www.isotopesoftware.ca/ <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+unsubscr...@googlegroups.com
<mailto:django-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<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

<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
<https://groups.google.com/d/optout>.

--
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+unsubscr...@googlegroups.com 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto:django-users@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 
<https://groups.google.com/d/msgid/django-users/CAHn91ofbbm2uNyWmJ%3DH9H8eWMmFEpOPNnN3JkJy1UWmcw6kACQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Etienne Robillard
tkad...@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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/2a6f24f9-6d78-748c-6866-b48b0ce3ee03%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


Re: Native JIT compiler for Django?

2018-01-28 Thread Jani Tiainen
Hi

Why you even want to add such a complexity?

Have you measured what part in your apps are really slow?

Have you tried to optimize your python code before trying such an extreme
actions?

27.1.2018 9.04 ip. "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 Robillard
> tkad...@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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/ms
> gid/django-users/ec8bf736-c316-8e9a-01ec-16383c78e746%40yandex.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.


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 "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks Fabio, we'll check RapydScript and we might use it for Speedy Mail
Software as well! I will check with the other developers (which are on
the speedy-mail-software list). In the past I had Speedy Mail online from
2000 to 2005 and it was based on a Perl script (Perl was popular in 2000).
But since it didn't support Unicode/UTF-8 encoding and didn't have a spam
filter I decided to close it in 2005 (after Google introduced Gmail). But I
think today it's easier to create software than it was in 2005, and I hope
next year we can launch Speedy Mail again, based on the Speedy Mail
Software we are developing (which will be free software & open source). I'm
looking forward to launching Speedy Mail as an alternative to Gmail.


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Tue, Aug 11, 2015 at 10:08 PM, Fabio Zadrozny  wrote:

> Hi Uri,
>
> No, I'm not related to it. -- I'm the PyDev/Eclipse maintainer... that
> already takes a lot of my time ;)
>
> It's license is BSD (so, no need to pay). As it's just a way to convert
> from a Python-like syntax to JavaScript syntax you can even switch to plain
> JavaScript later on if you want -- in fact, when you debug the code you'll
> be debugging JavaScript and not Python (it's like CoffeScript but with a
> Python-like syntax).
>
> Cheers,
>
> Fabio
>
> On Tue, Aug 11, 2015 at 3:48 PM, Uri Even-Chen  wrote:
>
>> Thanks Fabio, it's very interesting. Are you related to Pyjeon Software?
>> Do we have to pay to use RapydScript? Is it ready for production?
>>
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> <http://www.facebook.com/urievenchen>
>> <http://plus.google.com/+urievenchen>
>> <http://www.linkedin.com/in/urievenchen>
>> <http://twitter.com/urievenchen>
>> > Speedypedia in Hebrew and English
>> <http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
>>
>> On Tue, Aug 11, 2015 at 8:54 PM, Fabio Zadrozny 
>> wrote:
>>
>>>
>>> On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen  wrote:
>>>
>>>> Thanks for the feedback. Actually I asked this question also in the
>>>> django-users mailing list and Russell Keith-Magee told me about
>>>> Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
>>>> 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
>>>> 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 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.
>>>>
>>>
>>>
>>> ​I think that you could try RapydScript: http://rapydscript.pyjeon.com/
>>>
>>> Cheers,
>>>
>>> Fabio
>>>
>>>
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsFRQ0vsFYMpkAN2VHxzKz5Rvm7CRAQiXjtCdpbtaymA5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks Fabio, it's very interesting. Are you related to Pyjeon Software? Do
we have to pay to use RapydScript? Is it ready for production?


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Tue, Aug 11, 2015 at 8:54 PM, Fabio Zadrozny  wrote:

>
> On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen  wrote:
>
>> Thanks for the feedback. Actually I asked this question also in the
>> django-users mailing list and Russell Keith-Magee told me about
>> Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
>> 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
>> 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 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.
>>
>
>
> ​I think that you could try RapydScript: http://rapydscript.pyjeon.com/
>
> Cheers,
>
> Fabio
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsFPEapmwTbCg2EH8W7KhK%2BBZyu_USHuWBJTSmgA00Renw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks for the feedback. Actually I asked this question also in the
django-users mailing list and Russell Keith-Magee told me about
Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
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
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 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*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
<http://www.facebook.com/urievenchen>  <http://plus.google.com/+urievenchen>
  <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> Speedypedia in Hebrew and English
<http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>

On Mon, Aug 10, 2015 at 7:40 PM, Ian Kelly  wrote:

> On Fri, Aug 7, 2015 at 5:00 AM, Uri Even-Chen  wrote:
> >
> > 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 use Django (in the client
> side) and JavaScript frameworks such as jQuery, jQuery UI and jQuery
> plugins together with pyjs?
>
> And if you check the commit history on GitHub, there are only two
> commits in the past year. The project was hijacked (i.e. forked plus
> "we're taking the domain name and the mailing list too") a few years
> ago (also in May 2012, I think not coincidentally), and that sadly
> seems to have slowly killed the development momentum on the project.
>
> I'm not really familiar with the space, but I tend to hear good things
> about Brython. PyPy.js and Skulpt are other alternatives. However, I
> think that all of these are implementations of Python in Javascript,
> not Python to Javascript compilers.
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEuk4Ow%3DDiU_WbSEHJEeBrkKDmhTK5AH8c0dckcBQdfiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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
scripts in JavaScript in Speedy Mail Software and other projects we will
have.

Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
  
    
> Speedypedia in Hebrew and English


On Sun, Aug 9, 2015 at 4:05 AM, Russell Keith-Magee  wrote:

> 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 the client side, otherwise I really think we will not be able to use
>> these projects in production.
>>
>> Hi Uri,
>
> It's possible - but it depends on the project and the tooling they
> provide. I know PyPy.js, for example, provides a JS/DOM bridge.
>
> However, as I said in my last email, at the moment, this isn't the easy
> path. Essentially, if you're asking the question "Is it possible", the
> answer for all practical purposes is effectively "no". Technically, it's
> possible, but you have to know what you're doing.
>
> Yours
> Russ Magee %-)
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsF-D5Kb5ge-%2BeJrTjCgTL9p11fH0sN4ZA8rnyU3Sr5niw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 the client side, otherwise I really think we will not be able to use
> these projects in production.
>
> Hi Uri,

It's possible - but it depends on the project and the tooling they provide.
I know PyPy.js, for example, provides a JS/DOM bridge.

However, as I said in my last email, at the moment, this isn't the easy
path. Essentially, if you're asking the question "Is it possible", the
answer for all practical purposes is effectively "no". Technically, it's
possible, but you have to know what you're doing.

Yours
Russ Magee %-)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq84-Yk3ckg4Rb0sWJwMkLEqw4EBY29YN4umvPK_F4gebipA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 versions 2.7 and 3.4 supported? And is it possible to 
use Django (in the client side) and JavaScript frameworks such as 
jQuery, jQuery UI and jQuery plugins together with pyjs?


Thanks,
Uri.



Hi,

I tried to test it recently, and found that some of the examples don't 
even work.  That's as far as I got, which is too bad, cause I really 
don't like Javascript.


Robert

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/55C50E3B.8010207%40verizon.net.
For more options, visit https://groups.google.com/d/optout.


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 use
these projects in production.

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
  
    
> Speedypedia in Hebrew and English


On Sat, Aug 8, 2015 at 4:18 AM, Russell Keith-Magee  wrote:

> 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* been
> kept up to date. There's also PyPy.js, which is the full PyPy interpreter
> running in browser - which means you get CPython like performance inside
> your browser.
>
> Are they ready for production? That's another story. At the moment, I
> wouldn't recommend it, especially if you're a beginner - but it's certainly
> possible. However, you'd need to have a pretty good reason. You're going to
> experience a lot of friction in the interface between the two languages, so
> there would need to be a good reason for taking on that overhead.
>
> Yours,
> Russ Magee %-)
>
> On Fri, Aug 7, 2015 at 7:00 PM, 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 versions 2.7 and 3.4 supported? And is it possible to use
>> Django (in the client side) and JavaScript frameworks such as jQuery,
>> jQuery UI and jQuery plugins together with pyjs?
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> 
>> 
>> 
>> 
>> > Speedypedia in Hebrew and English
>> 
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsEdn%3DUPBbH2GiZLGXQS4QCMzWh9LPczW0%3DZQrhRSdpd7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.


*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
  
    
> Speedypedia in Hebrew and English


On Sat, Aug 8, 2015 at 4:18 AM, Russell Keith-Magee  wrote:

> 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* been
> kept up to date. There's also PyPy.js, which is the full PyPy interpreter
> running in browser - which means you get CPython like performance inside
> your browser.
>
> Are they ready for production? That's another story. At the moment, I
> wouldn't recommend it, especially if you're a beginner - but it's certainly
> possible. However, you'd need to have a pretty good reason. You're going to
> experience a lot of friction in the interface between the two languages, so
> there would need to be a good reason for taking on that overhead.
>
> Yours,
> Russ Magee %-)
>
> On Fri, Aug 7, 2015 at 7:00 PM, 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 versions 2.7 and 3.4 supported? And is it possible to use
>> Django (in the client side) and JavaScript frameworks such as jQuery,
>> jQuery UI and jQuery plugins together with pyjs?
>>
>> Thanks,
>> Uri.
>>
>> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
>> Email: u...@speedy.net
>> Website: http://www.speedysoftware.com/uri/en/
>> 
>> 
>> 
>> 
>> > Speedypedia in Hebrew and English
>> 
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHnz1qest_mwkFq0u-U8Z9mC%3DONXpF6742c7bY%3DK_sx4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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* been
kept up to date. There's also PyPy.js, which is the full PyPy interpreter
running in browser - which means you get CPython like performance inside
your browser.

Are they ready for production? That's another story. At the moment, I
wouldn't recommend it, especially if you're a beginner - but it's certainly
possible. However, you'd need to have a pretty good reason. You're going to
experience a lot of friction in the interface between the two languages, so
there would need to be a good reason for taking on that overhead.

Yours,
Russ Magee %-)

On Fri, Aug 7, 2015 at 7:00 PM, 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 versions 2.7 and 3.4 supported? And is it possible to use
> Django (in the client side) and JavaScript frameworks such as jQuery,
> jQuery UI and jQuery plugins together with pyjs?
>
> Thanks,
> Uri.
>
> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> 
> 
>   
> > Speedypedia in Hebrew and English
> 
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq84-KiCdRYtaVY_%3DFuuCSpb77GuG4P3vsyMSb083c7YWrZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 use Django (in
the client side) and JavaScript frameworks such as jQuery, jQuery UI and
jQuery plugins together with pyjs?

Thanks,
Uri.

*Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
  
    
> Speedypedia in Hebrew and English


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMQ2MsHy4hwdxgZ8uXo36LtZrKZC_0GgjsGybcdbwpAP14AN5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Embedding a compiler to my web page

2015-03-07 Thread Russell Keith-Magee
If you're going to be compiling code, you almost certainly don't want to be
using subprocess for this. A view should be able to return in milliseconds.
Very few native code compilations are going to be complete in milliseconds.

What you should be doing is treating the compilation step as a compilation
task:

 1) User submits code for compilation. This creates a compilation task in
state "Pending"

 2) A second process, completely external to your web server sits waiting
for new "pending" tasks; when a new task arrives, it is taken off the
queue, and moved to a "compiling" state.

 3) The user has the ability to refresh the status of the tasks they have
submitted. This could be auto-refreshed, or left as something that the user
can hit reload to see the current state.

 4) When the compilation completes, the state moves to "Done", and the user
can see the result.

This external process is called a task queue; there are lots of ways of
managing this; two relatively easy options are RQ (a simple Redis-based
queue) and Celery (a more complete option; harder to get going, but more
reliable and configurable under heavy load).

Also - as a security warning - if you're going to be exposing the ability
to compile code on the internet, be prepared to be exploited. Compilers can
do lots of things, and you're going to be giving  permission to compile
arbitrary code to anyone who can submit a compilation task. You will need
to 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.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 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-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/2a2fae63-cb65-41e1-af5c-d67d30c21eb8%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/2a2fae63-cb65-41e1-af5c-d67d30c21eb8%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAG%2B5VyM2yKJDZXLnndEHn%3DoVn1siTeVOeh5YsNuh5hwan2VFLw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAG%2B5VyM2yKJDZXLnndEHn%3DoVn1siTeVOeh5YsNuh5hwan2VFLw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq84-h-6L1hO%3Dq-tt237Tnq87Xq4d2Kzcms3%2B--2RYkjCCMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2a2fae63-cb65-41e1-af5c-d67d30c21eb8%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2a2fae63-cb65-41e1-af5c-d67d30c21eb8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyM2yKJDZXLnndEHn%3DoVn1siTeVOeh5YsNuh5hwan2VFLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2a2fae63-cb65-41e1-af5c-d67d30c21eb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: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 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 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, the opening one where you have the backslash.)
>>
>> On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen 
>> wrote:
>>
>>> 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 space/tab fail, i have checked this.
>>> How can i fix this?
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/**uvBBHw13tokJ
>>> .
>>> To post to this group, send email to django...@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users...@**
>>> googlegroups.com.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/DMb-vkIM5xsJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>  --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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 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, the opening one
> where you have the backslash.)
>
> On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen
> > wrote:
>
> 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 space/tab fail, i have checked this.
> How can i fix this?
> -- 
> You received this message because you are subscribed to the
> Google Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/uvBBHw13tokJ
> .
> To post to this group, send email to
> django...@googlegroups.com .
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en
> .
>
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/DMb-vkIM5xsJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 (or To Spaces).

_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 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 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, the opening one
> where you have the backslash.)
>
> On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen
> > wrote:
>
> 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 space/tab fail, i have checked this.
> How can i fix this?
> -- 
> You received this message because you are subscribed to the
> Google Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/uvBBHw13tokJ
> .
> To post to this group, send email to
> django...@googlegroups.com .
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en
> .
>
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/DMb-vkIM5xsJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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 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, the opening one where you have the backslash.)
>>
>> On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen 
>> wrote:
>>
>>> 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 space/tab fail, i have checked this.
>>> How can i fix this?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/**uvBBHw13tokJ
>>> .
>>> To post to this group, send email to django...@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users...@**
>>> googlegroups.com.
>>>
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/DMb-vkIM5xsJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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, the opening one where you have the backslash.)
>
> On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen 
> 
> > wrote:
>
>> 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 space/tab fail, i have checked this.
>> How can i fix this?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/uvBBHw13tokJ.
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DMb-vkIM5xsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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, the opening one where you have the backslash.)

On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen  wrote:

> 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 space/tab fail, i have checked this.
> How can i fix this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/uvBBHw13tokJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 space/tab fail, i have checked this.
How can i fix this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/uvBBHw13tokJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



[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 relevant to django users, which is that
support for Django Forms is being worked on, and integrated as a
JSONRPC service class.

links to resources at: http://pyjs.org

l.

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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?
>
> > There's psyco, but it only works on x86 and imposes some restrictions
> > in the way you code.
>
> There's also the problem that "Python" isn't well-defined in this
> question. Jython does, for example, in the sense that it's compiled to
> JVM bytecode which is then compiled just in time. PyPy and IronPython
> have similar behaviours that are specific to their implementation.

Indeed. I (perhaps wrongly) assumed that the OP was talking about
CPython.


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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
> in the way you code.

There's also the problem that "Python" isn't well-defined in this
question. Jython does, for example, in the sense that it's compiled to
JVM bytecode which is then compiled just in time. PyPy and IronPython
have similar behaviours that are specific to their implementation.

Regards,
Malcolm



--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 (Just-in-time) compiler?
>
> There's psyco, but it only works on x86 and imposes some restrictions
> in the way you code.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 if this helps - there might be a way grab it without
DarwinPorts trying to install PostgreSQL but I don't know of a way.
Please excuse my ignorance in these matters...

- Alasdair


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 Apple webpage
(http://developer.apple.com/tools/) if you haven't already done so, but
that's a snap. Seems some earlier versions of Xcode have a problem with
specifying multiple chip architectures for gcc. I'm not sure if this is
your problem - looking at your config.log might help (you might see
something specifying both powerpc and i386 arch right before the fail).


Also, if you get past this, let us know how things go, as I'm still
trying to configure psycopg. I no longer get PostgreSQL header
problems, but I'm getting a "can't build without PostgreSQL libraries"
problem. The configure exits after looking for PQconnectStart:

checking for mxDateTime.h... yes
checking for main in -lcrypt... no
checking for main in -lcrypto... yes
checking for PQconnectStart in -lpq... no
configure: error: can't build without PostgreSQL libraries

after I configure using:
./configure --with-postgres-libraries=/usr/local/pgsql/lib
--with-postgres-includes=/usr/local/pgsql/include
--with-mxdatetime-includes=[path/to]/mx/DateTime/mxDateTime

I don't know if I should try messing around with libpq, or if I need to
recompile both PostgreSQL and psycopg without SSL support, or something
like that.

I hope everything works out - keep us posted.

- Alasdair


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Joseph Heck

Your path probably doesn't include pg_config on it. Step 4 in the Postgres
instructions has you adding /opt/pgsql/bin to your path - I don't have a Mac
with me to check, but is pg_config in there? If not, add on to your PATH
environment variable for where-ever its located and it should build from
there.

-joe


On 1/3/07, Abe <[EMAIL PROTECTED]> wrote:



Hey all. Im trying to get django up and running on my Mac (powerbook,
powerpc chip, 10.4 OSX).

I got postgresql v 8.2.0 up and going, along with Python 2.4.

I go to install psycopg to get the two communicating with one another,
and, following the directions on the SetupOnTiger
(http://code.djangoproject.com/wiki/SetupOnTiger) part of the Django
page, got to configuring psycopg.

When I typed

./configure --with-postgres-libraries=$(pg_config --libdir)
--with-postgres-includes=$(pg_config --includedir)

it gave me:

bold
-bash: pg_config: command not found
-bash: pg_config: command not found
checking for python...
/Library/Frameworks/Python.framework/Versions/Current/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/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... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Any ideas?


>



--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Honza Král

On 1/3/07, Abe <[EMAIL PROTECTED]> wrote:


Hey all. Im trying to get django up and running on my Mac (powerbook,
powerpc chip, 10.4 OSX).

I got postgresql v 8.2.0 up and going, along with Python 2.4.

I go to install psycopg to get the two communicating with one another,
and, following the directions on the SetupOnTiger
(http://code.djangoproject.com/wiki/SetupOnTiger) part of the Django
page, got to configuring psycopg.

When I typed

./configure --with-postgres-libraries=$(pg_config --libdir)
--with-postgres-includes=$(pg_config --includedir)

it gave me:

bold
-bash: pg_config: command not found
-bash: pg_config: command not found
checking for python...
/Library/Frameworks/Python.framework/Versions/Current/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/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... 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, but my guess would be you have an incorrectly setup system...




>




--
Honza Kr l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe


Hey all. Im trying to get django up and running on my Mac (powerbook,
powerpc chip, 10.4 OSX).

I got postgresql v 8.2.0 up and going, along with Python 2.4.

I go to install psycopg to get the two communicating with one another,
and, following the directions on the SetupOnTiger
(http://code.djangoproject.com/wiki/SetupOnTiger) part of the Django
page, got to configuring psycopg.

When I typed

./configure --with-postgres-libraries=$(pg_config --libdir)
--with-postgres-includes=$(pg_config --includedir)

it gave me:

bold
-bash: pg_config: command not found
-bash: pg_config: command not found
checking for python...
/Library/Frameworks/Python.framework/Versions/Current/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/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... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Any ideas?


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---