News for hackers. Stuff that matters.
Re:Candle: Torch Replacement in Rust by spenczar5 on Tuesday August 08, 2023 @10:53AM (#37049868)
I agree. Two years ago, I tried writing data-intensive components for Python as rust extension modules. It was painful, tedious, and confusing.

I came back to it for a second try a month ago, and was blown away. PyO3 and maturin (especially maturin) are stunningly straightforward. I actually find maturin easier to use than “normal” Python packaging tools, to the extent such a thing even exists.

I really hope we will see a move towards rust, and away from extension modules written in C/C++/Fortran, just because the development experience is so much more approachable. Which is not something I thought I would say about Rust!

Re:Candle: Torch Replacement in Rust by tomrod on Tuesday August 08, 2023 @10:55AM (#37049900)
You've convinced me. I've been waiting to see when Julia or Rust would be able to start encroaching on Python's production lockup. Time to deep dive!
Re:Candle: Torch Replacement in Rust by PartiallyTyped on Tuesday August 08, 2023 @01:16PM (#37052404)
I can tell you that AWS - despite being a mostly java shop - makes extensive use of rust!
Re:Candle: Torch Replacement in Rust by locuscoeruleus on Tuesday August 08, 2023 @12:32PM (#37051625)
How can I effectively approach extending Python with Rust? I encountered some challenges while attempting to translate Python objects to Rust. My intuition suggests that it's more straightforward to work with arrays or dictionaries of primitive types. Could you share your approach and perhaps point me to some helpful examples or resources for better understanding?