logoalt Hacker News

If AI writes your code, why use Python?

729 pointsby indigodaddyyesterday at 8:45 PM755 commentsview on HN

Comments

Maverick_Gtoday at 10:30 AM

[dead]

andrew_kwaktoday at 3:02 AM

[flagged]

r2vcaptoday at 12:36 AM

[dead]

th1sisoldnewstoday at 1:05 AM

This idea is already being taken to the next step in labs; why generate code?

When I run a game I don't care of the dev used C or whatever. Only programmers care about the syntactic representation.

I need the machine code/byte code patterns/geometric/color gradient data.

Eventually Python will be what you see on screen but no cPython interpreter program as we know it will be running

The model will have an internal awareness of the result to return without running an actual REPL

https://dev.to/zijianhuang/prompt-to-ai-generated-binary-is-...

nomoreusernamestoday at 12:33 PM

[dead]

cavemanDigAItoday at 3:14 AM

[flagged]

hoxihantoday at 8:03 AM

[dead]

kitbottoday at 6:42 AM

[flagged]

SadErntoday at 3:52 AM

[dead]

wotsdattoday at 12:54 AM

[dead]

onlytuetoday at 12:37 AM

MISSION

FUCKING

ACCOMPLISHED

mohamedkoubaatoday at 12:57 AM

Perl might just be the most token efficient language

jaredcwhitetoday at 2:40 AM

Code exists for humans to read and write. The fact it happens to compile and get executed by a computer system is a side effect.

maxdotoday at 3:40 AM

Despite lots of influencers (Karpathy) I personally trust, the industry is taking the opposite turn for a reason:

https://platform.claude.com/docs/en/agents-and-tools/tool-us... Also Claude Cowork, etc.

1. You don't need compilation... run and test faster. Compilers were primarily built to prevent human error, and only very secondarily to guard your business logic.

2. Your validators quite often need to evolve. With Python or JS, this is a pydantic edit + run. Imagine 3–4 iterations of the same in Rust?

3. Composition. The entire cycle of software changes. An agentic system takes orders from a human, reads some kind of cache and snippets, writes/combines snippets, tests it, runs it, and fixes it. This almost pushes you toward snippets the size of a function, which still need to be covered with tests. I can easily build 10 function-sized Python files and write an agent that will mix and match 3 of them into a final result. With a compiled language, you'd need to compile 10 times — or store the binaries and think about what platform they'll execute on, etc.

I love the fact that the author is questioning this. No doubt the market for your favorite language will change. 80% of languages will go away — there is no market anymore for such a big variety of languages.

show 1 reply