Jython Progress by zug10789

VIEWS: 17 PAGES: 23

									Jython Progress
    Frank Wierzbicki
               Status

• Jython 2.5 beta is out, GA soon, RC sooner
• Unit tests: 6000+ tests passing, most come
  directly from CPython 2.5 Lib
• Active group of 8 committers
            Jython 2.5
• Focused on compatibility with CPython
• Did not worry much about performance
• Brand new parser in ANTLR
• Ex: Our AST, binary ops, I/O, -m, unicode
• JNA to reach into current os
• PyFile is based on Java’s nio lib
            Jython 2.5

• Java annotation based new-style classes
• Compiler based on ASM project
• So much more
 Jython Lang from 2.3,
        2.4, 2.5
• conditional expressions
• with statement
• unified try/except/finally
• decorators
• much improved unicode support
• Generally better CPython compatibility
    New in Jython Lib
• _ast, ast (from 2.6)
• asyncore, select
• decimal
• platform
• subprocess
• tarfile, unicodedata
        help() system

• pydoc.py
• doctest
• interactive help
• not there but coming: Javadoc help()
• not there but coming: ipython
               Modjy
• Modjy implements WSGI for Jython
• Acts as a bridge to Java Servlets
• integrated into Jython’s core
• Helps us get Django and Pylons working
• Will help get other web frameworks going,
  like TurboGears
           Why Jython?

• Massive amounts of Java code out there
• Some really useful Java libs
• Great JVM ecosystem
• But we’d all rather be writing Python code,
  right?
       Working Apps
• Django w/Postgesql
• Pylons
• setuptools, ez_install
• virtualenv
• pip?
• many more pure python apps
  Apps: Getting There
• Django w/MySQL, Oracle, SQL Server,
  sqlite3,
• Twisted
• ipython
• SQLAlcemy
• TurboGears2
     Corporate Apps

• Admin - WebSphere, Weblogic, N1,VMware
• Testing tools like PushToTest, Grinder
• Large and small companies
        Collaboration
• Major apps
• Implementations - CPython, PyPy
• Other Java dynamic languages - JRuby
• Tooling support
• Java Virtual Machine development
• Academic research - gradual typing
         Java Platform
• Now takes advantage of Java 5 libraries
• Java 5 concurrency libs: our “No GIL”
  works better
• Compile to Java Bytecode
• Use a choice of Java garbage collectors
• Use Java native threads
       Java Integration

• Jython integrates well with Java
• Java classes and interfaces can be
  subclassed from Jython
• These subclasses are now “new style”
  classes.
           Jython 2.6

• Performance
• Java Integration
• Still better compliance with CPython
• Should show up quicker than 2.2>>2.5
• Much quicker than 2.1>>2.2
          Jython 3000
• We already have a Jython 3 branch
• It has a nearly complete parser
• Not much else yet
• Can’t wait to delete old style classes and
  fake str suppot :)
• So far we think Jython 3.x is much more
  important than Jython 2.7
 What does Sun have
    me doing?
• About 80% “Make Jython great”
• 20% Help other parts of Sun use and
  support Jython
• Netbeans Python support
• http://www.netbeans.org/features/python/
• GlassFish Grizzly support for Django using
  WSGI
     Da Vinci Machine
• JVM gets friendlier to dynamic languages
• On the project plan for JDK 7 -- some of it
  has already there in a hidden state for JDK6
• Method Handles, Invokedynamic, etc
• Hotspot is one of the world’s best tuned
  VMs - about to be tuned better for us!
   Jython Book due in
    2009 from Apress
• Josh Juneau
• Jim Baker
• Leo Soto
• Victor NG
• Frank Wierzbicki
              Demos


• Field (with Processing)
• http://openendedgroup.com/field/wiki/
  StartingPlaceForPythonProgrammers
  Where to Find Out
       More
• http://www.jython.org
• http://wiki.python.org/jython
• http://fwierzbicki.blogspot.com
• Twitter: fwierzbicki
• http://www.netbeans.org/features/python/
• https://glassfish.dev.java.net/

								
To top