logoalt Hacker News

famouswaffles • yesterday at 5:02 PM • 1 reply • view on HN

>the problem is that the Python community at large rather prefers their C bindings or nowadays Rust, sprinkle a bit of Python FFI on top, and call them "Python" libraries.

They are Python libraries. Don't make the mistake of screwing up the cause and effect here. C, Rust etc - those are the replaceable parts of the chain. There is an official C++ pytorch library and virtually nobody uses it for ML Research. People want to code in python and build those libraries so they can.


Replies

pjmlp • yesterday at 6:45 PM

Nope, they are Python bindings to native libraries.

PyTorch in C++ naturally gets little use, because most people don't want to use C++, and although possible, e.g. CINT, very few care about C++ REPLs.

Also these libraries only exist because Python cannot deliver on its own, like Lisp or Scheme, and needs such libraries in first place.

Even BASIC has better options to do machine code and system programming than Python, starting with the original Dartmouth BASIC.

➕ show 1 reply