<story><title>Python vs. Rust for Neural Networks</title><url>https://ngoldbaum.github.io/posts/python-vs-rust-nn/</url></story><parent_chain><item><author>tanilama</author><text>Nobody writing NN in Python, they are just describing it.&lt;p&gt;For NN or DL in general, the correctness doesn&amp;#x27;t really lie too much on the code quality level, like ownership Rust people love to talk about. It is more about Numeric stability under&amp;#x2F;overflow and such. Choice of programming language offers limited help here.&lt;p&gt;I don&amp;#x27;t think Rust has a killer app for ML&amp;#x2F;DL community to offer as of now, the focus is vastly different.</text></item></parent_chain><comment><author>kuzehanka</author><text>I&amp;#x27;ve had a few Rust lovers come and mention this project to me recently. None of them had any data science or ML experience. None of them knew that Python is just used to define the high level architecture.&lt;p&gt;At the same time, comparatively tedious languages like Rust will never attract data science practitioners. They don&amp;#x27;t care about the kind of safety it brings, they don&amp;#x27;t care about improving performance in a component that&amp;#x27;s idle 99% of the time.&lt;p&gt;The bulk of the load in an DL workflow is CUDA code and sits on the GPU. Even the intermediate libraries like cublas would only see marginal-to-none benefits of being reimplemented in rust.&lt;p&gt;This is a cool project, but it has no chance to displace or even complement Python in the data science space.</text></comment>
<story><title>Python vs. Rust for Neural Networks</title><url>https://ngoldbaum.github.io/posts/python-vs-rust-nn/</url></story><parent_chain><item><author>tanilama</author><text>Nobody writing NN in Python, they are just describing it.&lt;p&gt;For NN or DL in general, the correctness doesn&amp;#x27;t really lie too much on the code quality level, like ownership Rust people love to talk about. It is more about Numeric stability under&amp;#x2F;overflow and such. Choice of programming language offers limited help here.&lt;p&gt;I don&amp;#x27;t think Rust has a killer app for ML&amp;#x2F;DL community to offer as of now, the focus is vastly different.</text></item></parent_chain><comment><author>drewm1980</author><text>You&amp;#x27;re right, and... I&amp;#x27;m working professionally using DL for computer vision, for robotics. We spend the  majority of our time writing the business logic around the learned parts. To get all of that code bug free and fast is way harder in python that I expect it would be in Rust. Rust&amp;#x27;s ndarray ecosystem is immature, but Python&amp;#x27;s static type checking ecosystem is too (no stable mypy stubs for numpy ndarrays), as is Julia&amp;#x27;s AOT compilation story.</text></comment>