Skip to content
/ bfpyjit Public

Python -> BrainF**k Interpreter w/ LLVMlite JIT

Notifications You must be signed in to change notification settings

perks/bfpyjit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BFPyJit

This mostly came about just wanting to play around with compiler optimizations and exploring the LLVM JIT.

Was fun figuring out the llvmlite bindings for Python, hopefully this helps serve as an example for others interested in using it.


A note on optimizations:

There is an overhead introduced when you optimize, so play around with that.

For example, on hanoi.b optimizing takes some time, but afterwards the execution is so fast you barely see the program on screen for a second

Meanwhile, turning optimizations off will actually execute the unoptimized LLVM IR at a speed that lets you see the disc movement


Thanks to the following references which were super helpful serving as a resource to learn!

About

Python -> BrainF**k Interpreter w/ LLVMlite JIT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages