Hacker News new | ask | show | jobs
by carlmr 1096 days ago
Pitch: Like Python, but faster and multicore.

At least it's the reason I tried it once.

It was not a bad experience.

3 comments

That is definitely a decent pitch. I think if nim oriented itself around that pitch more it would do better.

However i do wonder how big the market is for "python, but faster and multicore". I suspect it is smaller than "c but safe".

The problem with that for me is "like Python" implies a HUGE collection of libraries I can use to connect to pretty much anything.

With Python I can just search "python <thing>" and find popular, well-maintained, libraries to do <thing>. I can't do that with Nim. Most of the stuff I find seems to be 5-9 years old and have no updates since.

Nim allows you to use libraries for C and C++, as well as Python with the NimPy library, so the situation is not that bad if you don't mind getting your hands dirty.
Except THAT library only supports Python 2.7.x
sorry what do you mean?
They're poking fun at how sometimes you'll find a Python library that does exactly what you want with an interface that feels incredibly intuitive, but you end up finding out it was never updated to work in Python 3.x, only 2.x.

Though I'm not really sure how often that happens these days unless you're trying to write code that's using an old protocol that's fallen out of favor, like IRC, FTP, or Gopher.

Python will probably also be "faster and multicore" with latest proposals, so it's not a very good pitch.
Python has been getting faster, but Nim I'm sure is still a few multiples above Python.

The problem is that CPython was never built with efficiency in mind and now it's hard to add it.