News for hackers. Stuff that matters.
Re:ChatGPT Containers can now run bash, pip/npm install pack... by anonzzzies on Monday January 26, 2026 @06:56PM (#46773505)
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.
Re:ChatGPT Containers can now run bash, pip/npm install pack... by behnamoh on Monday January 26, 2026 @07:12PM (#46773700)
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.

Re:ChatGPT Containers can now run bash, pip/npm install pack... by anonzzzies on Monday January 26, 2026 @07:38PM (#46773888)
It doesn't map anything 1 to 1, it uses our guidelines and architecture for porting it which works well. I did say YMMV anyway; it works well for us.
Re:ChatGPT Containers can now run bash, pip/npm install pack... by behnamoh on Monday January 26, 2026 @07:51PM (#46773987)
Sorry, so basically you're saying there are two separate guidelines, one for Python and one for Rust, and you have the LLM write it first in Python and then Rust. But I still don't understand why it would be any better than writing the code in Rust in one go? Why "priming" it in Python would improve the result in any way?

Also, what happens when bug fixes are needed? Again first in Py and then in Rs?

Re:ChatGPT Containers can now run bash, pip/npm install pack... by abrookewood on Monday January 26, 2026 @08:52PM (#46774511)
Why not get it to write it in Rust in the first place?
Re:ChatGPT Containers can now run bash, pip/npm install pack... by antonvs on Tuesday January 27, 2026 @11:22AM (#46782063)
Presumably the thought experiment hasn’t matured to that point yet.