Re:Python programming: We want to make the language twice as...
by planetis on Saturday May 15, 2021 @04:36AM
(#27163492)
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-...
Re:Python programming: We want to make the language twice as...
by turbinerneiter on Saturday May 15, 2021 @04:58AM
(#27163579)
This doesn't make existing python code bases faster. You have to rewrite in nim.
Re:Python programming: We want to make the language twice as...
by planetis on Saturday May 15, 2021 @06:25AM
(#27163976)
Yeah (rewrite) just the hotpaths like you would with Cython. Also there is https://github.com/Pebaz/Nimporter which makes it easier.
Re:Python programming: We want to make the language twice as...
by dvfjsdhgfv on Saturday May 15, 2021 @06:02AM
(#27163882)
I believe OP means new code bases; rewriting the existing ones obviously makes sense only in specific cases where performance is a key factor.
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?