buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.15k stars 31 forks source link

Don't JIT compile twice functions with the same body and signature #178

Open giann opened 9 months ago

giann commented 9 months ago
fn hello() -> print("hello");

fn hi() -> print("hello");

Those two functions are the same and should be JIT compiled once. Find some kind of hash function for a function.