Category: jython
Categories
- all (63)
- advocacy (6)
- agile (4)
- animation (2)
- best-practices (12)
- business (4)
- case study (9)
- cloud computing (3)
- command line tools (3)
- concurrency (7)
- core (4)
- coroutines (4)
- databases (3)
- distributed (5)
- django (4)
- documentation (2)
- dotnet (3)
- education (4)
- eggs (2)
- embedding (2)
- engineering (3)
- extensions (3)
- finance (3)
- games (3)
- gui (2)
- implementations (4)
- ironpython (4)
- jython (3)
- library (4)
- multimedia (2)
- network (3)
- object orientation (2)
- parsing (2)
- performance (6)
- project (4)
- py3k (2)
- python newbie (2)
- science (3)
- shell (2)
- software (2)
- spreadsheets (2)
- system administration (2)
- technique (13)
- testing (7)
- turbogears (2)
- tutorial (8)
- twisted (3)
- user interfaces (2)
- web (14)
- web framework (5)
- web services (4)
- wsgi (2)
- zope (2)
51. Jython on the Joint Strike Fighter
Mr. George F Rice (Lockheed Martin) bio30min Beginner
case study, jython
In 2004, Lockheed Martin selected Jython as the embedded scripting language for Java-based tools supporting the F-35 Lightning II (formerly the Joint Strike Fighter) program. Jython’s first use, to augment the primary client for a multi-national database application with over 1400 users, deployed successfully in mid-2005. Its second use, to automate data changes in a small but “click-heavy” data manipulation utility, deployed in late 2007. This paper examines the benefits and challenges of incorporating Jython into both enterprise and personal utility class applications, and examines lessons learned in supporting embedded Python scripting for end-users.
70. Database development with Jython, SQLAlchemy, and Hibernate
Mr. Frank J Wierzbicki bio30min Intermediate
jython
Jython is an implementation of the language Python written in Java to run on the JVM. Jython was designed to integrate seamlessly with existing Java code and as such can be used to bring dynamic language features to existing Java code bases without requiring extensive rewriting to realize the benefits of using Python. Jython has a very mature codebase, its first release occurring over ten years ago. The latest stable version of Jython (2.2) was released in August and the next version of Jython (version 2.5) is progressing well. The purpose of this talk is to demonstrate current and upcoming features of Jython language that can be used to accelerate day to day development.
Reading and manipulating data from relational databases is the bread and butter of many professional developers. Relational databases provide excellent examples with which to demonstrate the utililty of Jython. This talk will illustrate many of the powerful features of Jython by detailing several strategies for database access.
This presentation is targeted at Python developers who want to learn more about Jython and about using Jython to manipulate relational databases. Some experience with relational databases is assumed. Familiarity with SQLAlchemy or other ORM framework is helpful.
Throughout this talk, I will demonstrate code using Jython's interative console. I will also demonstrate how to access the built-in implementation of db-api which is built on JDBC (Java's low level db api).
SQLAlchemy is a popular Python ORM framework which allows access to the database to occur through objects and object relationships without necessarily resorting to detailed work in SQL. SQLAlchemy's use of the Data Mapper pattern to create a mapping between relational data and objects will be explained. Techniques for the use of SQLAlchemy through Jython will be demonstrated.
Hibernate is a popular Jave framework which is analogous to SQLAlchemy. Hibernate also uses a Data Mapper strategy to create its mapping between relational data and objects. I will compare and contrast Hibernate's approach with that of SQLAlchemy with plenty of example code.
I will also demo some new language features of Jython. In particular I will cover the relationship between Java Annotations and Python decorators in Jython. Annotations in Java look like this:
//Java Annotation
@MyDecorator(param1 = 1, param2 = "hello")
public static void hello() { ... }
And python decorators look like this:
#Python decorator
@my_decorator(param1=1, param2="hello")
def hello():
...
When Jython is compiled to a .class file the decorator is exposed as a Java annotation, also Jython can see Java annotations mapped as decorators. At the time of this writing the details of this process are still being worked out, but will be ready to demo at the time of this talk.
Reading and manipulating data from relational databases is the bread and butter of many professional developers. Relational databases provide excellent examples with which to demonstrate the utililty of Jython. This talk will illustrate many of the powerful features of Jython by detailing several strategies for database access.
This presentation is targeted at Python developers who want to learn more about Jython and about using Jython to manipulate relational databases. Some experience with relational databases is assumed. Familiarity with SQLAlchemy or other ORM framework is helpful.
Throughout this talk, I will demonstrate code using Jython's interative console. I will also demonstrate how to access the built-in implementation of db-api which is built on JDBC (Java's low level db api).
SQLAlchemy is a popular Python ORM framework which allows access to the database to occur through objects and object relationships without necessarily resorting to detailed work in SQL. SQLAlchemy's use of the Data Mapper pattern to create a mapping between relational data and objects will be explained. Techniques for the use of SQLAlchemy through Jython will be demonstrated.
Hibernate is a popular Jave framework which is analogous to SQLAlchemy. Hibernate also uses a Data Mapper strategy to create its mapping between relational data and objects. I will compare and contrast Hibernate's approach with that of SQLAlchemy with plenty of example code.
I will also demo some new language features of Jython. In particular I will cover the relationship between Java Annotations and Python decorators in Jython. Annotations in Java look like this:
//Java Annotation
@MyDecorator(param1 = 1, param2 = "hello")
public static void hello() { ... }
And python decorators look like this:
#Python decorator
@my_decorator(param1=1, param2="hello")
def hello():
...
When Jython is compiled to a .class file the decorator is exposed as a Java annotation, also Jython can see Java annotations mapped as decorators. At the time of this writing the details of this process are still being worked out, but will be ready to demo at the time of this talk.
128. A New Compiler for Jython
Jim Baker; Mr. Tobias Ivarsson bio30min Advanced
ast, concurrency, coroutines, jython, performance
As part of the Google Summer of Code, we created a prototype of a fully-functional Jython 2.5 compiler. We will discuss this and our subsequent work to turn this into a production-ready compiler.
.