Live Session: Live Coding a Bytecode Interpreter for Python
We are due for our next live session. The previous session on performance engineering was quite a success. Those who attended, left some amazing feedback. Now it’s time for the next one.
Next Live Session Agenda
I’ve written a ton of articles on the internals of CPython, this time I want to live code a compiler and bytecode interpreter for a limited subset of Python with you. I’ve never done this before, so this will be fun! Here’s what I am thinking we will do:
Discuss the Python bytecode instruction format
Understand the structure of Python’s abstract syntax tree (AST)
Write an interpreter which interprets Python code by traversing the AST
Then we will start to define bytecode instructions and build a compiler
Finally, we will write a simple stack based virtual machine to execute the bytecode
We will be compiling actual Python code, but for a very limited subset of the syntax. The goal is to understand AST traversal, bytecode generation, and bytecode execution. We will also not talk about parsing, while that is an important topic, we don’t have that much time.
Session Date & Time
November 23rd, from 15:30 UTC to 18:30 UTC (or 21:00 pm to 00:00 pm Indian standard time).
How to Attend
As always, the session is free for all the paid subscribers. Just sign up using the link in the RSVP section. If you are not a paid subscriber, you can upgrade and attend!
If you are just interested in this one session, then please consider buying a one time ticket instead of upgrading for just one month.
Limited Number of Spots & Recording
Because of Zoom’s limit, there is a hard limit of 100 people who can sign up.
I will share the recording with whoever signs up (whether they attend or not). But I may not upload it generally anywhere. So please sign up even if you can’t attend live!
However, if you want to attend live but can’t do it this time then let me know and I can plan to repeat it sooner.
RSVP Link
If you are a paid subscriber, you can register at the below link.