buzz-language / buzz

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

Will you implement a way to compile a buzz script to an executable? #264

Closed sneekyfoxx closed 4 months ago

sneekyfoxx commented 4 months ago

I like buzz a lot as it is concise and easy to use, but like Python many people may not want to install the buzz interpreter to execute code. Buzz is the perfect language for small and fast executables which will have a big impact on product distribution.

giann commented 4 months ago

Buzz is not a AOC language. It's very much like python and js in that a script needs the buzz VM to run.

However you could very quickly write a zig/c program that uses buzz API to launch your script and package that into a single binary.

sneekyfoxx commented 4 months ago

Understood and thanks for the tip.

sneekyfoxx commented 4 months ago

@giann I'm sorry, but I wanted to let you know that you have to update the link on your website pointing to the Buzz API. It points to:

https://github.com/buzz-language/buzz/blob/main/lib/buzz_api.zig

instead of

https://github.com/buzz-language/buzz/blob/main/src/lib/buzz_api.zig.