logoalt Hacker News

bogtogyesterday at 11:36 PM3 repliesview on HN

> But now that most code is written by LLMs, it's as "hard" for the LLM to write Python as it is to write Rust/Go

The LLM still benefits from the abstraction provided by Python (fewer tokens and less cognitive load). I could see a pipeline working where one model writes in Python or so, then another model is tasked to compile it into a more performant language


Replies

anonzzziesyesterday at 11:56 PM

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.

show 1 reply
bkotoday at 12:01 AM

I think that's not as beneficial as having proper type errors and feeding that into itself as it writes

show 1 reply
JumpCrisscrossyesterday at 11:46 PM

NP (as in P = NP) is also much lower for Python than Rust on the human side.

show 1 reply