12

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…

Comments
  • 7
  • 6
    numpy is just a C Library in disguise.

    Makes sense, that it improves performance drastically.
  • 1
    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).
  • 1
    Wish upon a star ?
  • 1
    @RememberMe

    That sounds dreamy!
  • 1
    i bet it suddenly runs as fast as java.
  • 1
    any library is welcome in Python
  • 1
    And that is why C ain't getting replaced anytime soon XD
  • 0
    @CoreFusionX

    You don’t think Rust will eventually take over? I’ve been wondering.
  • 0
    @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 🤷
  • 0
    @CoreFusionX Another reason C++ is probs my next. Thanks for the info!
Add Comment