• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Django On Jython (for Portland and Boulder Python user groups presentations)
 

Django On Jython (for Portland and Boulder Python user groups presentations)

on

  • 3,310 views

 

Statistics

Views

Total Views
3,310
Views on SlideShare
3,272
Embed Views
38

Actions

Likes
1
Downloads
31
Comments
0

3 Embeds 38

http://charlas.continuum.cl 25
http://www.slideshare.net 9
http://www.linkedin.com 4

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Django On Jython (for Portland and Boulder Python user groups presentations) Django On Jython (for Portland and Boulder Python user groups presentations) Presentation Transcript

    • Django on Jython
      • Leo Soto
      • Not exactly “ Summer of Code” but...
      • ...worked incredibly well!
      • And that's why I'm here :)
    • Why Django on Jython ?
      • Integration
      • Deployment
      • Performance
    • Jython
    • Jython
      • Implementation of Python
      • Compiles to Java bytecode
        • No foo.pyc
        • It's foo$py.class
    • Jython
      • Makes Java look like Python
      • And Python like Java to Java programs
      • No GIL, no ref counting
    • >>> from __future__ import GIL Traceback (most recent call last): ... SyntaxError: Never going to happen! (<stdin>, line 1)
    • State of Jython 2.5
      • 99.4% of ~5700 test cases passing
      • ~20% faster on PyStone [FWIW]
      • 2.5 alpha 2 last weekend for DjangoCon
      • September/October beta
      • December/January final
    • Java - What We Like
      • Great systems programming language
      • Well-defined memory, concurrency model
      • Standard libraries - concurrent collections
    • Java Ecosystem
      • Excel, thru Apache POI support of OLE
      • Full text search with Lucene
      • Scalability with Hadoop, Hbase
      • Scala, JRuby, Rhino...
    • Biggest Benefit
      • Just use what is good out there in the Java ecosystem
    • Now...
    • Why in the name of...
      • J2EE was a big, horrible mistake
      • But lessons have been learned
        • And it’s possible to use that infrastructure
    • “We write Java so you don’t have to.”
    • Combination
      • In Python code:
        • Django app framework
          • Models, templates, forms
        • Business logic - as complex as necessary
      • In Java code (optional)
        • Performant infrastructure
    • Deployment Options
      • Java App Servers!
    • modjy
      • Servlets <=> WSGI
    • WAR!
      • Web ARchive format
        • Standard deployment of Java webapps
        • Just a zip file with a standard directory layout
    • A Django WAR:
      • jython manage.py war --include-java-libs=XXX.jar
    • WAR format for DoJ
      • |-- WEB-INF
      • | |-- lib ← JDBC driver
      • | `-- lib-python
      • | |-- Lib ← Python Std. library
      • | |-- django
      • | |-- doj
      • | |-- modjy-django
      • | `-- mysite ← Your code!
      • `-- media ← (and media files)
    • What’s missing
      • PIL! so no Photolog
      • Oracle, MySQL, SQLServer backends
        • But that’s easy
        • zxJDBC: JDBC <=> DB-API
    • Django Backend Dev
      • Features
      • Operations
      • Client
      • Creation and Introspection
      • Validation
      • Wrapper
    •  
    • Demo
    • Thanks!