3 ms·
I think the difference is that PyPy exists, so people who just want "a faster Python" tend to go there, whereas in ruby-land JRuby gets the people who just want
by lmm 12y ago
I think the difference is that PyPy exists, so people who just want "a faster Python" tend to go there, whereas in ruby-land JRuby gets the people who just want "a faster Ruby" as well as those who want Ruby on the JVM.
Honestly I wouldn't recommend trying to use Django on Jython (I'd be amazed if it all works), or really doing anything on either Jython or JRuby unless you're already familiar with all of the pieces. To understand and debug Jython properly you need a good understanding of both Python and Java. For a first JVM project, find something good and idiomatic in Java (I hear good things about Dropwizard) and use that.
- codelike 12y agoWhile I haven't used Django on Jython personally yet, there exists an official page in the docs about 'Running Django on Jython': https://docs.djangoproject.com/en/1.8/howto/jython/ https://docs.djangoproject.com/en/1.8/howto/jython/ So I'm guessing it should work fine and the comment above is probably too pessimistic about the situation.
- 616c 12y agoSeen it every time I look into Jython and stumble upon their docs. Still curious if anyone uses it.
- sfilipov 12y agoThe difference is that CPython and PyPy both have a GIL, while Jython doesn't.
- 616c 12y agoThis is why I am surprised it is to hear about Jython, even here, where the GIL is thrown as a topic routinely any article with serious use of Python comes up.
- dragonwriter 12y ago> I think the difference is that PyPy exists, so people who just want "a faster Python" tend to go there, whereas in ruby-land JRuby gets the people who just want "a faster Ruby" JRuby, IIRC, hasn't been particularly faster than MRI since MRI 1.9-ish, though it still has the advantage of no GVL for multithreaded apps.
- 616c 12y agoWell, yes. You look at my comments and see I am interested in a recent post bemoaning how to build the simplest REST services possible in Java. So I know the name of the game. I just want to see how this works if django-jython wokrs at all.