Climbing the Abstract Syntax Tree

James Titcumb (15.Feb.2018 at 11:30, 1 hr )
Talk at PHP UK Conference 2018 (English - US)

Rating: 5 of 5

The new Abstract Syntax Tree (AST) in PHP 7 means the way our PHP code is being executed has changed. Understanding this new fundamental compilation step is key to understanding how our code is being run. To demonstrate, James will show how a basic compiler works and how introducing an AST simplifies this process. We’ll look into how these magical time-warp techniques* can also be used in your code to introspect, analyse and modify code in a way that was never possible before. After seeing this talk, you'll have a great insight as to the wonders of an AST, and how it can be applied to both compilers and userland code.
(*actual magic or time-warp not guaranteed)
Level: Intermediate

Who are you?

Claim talk

Talk claims have been moved to the new site.

Please login to the new site to claim your talk

Comments closed.


Rating: 5 of 5

15.Feb.2018 at 12:30 by Ciaran McNulty (128 comments) via Web2 LIVE

Interesting look at internals; it stayed a bit academic until the very end with some practical applications day-to-day and I’d have liked to see more ‘cool stuff I can do’

Rating: 5 of 5

15.Feb.2018 at 12:48 by Craig Duncan (12 comments) via Web2 LIVE

Very interesting and enlightening talk.

Knowing a little about the various parts of the PHP compilation it was great to have an explanation of how it all works together.

The breakdown of how a compilation stack works was particularly clear and easy to grasp

Rating: 5 of 5

15.Feb.2018 at 15:28 by antonis flangofas (9 comments) via Web2 LIVE

I enjoyed this talk and liked speaker's humor :)

Rating: 5 of 5

16.Feb.2018 at 00:07 by Kat Zien (29 comments) via Web2 LIVE

I found this talk interesting and informative. It was nice to refresh the knowledge of how the PHP compilation works, what the AST is and how it all works together. It was explained in a clear and concise way with a bit of humour - thank you James! It was nice to see the practical examples at the end which tied it all together. Good pace throughout the talk.

© 2019