u/gallaisin r/ocaml • Recommends
CUFP 2013: Julien Verlaguet, Facebook: Analyzing PHP statically
161 subscribers • 3 videos on Hallway
- Recommended by 4 people: 3 on Hacker News and 1 in engineering communities.
- Presented by Julien Verlaguet, software engineer at Facebook
- Linked in the descriptionSlides on cufp.org
Advanced. Deep dive for people who know the field.
5.2K views13 years ago4 recommendations
Programming languagesSystems programmingPHPCompilers and interpretersOCaml and F#
Julien Verlaguet explains how Facebook used OCaml to build static analysis and type inference tools for their massive PHP codebase.
Facebook has a very large PHP code base. At this scale, a dynamic language leads to a challenging situation in terms of tooling. The lack of static knowledge can make simple tasks very time consuming. Something as simple as renaming a method can cause unexpected problems because not all the code paths were captured through testing. In the past few years, Facebook spent time working on pragmatic approaches to improve the tooling around PHP. More recently, we started applying static-analysis and type-inference techniques to PHP. In this talk I will present how we applied these techniques to PHP and how we scaled them for Facebook. Since most of the tools were written in OCaml, they constitute a good example of an industrial scale application using a functional programming language. Julien is a member of the HipHop team. HipHop is a JIT compiler for PHP used at Facebook. Most of my work is focused on static analysis (front-ent work). Slides are here: cufp.org/2013/slides/verlaguet.pdfWhy it's here
4 people recommend thisWhat people say. Recommended as a great real-world case study of using OCaml and functional programming to build static analysis tools at scale.
avsmon Hacker News • Recommends
On “Real World OCaml”
Xdeson Hacker News • Recommends
On “List of possible changes, updates, additions for PHP 6”
amirmcon Hacker News • Recommends
On “What it's like to use Haskell”
itafromaon Hacker News • Mentions
On “Taking PHP Seriously”
avsmon Hacker News • Mentions
On “Why OCaml, Why Now?”