Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
treeform opened this issue May 23, 2021 · 1 comment
Open

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

treeform opened this issue May 23, 2021 · 1 comment

Comments

@treeform
Copy link

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
Copy link
Owner

edin commented May 25, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants