Python vs Haskell : An unsatisfying exercise in comparative code linguistics
sandersn.com
sandersn.com
So for example to see if some object is iterable, you just check if it responds to each.
obj.responds_to?(:each)The horrifyingly broken performance of the Python Global Interpreter Lock (GIL) on multi-core has me looking for an alternative for performance-sensitive higher-level code.
Typically I experiment with a new higher-level language, and then fall back on "I'll meta-program in the high-level language, and emit portable C code." Sigh.