| ▲ | anonzzzies 10 hours ago | ||||||||||||||||
It's very good (in our experience, YMMV of course) when/llm write prototype with python and then port automatically 1-1 to Rust for perf. We write prototypes in JS and Python and then it gets auto ported to Rust and we have been doing this for about 1 year for all our projects where it makes sense; in the past months it has been incredibly good with claude code; it is absolutely automatic; we run it in a loop until all (many handwritten in the original language) tests succeed. | |||||||||||||||||
| ▲ | behnamoh 9 hours ago | parent | next [-] | ||||||||||||||||
IDK what's going on in your shop but that sounds like a terrible idea! - Libraries don't necessarily map one-to-one from Python to Rust/etc. - Paradigms don't map neatly; Python is OO, Rust leans more towards FP. - Even if the code be re-written in Rust, it's probably not the most Rustic (?) approach or the most performant. | |||||||||||||||||
| |||||||||||||||||
| ▲ | abrookewood 8 hours ago | parent | prev [-] | ||||||||||||||||
Why not get it to write it in Rust in the first place? | |||||||||||||||||