numba / llvmlite

A lightweight LLVM python binding for writing JIT compilers
https://llvmlite.pydata.org/
BSD 2-Clause "Simplified" License
1.87k stars 317 forks source link

How to apply JIT on GUI applications using llvmlite? #499

Open bifunctor opened 5 years ago

bifunctor commented 5 years ago

Is there some way you can apply JIT on GUI applications using llvmlite? Suppose I had this GUI code (using tkinter):

from tkinter import *

window = Tk()
window.title("My app")

lbl = Label(window, text="Hello").pack()
txt = Entry(window).pack()
btn = Button(window, text="Click Me").pack()

window.mainloop() 

Could I apply JIT on this?

seibert commented 5 years ago

One could make a JIT to do this, but Numba / llvmlite will not provide much benefit to compiling this. Numba is more suited to numerical applications. You may find that PyPy does a better job with this kind of code.