Live data from Hacker News

Python 3.15: features that didn't make the headlines

blog.changs.co.uk

181–190 of 236 posts

Re: Python 3.15: features that didn't make the headlines

#181
post #33

Earlier quoted context omitted.

the funny thing is that everyone, including myself, posited that python would be the winner of the ai coding wars, because of how much training data there is for it. My experience has been the opposite.

AI benefits from tools to verify its halucinations. That's much easier in a typed and compiled language. Then have a language that can't be monkey patched at runtime and the confidence increases even more. If you mean "easy to get something out of it" then yeah, it's great.

[dead]

Re: Python 3.15: features that didn't make the headlines

#182

Earlier quoted context omitted.

> * Web sites: Typescript, or maybe Go. lol, no. Just no. Python is far superior for website backends unless perhaps you're running one of the top 20 websites in the world.

function Greeting({ name }: { name: string }) { return ( Hello, {name}! Welcome to my site. ); } That looks like HTML, but it's TypeScript. It gets compiled to actual HTML. Can any Python framework do that?? In Python, you'd typically write your logic in Python and your HTML in a separate Jinja2 template file — two languages, two files, context-switching. With Fresh + TSX, your logic and your markup live together in…

Looks like old-school PHP if I squint a little

Re: Python 3.15: features that didn't make the headlines

#183
post #24

Earlier quoted context omitted.

the funny thing is that everyone, including myself, posited that python would be the winner of the ai coding wars, because of how much training data there is for it. My experience has been the opposite.

I felt the opposite, because Python isn’t a great language. It won because of Google, fast prototyping, and its ML interop (e.g. pandas, numpy), but as a language it’s always been subpar. Indentation is a horrible decision (there’s a reason no other language went this way), which led to simple concepts like blocks/lambdas having pretty wild constraints (only one line??) Type decoration has been a welcome addition, bu…

Sigh. You clearly don't remember the year 2003, when your choices were basically C, Perl, bash, php, or Python. C is not a language for quick scripts or dealing with strings like web apps do. Perl was so fun to write, but impossible to read. Bash actually requires you to know bash, awk, sed, grep, and to if you think Python is slow you've never written and used a 2000 line bash program. php was pretty readable and writable, but so full of security pitfalls for Web apps, and was also slow. Python was an amazing breath of fresh air compared to them all!

Re: Python 3.15: features that didn't make the headlines

#184
post #24

Earlier quoted context omitted.

I felt the opposite, because Python isn’t a great language. It won because of Google, fast prototyping, and its ML interop (e.g. pandas, numpy), but as a language it’s always been subpar. Indentation is a horrible decision (there’s a reason no other language went this way), which led to simple concepts like blocks/lambdas having pretty wild constraints (only one line??) Type decoration has been a welcome addition, bu…

I’m always baffled when language complaints come down to syntax

Have you never tried to read someone else's Perl code? Syntax matters.

But complaining about indentation is silly. Other languages' compilers don't require it like python does, but the humans using those languages all absolutely require proper indentation. Why not make it part of the language?

Re: Python 3.15: features that didn't make the headlines

#185
post #79

Earlier quoted context omitted.

I’m always baffled when language complaints come down to syntax

That’s exactly how I think, too. But at the same time, I like indentation in Python, because I would logically indent in every other language as well. In fact, I find all those semicolons and similar things at the end of each line completely redundant (why should I repeat myself for something the compiler should do) and I hate them. And that’s despite having experience with Modula and 10 years of C++. But when I look…

Not ADHD but 100% agree on rusts syntax. It's totally repulsive to me.

Re: Python 3.15: features that didn't make the headlines

#186

I was so into Python for 10 years, was enjoyable to work in. But have deleted 100k+ lines this year already moving them to faster languages in a post AI codebot world. Mostly moving to go these days.

Interested in why you'd use Python in the first place? Advice for someone who knows nothing about programming - what would you suggest?

Try a few, pick what you like

Re: Python 3.15: features that didn't make the headlines

#187

I am not a python dev but have the utmost respect for the ecosystem. But damn, with all the supply chain attacks now in the news, could they just make a simple way (for non python insiders) to install python apps without fearing to be infected by a vermin with full access to my $HOME ...

There are plenty of python apps that you can just apt install. You probably don't even realize some of the apps you run are written in python?

And any app you run has access to $HOME, that's not a python specific thing. Look into apparmor or selinix if you want finer grained security

Re: Python 3.15: features that didn't make the headlines

#188
post #59

Earlier quoted context omitted.

I'm still on the lookout for a comprehensive Django-like web framework for go. That would be an instant hit for me.

Try another language? The Go ecosystem tends towards libraries as opposed to "frameworks." I personally chose C# for this reason, because ASP.NET is mature and (IMO) well designed. But there's also Java/Spring and and lots of other options in different languages depending on your preferences.

I'm aware of those platforms and have used them in the past. The tendency towards libraries is what bugs me. My preference would be a "Djan-go" framework, with the models, migrations, auto-admin, views, routing, caching, templates, all rolled into one cohesive framework that works out of the box. I don't want to make choices. I want to install it and start working.

Re: Python 3.15: features that didn't make the headlines

#189
I used to be obsessed about language design and now, since I almost never write code directly (it's always Claude), I completely lost interest.

It feels like a total waste of time and I wonder if other feel the same.

One of the consequences of the LLM tsunami might be the freezing of research and development in programming languages.

Maybe we'll be stuck with J's and python forever...

Re: Python 3.15: features that didn't make the headlines

#190

Earlier quoted context omitted.

function Greeting({ name }: { name: string }) { return ( Hello, {name}! Welcome to my site. ); } That looks like HTML, but it's TypeScript. It gets compiled to actual HTML. Can any Python framework do that?? In Python, you'd typically write your logic in Python and your HTML in a separate Jinja2 template file — two languages, two files, context-switching. With Fresh + TSX, your logic and your markup live together in…

No, that is not TypeScript. That's TSX. If you don't happen to have react, preact or a similar front end library, and a appropriate bundler, it is invalid TypeScript. > That looks like HTML, but it's TypeScript. It gets compiled to actual HTML. Can any Python framework do that?? IMHO that's a terrible idea that no one should ever actually use, but if you are really in love with that, you can have it: https://github.c…

> If you don't happen to have react, preact or a similar front end library, and a appropriate bundler, it is invalid TypeScript.

Not true, you can compile it to HTML on the backend or even statically too.

It's not a terrible idea; it's actually amazing. One of Typescript's best features. I do agree at first it seems icky (reminds me of Qt's MOC) but in practice it's fantastic. I recommend you try it before criticising. Python has nothing close (nor do any other languages tbf).

Post reply on HN