Worcester Polytechnic Institute (WPI)

http://web.cs.wpi.edu/images/cs_banner.gif

COLLOQUIUM


Speeding Up the Web: Just-in-Time Type Specialization for Dynamic Languages


Talk Slides (pdf)

 

 

David Anderson

Mozilla Corporation

 

Friday, November 20th, 2009

11:00 AM – 12:00 PM

Fuller Labs  320

 

 

 

Abstract:

 

Dynamically typed languages are increasingly popular on the web, from client-side JavaScript to server-side languages such as Python, PHP, and Ruby. Unlike statically typed systems, these languages are very difficult to optimize. Compiled code must be generic enough to cope with run-time type changes in data flow. Static analysis can be extremely expensive only to yield conservative guesses.

 

This talk will describe Trace Compilation, a new method of quickly extracting static types from dynamic code, based on observing program behavior. This technique allows a Just-In-Time compiler to generate optimal machine code, akin to Java or C, for performance-critical paths in dynamic languages. Trace Compilation has been employed in the JavaScript implementation for the Firefox web browser.

 

_______

 

David Anderson is a WPI graduate interested in the design and implementation of programming languages.

He works on the JavaScript engine at the Mozilla Corporation.

 

 

Host: Micha Hofri

 

Refreshments will be served