MichalStrehovsky / sizegame

Compare binary sizes of canonical Hello World in 18 different languages
209 stars 17 forks source link

Python via Codon compiler #14

Open delneg opened 1 year ago

delneg commented 1 year ago

https://github.com/exaloop/codon

I've remembered about this project, that claims to compile Python to machine code using LLVM. But I'm not 100% sure it fits into the rules, will Python be accepted if compiled with Codon or not ?

delneg commented 1 year ago

Other options include https://github.com/cython/cython and https://github.com/Nuitka/Nuitka

MichalStrehovsky commented 1 year ago

I think that runs into the issue of what is "the canonical way" to AOT compile Python (there isn't one as far as I'm aware). Choosing one arbitrarily then opens the question whether we can use TinyGo for Go, etc.

I've been thinking whether to introduce a "language+compiler" sub-scoreboard where the other ones could show up. There would still be just the main "language" category as it exists right now, but there would also be a B-sides "language+compiler" scoreboard for tcc/clang/gcc/... for C, all the different kinds of AOT compiled Python, etc.

As things are right now, the existing scope is how much I can maintain - I'd need a bit more automation set up to be able to handle the language+compiler combination. At minimum, I'd need to have an automated way to check that the generated executables work on a clean install of Windows (no missing DLLs, and prints Hello World) and tiny things like #13. I'd like to get to it at some point.