Climbing the Abstract Syntax Tree

James Titcumb (06.Oct.2018 at 11:30, 50 min)
Talk at ScotlandPHP 2018 (English - UK)

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)

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= eight minus six

Comments

Rating: 5 of 5

06.Oct.2018 at 12:58 by Michał Brzuchalski (1 comments) via Web2 LIVE

Good talk, I didn't know about the parser states before.
Thank you

Rating: 3 of 5

06.Oct.2018 at 13:10 by LJ NOBLE (4 comments) via Web2 LIVE

No fault of the presenter, but as a beginner I was lost...

Rating: 4 of 5

06.Oct.2018 at 14:04 by Daniel Craigie (20 comments) via Web2 LIVE

Always love a talk that gets down and dirty behind the scenes in PHP. I would have liked to see some practicle demonstrations of the different ways of performing static analysis and enhancing code.

Rating: 5 of 5

06.Oct.2018 at 14:56 by Harro Verton (13 comments) via Web2 LIVE

As always, very good.

My entire Uni course in compiler design flashed by in less than an hour. Where were you 30-odd years ago when I was given a syntax specification, an input source file, and the assignment "write a lexer, parser and compiler (in pascal !), and when done, run the source file and hand in the results"... ;-)

Rating: 5 of 5

06.Oct.2018 at 16:53 by Ken Guest (35 comments) via joind.in Android app

very interesting talk, especially in relation to the use of ASTs in userland. Thank you!

Rating: 5 of 5

06.Oct.2018 at 23:13 by Peter mcdonald (41 comments) via Web2 LIVE

Always interested in learning the inner working of PHP. James is passionate about his subject of expertise and goes a good way of explaining.

Rating: 5 of 5

07.Oct.2018 at 09:07 by James Hodgson (19 comments) via Web2 LIVE

A really interesting talk. Was great to hear a out something I didn't know about and to find out about some of the internals of php

Rating: 5 of 5

07.Oct.2018 at 12:01 by Andy Gaskell (24 comments) via Web2 LIVE

Really good technical talk about the nuts and bolts of the PHP7 abstract syntax tree. A complex topic explained in a clear way.

Rating: 5 of 5

08.Oct.2018 at 10:58 by Patryk Zajdler (7 comments) via Web2 LIVE

Absolutely loved the talk. I can only wish there were more examples / ideas of how developers can use AST (as opposed to how it's being used in already existing libraries).

© Joind.in 2018