Compiling and Optimizing Scripting Languages

Channel:Google TechTalks · Length:1:01:37 · Published:2009-03-28 · Views:20874

Watch on YouTube

Summary

Paul Biggar's Google Tech Talk on compiling and optimizing scripting languages, drawn from his work on the phc ahead-of-time PHP compiler. He covers runtime typing, aliasing and code generation challenges, and argues AOT can compete with JIT.

Why HN recommends it

Cited in PHP compiler and language-implementation discussions as an honest account of the real difficulties of compiling dynamic languages.

Some great examples of disappointments and challenges! — HN, 2016

Python, Ruby & scripting languages · Compilers, interpreters & program analysis

Subtitles (excerpt)

he's the maintainer of the PHP compiler and he's here to talk to us about compiling and optimizing scripting languages hi folks thanks very much for coming along and thanks uh thanks Ian for arranging all this so uh the the things I'm going to talk about today uh I'm going to talk about compiling and optimizing SE uh scripting languages separately um so I'm first going to talk a little bit about compiling then a little bit about optimizing and uh and and all the work that I'm going to talk about is uh uh is done as part of my PhD uh under the supervision of uh of Dr David Greg uh at Jin College Dublin so to to give you a quick motivation and and I imagine that you guys will know this a lot better than I do um that a user needs to get their web page uh in in in a pretty short amount of time there there has to be a lot done in in between so you need to have some kind of database access uh you need to execute your your scripting language and there's also Network latency and and browser rendering and that sort of thing and so you you can't do all that very much uh in your in your web application and the idea of of our compiler is to increase what you can do maybe you can do twice as much maybe you can do 10 times as much depending on how fast we can get it

On Hacker News

There's actually a not-too-terrible talk going over some of the challenges of compiling PHP, and how initial promising gains turn out to be very difficult (as OP said) to maintain as you try to encompass the full language. Some great examples of disappointments and challenges! [VIDEO] — sgrove, 2016-12
[LINK] - "Design and implementation of an ahead-of-time compiler for PHP" is the PhD thesis in question. A google tech talk related to this work is on youtube [VIDEO] You can find multiple other papers on google scholar where Paul was an author all related to programming languages, compilers etc. — ook, 2020-11
I meant mine obviously ;) For the curious, here's the talk (1 hour) about ahead of time compilation of PHP: [VIDEO] — agumonkey, 2012-09
I think its importend to ask everything in these threads. I often find intressting questions answer in these threads (on reddit too). For JIT fans I recomend online-stalking of Mike Pall, here on Hacker News and on reddit. Well I think if you have a task like that a team should look into what other people where doing. Self, LuaJit, parrot, some smalltalk systems, strongtalk where all allready don… — nickik, 2011-12

Related videos