News for hackers. Stuff that matters.
Re:Nim in 2018: A short recap by gameswithgo on Wednesday January 09, 2019 @10:18AM (#18865284)
>After I realized about python was easily beating Nim in [speed]

It is certainly not generally the case that Python beats Nim in speed, not even close. I would imagine something was wrong with your implementation or you hit some weird Nim bug or edge case.

Re:Nim in 2018: A short recap by nudpiedo on Wednesday January 09, 2019 @10:28AM (#18865376)
It could be, but remember that python optimizes a lot IO and string manipulation (runtime in C). Based on how the feature list has changed perhaps I tried Nim even earlier than what I said. I also did not want to look for any optimizations since I just used bare constructs and no libs.
Re:Nim in 2018: A short recap by beagle3 on Wednesday January 09, 2019 @10:48AM (#18865596)
Hash tables in nim require pulling in the standard library and are built-in in Python. If you didn’t even “import tables”, you were likely comparing O(1) apples to O(n) oranges.
Re:Nim in 2018: A short recap by nudpiedo on Wednesday January 09, 2019 @10:54AM (#18865653)
however I did it I am sure I used (imported or not) hash tables or similar from stdlib (no algorithm complexity difference in this regard).

But based on the comments from everyone it is reasonable to say that my implementation had something wrong or the test was off in some regard.