Live data from Hacker News

If AI writes your code, why use Python?

medium.com

371–380 of 1001 posts

Re: If AI writes your code, why use Python?

#371
post #19

Earlier quoted context omitted.

Type safety feels like the big one; anything you can shift to static/compile-time regimes benefits agents immensely.

There are two working LLM axes. Critic strength: how much the language catches before runtime. Sensor strength: how good the empirical feedback loop is. LLMs benefit from both, but the sensor axis often is undervalued. Type safety is great, but you can't just quietly disregard the benefits some dynamically typed languages provide; that would be completely ignoring that different tasks weight the two axes differently.…

[flagged]

Re: If AI writes your code, why use Python?

#374

Earlier quoted context omitted.

AI has not been trained on Lojban. And furthermore, this article is almost certainly primarily intended to be read by humans directly. I understand you're being facetious, but I'm not sure what point you're trying to make about programming languages in comparison.

It’s funny that in your reply “this article is almost certainly intended to be read by humans” you made what is the best case to keep writing code in Python even with AI. Sure, if you are going to have an AI do all your coding and maintenance you can use whatever language it’s best at. But if you want to participate in the writing, debugging, and maintenance, it has to be in a language that a human can read. I’m not…

> I know I am better at Python personally and am going to keep using it until the speed penalty matters to my project,

I hate Python (app distribution is painful), but will still reach for it before I reach for Go. Rust doesn't even enter the equation.

I would not have even needed to reach for Go in about half my programs if Python had mandatory typing and single-file no-dep distribution.

> and then maybe I’ll let an AI rewrite the whole thing in a faster language.

Even then, my reasons for discarding Python when I do discard it is almost never "performance", it's because the problem space requires mandatory typing for complex data types, or concurrency, or easy distribution.

Of course, this requires me to figure out quite early ion a project that those things would be needed.

Re: If AI writes your code, why use Python?

#376
post #363

Earlier quoted context omitted.

Oh, I hadn't heard of lojban before. Cool project! Anecdotally, I think language effects the way you think more than most people realise, which is why I think a logical language is a great idea: it might "trick" people into thinking more logically! Now to get someone to actually speak it with!

If you’ve not heard of Lojban you may not have heard of Sapir-Whorf. Or you’re indirectly referring to it. https://plato.stanford.edu/archives/win2011/entries/relativi... https://en.wikipedia.org/wiki/Linguistic_relativity

I had not! Cool to see that there's a established theory about linguistic determinism(great term btw!)

I was only speaking from personal experience, I moved from Sweden to Brazil in my early twenties and after a while I began thinking and dreaming in Portuguese. I noticed then that my thought process changed(actually, I noticed it upon moving back to Sweden, as my thoughts and dreams shifted back to my mother's tongue. The shift the way back was much faster since I already spoke Swedish whereas in Brazil I had to learn the language before beginning thinking in it)

Anyway, I noticed then that I would interpret the world differently depending on which language I used for my internal monologue. Like way different. It was a curious experience!

Re: If AI writes your code, why use Python?

#377

It's strange to me that this blog post was written in English. If AI is available, why aren't we all communicating in Lojban? [0] It's an obviously superior language. What does it matter that many people already communicate in English and much of computing depends on that language? AI doesn't care about that. Plus, if you ever need to edit Lojban without AI, you should be able to pick it up in a few weeks, right? [0]…

How is this comparable in any way?

The recipient of the blog posts (all of us) can read English. None can read whatever this Logjam is.

If AI writes code why not write it straight into assembler or binary? No need to compile an intermediate language if the end user (the machine) is running on binary not on Python, nor on Rust, nor on BASIC or Swift or any intermediary human-optimised language

Re: If AI writes your code, why use Python?

#379
post #363

Earlier quoted context omitted.

Oh, I hadn't heard of lojban before. Cool project! Anecdotally, I think language effects the way you think more than most people realise, which is why I think a logical language is a great idea: it might "trick" people into thinking more logically! Now to get someone to actually speak it with!

If you’ve not heard of Lojban you may not have heard of Sapir-Whorf. Or you’re indirectly referring to it. https://plato.stanford.edu/archives/win2011/entries/relativi... https://en.wikipedia.org/wiki/Linguistic_relativity

[deleted]

Re: If AI writes your code, why use Python?

#380
post #224

Earlier quoted context omitted.

I don’t think this holds at all, because the idea with a lot of vibe-code workflows is “humans never need to read the code” which would mean that human dev ergonomics are irrelevant. Here, the blog post is still clearly targeted at humans, so human reader ergonomics are still relevant.

Yeesh, is "never reading the code" really the modus operandi we want from AI? Microsoft, for all their warts, at least had the compassion to call their AI product "Copilot", suggesting we have some residual agency in whatever it is that it produces.

Let's say you get access to a microservice from another team in the company. Do you read through and audit every line of code?

What if it's from an external vendor? A 3rd party SaaS?

At which point do you stop caring about reading every line of code you run?

Post reply on HN