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

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites & 1 Group

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

    1. Django on Jython
      • Leo Soto
      • Not exactly “ Summer of Code” but...
      • ...worked incredibly well!
      • And that's why I'm here :)
    2. Why Django on Jython ?
      • Integration
      • Deployment
      • Performance
    3. Jython
    4. Jython
      • Implementation of Python
      • Compiles to Java bytecode
        • No foo.pyc
        • It's foo$py.class
    5. Jython
      • Makes Java look like Python
      • And Python like Java to Java programs
      • No GIL, no ref counting
    6. >>> from __future__ import GIL Traceback (most recent call last): ... SyntaxError: Never going to happen! (<stdin>, line 1)
    7. 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
    8. Java - What We Like
      • Great systems programming language
      • Well-defined memory, concurrency model
      • Standard libraries - concurrent collections
    9. Java Ecosystem
      • Excel, thru Apache POI support of OLE
      • Full text search with Lucene
      • Scalability with Hadoop, Hbase
      • Scala, JRuby, Rhino...
    10. Biggest Benefit
      • Just use what is good out there in the Java ecosystem
    11. Now...
    12. Why in the name of...
      • J2EE was a big, horrible mistake
      • But lessons have been learned
        • And it’s possible to use that infrastructure
    13. “We write Java so you don’t have to.”
    14. Combination
      • In Python code:
        • Django app framework
          • Models, templates, forms
        • Business logic - as complex as necessary
      • In Java code (optional)
        • Performant infrastructure
    15. Deployment Options
      • Java App Servers!
    16. modjy
      • Servlets <=> WSGI
    17. WAR!
      • Web ARchive format
        • Standard deployment of Java webapps
        • Just a zip file with a standard directory layout
    18. A Django WAR:
      • jython manage.py war --include-java-libs=XXX.jar
    19. 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)
    20. What’s missing
      • PIL! so no Photolog
      • Oracle, MySQL, SQLServer backends
        • But that’s easy
        • zxJDBC: JDBC <=> DB-API
    21. Django Backend Dev
      • Features
      • Operations
      • Client
      • Creation and Introspection
      • Validation
      • Wrapper
    22.  
    23. Demo
    24. Thanks!

    + leo.sotoleo.soto, 2 years ago

    custom

    911 views, 2 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 911
      • 886 on SlideShare
      • 25 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 10
    Most viewed embeds
    • 25 views on http://charlas.continuum.cl

    more

    All embeds
    • 25 views on http://charlas.continuum.cl

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags

    Groups / Events