edin / raytracer

Performance comparison of various compilers
MIT License
57 stars 22 forks source link

Python is unfarily short because it uses PIL library. #25

Open treeform opened 3 years ago

treeform commented 3 years ago

Python appears to be the only language to use external library PIL to write the bitmap out. This makes it significantly shorter then other languages.

I think to be fair to other languages in the lines of code benchmark Python should not use PIL and write the .bmp like the other languages.

Nim's implantation has double empty lines and comments other languages do not have. If Python is forced to write out the bitmap and Nim's code is cleaned up I think Nim might be able to take the top spot in both speed and shortness.

edin commented 3 years ago

I agree, ruby I think also uses libraray to write bitmap image, I currently don't have much time but I'll try remove dependency on external libraries for ruby and python.