r/PythonLearning • u/JanGiacomelli • May 13 '26
I wrote a guide for AI-powered rewrite from Python to Rust
I had to rewrite some logic from Python to Rust because it was compute-intensive and simply too slow in Python. Therefore, I wrote a step-by-step guide for myself (and others) on how to do that using AI. (Works also if you're manually writing the code)
You can find it here: https://jangiacomelli.com/blog/ai-powered-rewrite-python-to-rust/
Hope you'll find it helpful!
0
Upvotes
2
u/AlexMTBDude May 13 '26
I'm curious; Why did you rule out the standard way that Pandas, Matplotlib, NumPy, ..., everyone else does by compiling (C code) the compute-intensive parts and calling them from your Python code?
2
u/Born_Perspective_836 May 13 '26
Do you maybe also have Claude.md or agents.md file?
1
u/[deleted] May 13 '26
[removed] — view removed comment