CUFP 2013: Julien Verlaguet, Facebook: Analyzing PHP statically
Channel:CUFP 2013 · Length:25:36 · Published:2013-10-20 · Views:5286
Summary
Julien Verlaguet of Facebook describes applying static analysis and type inference to a very large PHP codebase, using OCaml. The work led to the Hack language.
Why HN recommends it
Pointed to as the origin story of Hack and a real-world example of OCaml in production.
Another cool one from CUFP this year is how Facebook is using OCaml to add incremental type inference to their vast PHP code base. — HN, 2013
Functional programming · Python, Ruby & scripting languages · Compilers, interpreters & program analysis
Subtitles (excerpt)
Julian veret so ver for those who can pronounce it uh and I work in the hip-hop team at Facebook and I'm going to talk about an interesting project that have we've been developing in uh oaml so first um couple of words about Hip-Hop Hip-Hop is the team that um uh tries to make PHP faster basically it's the compiler team I can imagine that there are a bunch of um PHP fans in this room maybe not but uh I'll try to make the best of it so first uh a couple of words about PHP and what it's good at and yes it good it's good at certain things so this is the list of things that uh you would hear about um if you had a conversation with somebody who works at a startup or somebody who does PHP in their spare time this is the list of things that they're going to mention they're going to say well it's everywhere if you have aache you have PHP they're going to talk about the libraries and they're going to say it's easy to learn etc etc so except for the scale part uh Facebook doesn't really care about any of that if you look at all these points uh Point by Point well the fact that it's easy to install we have enough people who can deal with that the fact that there are a lot of libraries we have enough resources
On Hacker News
It's good to hear stories about how FP is being used in industry and I'd like to read more. For those who have an interest in this, I recommend the Commercial Users of Functional Programming workshop ( [LINK] ). It's where I first heard about Facebook's use of OCaml to create Hack ( [VIDEO] ) — amirmc, 2014-03
Check out Hack for HHVM[0][1][2]. It's a lot saner than PHP, but it's not documented or well known outside Facebook. [0]: Strangle Loop 2013: Keith Adams, Facebook: Taking PHP Seriously [LINK] [1]: CUFP 2013: Julien Verlaguet, Facebook: Analyzing PHP statically [VIDEO] [2]: HHVM and Hack – Can We Expect Them to Replace PHP? [LINK] — Xdes, 2014-02
Another cool one from CUFP this year is how Facebook is using OCaml to add incremental type inference to their vast PHP code base. There's (slightly hard to see video) here, but I'm sure Facebook will publicize it more widely when they're ready. [VIDEO] — avsm, 2013-11
> Last time I checked, the ability to write Javascript using both languages was of experimental and/or novelty use only (hence the "cupholders"). Facebook uses an OCaml js_of_ocaml-based frontend for a large chunk of their production code editing. Not a great video, but here's the CUFP 2013 talk on the topic: [VIDEO] — avsm, 2014-03
I tried looking for something by way of an official announcement or release (preview or otherwise), but as Keith Adams joked, it's impossible it Google it, and the [LINK] URL he referenced is not correct. Someone in the Q&A pointed that out, so he mentioned that there'd be a post about it on the HHVM blog, but there doesn't seem to be anything about it in the last few months (this talk took place… — itafroma, 2014-01
Related videos
- RSA ANIMATE: The Secret Powers of Time · Royal Society of Arts · 10:09
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- The spelled-out intro to neural networks and backpropagation: building micrograd · Andrej Karpathy · 2:25:52
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- How To Design A Good API and Why it Matters · Google TechTalks · 1:00:19
- The Problem with Time & Timezones - Computerphile · Computerphile · 10:12
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09