Better HN
topnewbestaskshowjobs
Log inSign up

1_08iu

21 karma · joined Mar 21, 2025 (1y ago) · 8 submissions

Submissions

comment 6mo ago · link · parent

I'm not trying to evangelise. I think the argument that Python is a poor choice because it is "too slow" is based on the assumption that speed of execution always matters. Sure, sometimes it absolutely does, but a lot of the time Python is fast enough.

At risk of nebulous repetition: There are many reasons one might choose a particular language. If you or your team find TypeScript or Go more amenable, by all means, use them.

comment 6mo ago · link · parent

I think "Python is slow" is reductive and frankly just as useful as saying "Python begins with a 'P'". The story is more complicated than simply speed of execution.

Choosing a language is a game of trade-offs: potentially slower execution in return for faster development time, for example. If your team is already familiar with Ruby, will asking them to write a project in Rust necessarily result in a better product? Maybe, but it will almost certainly take much longer.

Anyway, how many Python programs are actually "too slow"? Most of the time, Python is fast enough, even if heavy computation is offloaded to other languages.

As for Rust being the best language of them all, that's, like, your opinion, man.

comment 8mo ago · link · parent

I think it is important to be reminded that first and foremost they are humans too. A basic level of respect does not mean you like or agree with them. Leading with the statements emphasises that.

Besides, aren't their last words the entire point of the site?

comment 10mo ago · link · parent

Writing is ultimately just a communication tool. I think the author communicated their ideas effectively. I don't think that it is necessary or appropriate to speculate whether or not they have a learning disability.

comment 1y ago · link · parent

If people feel that they need to learn different language patterns in order to communicate effectively in their native language with an LLM then I'm not sure if I agree. I think that if your native language truly was a programming language then there wouldn't be any need for prompt engineering.

Regardless, I think that programmers are quite well-suited to the methods described in the article, but only in the same way that programmers are generally better at Googling things than the average person; they can imagine what the system needs to see in order to produce the result they want even if that isn't necessarily a natural description of their problem.

comment 1y ago · link · parent

t-strings (or template strings) are an upcoming Python 3.14 feature. They have similar syntax to f-strings (which were introduced in 3.6) except that they provide access to the string and the interpolated values (the bits inside the curly brackets) before they have been combined. Previously, something like

  db.query(f"SELECT * FROM table WHERE id={id};")
would have been vulnerable to the classic "bobby tables" SQL injection but t-strings allow for almost the same syntax (which is quite natural for Python programmers) without incurring a security risk.

If you are curious, t-strings have previously been discussed here (https://news.ycombinator.com/item?id=43748512 and https://news.ycombinator.com/item?id=43647716) and you can read the PEP that proposed their addition to the language (https://peps.python.org/pep-0750/).

comment 1y ago · link · parent

Perhaps compilers that use AI to generate machine code are the future... :^)

comment 1y ago · link · parent

He (Andrej Karpathy) has got a series on youtube which goes through how he made it!

https://www.youtube.com/watch?v=VMj-3S1tku0&list=PLAqhIrjkxb...