2 ms·
> In Python you can also write performance critical code in C as the standard library often does. As a sloth I can become a horse to run fast. I like Python,
by oblio 7y ago
> In Python you can also write performance critical code in C as the standard library often does.
As a sloth I can become a horse to run fast.
I like Python, but let's not take an obvious weakness and try to present it as a strength. In the modern programming language landscape where you can get expressive and fast, Python is still slow.
- dymk 7y agoDoes Nim have some sort of interop that lets it call into Python packages, so it can take advantage of that huge ecosystem? I don’t get how anybody is claiming that Nim is at all comparable to Python. A nice syntax is like.... 1/10th the battle when you’re writing big projects.
- throwmeaway101 7y agoThere is https://github.com/yglukhov/nimpy https://github.com/yglukhov/nimpy There are/were others too IIRC.
- kevin_thibedeau 7y agoYou embed Python in Nim or build Nim as a Python extension.
- rpedela 7y agoI actually think it is a strength or really being able to use Cython to compile Python into C/C++ is the strength. There aren't too many scripting languages where I can do very little work/setup to get C-like performance, and I can still use Python and its huge ecosystem. Nim looks interesting because it provides a simple, concise scripting language like Python but makes compiling to C/C++ dead simple. Nim is just missing that ecosystem.