Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
numpy is just a C Library in disguise.
Makes sense, that it improves performance drastically. -
Check out Numba, can give a serious kick to dense array style programs in Python. It basically JIT compiles your code iirc, so should also autovectorize when it can (although a specialized vectorized fn will probably be faster).
-
@EvanMarie
C I don't think. C++ probably.
By CS standards, C's 40+ years are *a lot*, but there's elegance in C's simplicity and efficiency. It will always have a place in IoT and embedded.
C++ is a whole another beast.
C++ is evidently higher level than C, as Rust is. IMHO, modern C++ and rust are both head to head in safety and efficiency. They both embrace the zero-cost abstraction paradigm.
However, C++ suffers a lot from the heavy burden of backwards compatibility. Maintaining ABI compatibility has historically caused trouble when trying to develop new features or improvements. That will eventually cause it to be replaced by rust itself or carbon or some other, but it will take a long time for those to be so widespread and battle hardened.
Then you may complain about ugly syntax and cryptic template errors, (and you'd be right), but frankly, with my recent experience with typescript, it's almost as bad and everyone praises it, so 🤷
I know I’m not the only Numpy lover in the house. It deserves its own song…I’m pretending I haven’t already written one…
joke/meme