Live data from Hacker News

Python 3.12

python.org

271–280 of 344 posts

Re: Python 3.12

#271
post #77

Earlier quoted context omitted.

Well it already is. You get to pick which direction you agree with.

[flagged]

Well, one of the loudest voices in American politics has called them criminals and rapists, so it's not exactly a non sequitur.

Re: Python 3.12

#272
post #119
post #5

Everything aside, I enjoyed the "And now for something completely different" part.

I dislike it because it's kinda hard to understand (can't really say I did) specially without any context, and programming language release notes are something people should read even a hundred years afterwards.

I'm curious what aspect of the poem you don't think will be relevant in a century from now?

Re: Python 3.12

#273

Earlier quoted context omitted.

> It's entirely consistent to believe (a) that a "tame" political statement supporting immigrants is acceptable in release notes, while also believing (b) that a cutesy poem defaming immigrants would be abhorrent and unacceptable. The opposing cutesy poem wouldn't be defaming immigrants! It would be acknowledging a nation can't exist without borders, sovereignty matters, and unchecked migration is not universally goo…

Borders are a relatively new concept and nations existed before borders so what you're saying is trivially false. The US was built on unchecked migration and it did pretty well out of it.

Having a border is not the same as policing entry through it

Re: Python 3.12

#274

Earlier quoted context omitted.

If an upvote is for agreement, does downvoting for disagreement not make sense? Or are upvotes meant for something else?

from the guidelines: Users should vote and comment when they run across something they personally find interesting Also: Please don't comment about the voting on comments. It never does any good, and it makes boring reading. Well... sorry then :-) And final: Please don't use Hacker News for political or ideological battle. That tramples curiosity.

I don't particularly care what the venture capitalists who own this website want me to do. Nor is it surprising that they don't want politics here. Political consciousness can only be bad news for the uber-wealthy.

Re: Python 3.12

#276

They keep getting improved error messaging and this is one of my favorite features. But I'd love if we could get some real rich text. Idk if anyone else uses rich, but it has infected all my programs now. Not just to print with colors, but because it makes debugging so much easier. Not just print(f"{var=}") but the handler[0,1]. Color is so important to these types of things and so is formatting. Plus, the progress b…

I love and use rich too, but gosh I hope that libraries don't start depending on it just because pip does. It has a lot of dependencies of its own, and dependency creep is real. I know pytorch isn't exactly lightweight in terms of dependencies. But I prefer using libraries that make an effort do only pull in absolutely necessary dependencies.

Yeah sorry I don't think I was clear. I don't exactly want to just drop in rich into the python source (for reasons you mention). But I do think they could take some of the ideas from there and place them in. Formatting is really the most important aspect here, especially around traces because these are the real work amplifiers. So much time is spent debugging that the better tools we have to debug better the more work __everyone__ does. But debugging is strangely a underappreciated area. I think you could do colors with just simple ansii encodings (same as you'd do in posix). I'm just using rich as an example of style.

r.e. pytorch: It's a love hate with me. I do think they should incorporate things that are extremely common and solve things that are daily issues. As a simple example, new users are often confused with loading and saving models when using distributed data parallel (DDP) because it creates this extra "module" name in the state_dict and so can require different usage for saving/loading models if you're distributed training or not. This can be quite annoying. Similarly there are no built in infinite samplers, which are common among generative modelers. People who don't iterate over epochs of data, but rather steps. There's of course many solutions to deal with this, but it does make sense with how prolific it is (and has been since 2015) that there just be a built in dataloader. I'd argue things like progress bars and loggers would also be highly beneficial, especially because pytorch's forte is generating research code.

But we're digressing. These are just opinions.

Re: Python 3.12

#277
post #269

Earlier quoted context omitted.

Yep, it’s incomplete, and much more importantly not machine readable. These days I want all my code to pass strict mypy. It’s mostly possible and a bliss when it works, but libraries (ab)using kwargs throw a spanner in that. Libraries where everything is kwarg and the docs have to be consulted are a killjoy. And they cause tons of bug from misuse!

These days you want java then! Why are you not using java?

Because compared to the ease of use and readability of python you get 1/10th the work done with 5x the pain in the arse.

Re: Python 3.12

#278
post #208

Earlier quoted context omitted.

Software is always user-upgradable on Linux. Just install it somewhere in your home directory. GNU Stow [0] can be helpful as a very lightweight way to manage the packages. (Of course, then you take on the responsibility of keeping up with patch releases yourself, which is why we use distros. But if it's just a small number of packages on top of a distro-managed base system, it's perhaps not so bad.) [0] https://www.…

Sure and how do you install Python 3.12 on RHEL 8 without compiling it from source?

Use pyenv and let it manage Python versions for you.

Re: Python 3.12

#279

Earlier quoted context omitted.

Sure and how do you install Python 3.12 on RHEL 8 without compiling it from source?

I don't know, but what is the problem with compiling from source ? Some softwares are hard to compile but I found Python really easy to compile.

I agree that compiling Python from source is surprisingly straight forward, but is that a serious question?

Have you ever worked in a place that uses Python? When someone says to you "hey it's not working" are you really going to say with a straight face "oh yes, you just need to compile Python from source". Come on, this is one of those obviously stupid situations that for some reason people feel the need to defend. It's not defensible.

You don't need to compile Node or Rust or Go or Deno from source to install the latest version.

Re: Python 3.12

#280
post #239

Earlier quoted context omitted.

Sure and how do you install Python 3.12 on RHEL 8 without compiling it from source?

Just run the miniforge install script if you want a very friction-free install. I'm not a big conda fan, but the "install in my home directory" use case is very well covered by miniforge. https://github.com/conda-forge/miniforge/

That looks like it will install Conda though?
Post reply on HN