Skip to content

isovalent/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game Of Life in eBPF

This is the code for the demo from John Fastabend and Liz Rice's KubeCon Paris talk about the evolution of the complexities that eBPF can handle. By implementing Conway's Game of Life in eBPF, we show that it is now Turing Complete.

Prerequisites

You will need to run this on a Linux (virtual) machine. It was tested on Ubuntu 22.04 with 5.15.0-107-generic kernel. The lima.yaml file includes apt-get commands for installing the build pre-requisites.

Building and running this demo

  • Build by running make
  • Run with root privileges: sudo ./life
    • This loads the program and attaches it to a network egress event.
  • In another terminal, send a packet on TCP port 65137 (0x71FE), for example by running nc 127.0.0.1 65137
    • This is enough to trigger the egress event (you don't need anything to be listening on that port)

Releases

No releases published

Packages

No packages published