Hacker News new | ask | show | jobs
by turbinerneiter 1868 days ago
Nim doesn't make existing python vide bases faster.

Also, do you really think the Python team should just give up on performance just because faster languages exist?

Should Tesla stop building cars as soon as someone builds a faster car than them?

2 comments

Actually it is possible, Nim compiles to C and is a viable alternative to CPython.

nimpy https://github.com/yglukhov/nimpy PyGotham talk: https://www.youtube.com/watch?v=IVgNVJdizHg another blog post: https://robert-mcdermott.gitlab.io/posts/speeding-up-python-...

This doesn't make existing python code bases faster. You have to rewrite in nim.
Yeah (rewrite) just the hotpaths like you would with Cython. Also there is https://github.com/Pebaz/Nimporter which makes it easier.
I believe OP means new code bases; rewriting the existing ones obviously makes sense only in specific cases where performance is a key factor.