News for hackers. Stuff that matters.

These335

Re:Scarf has moved away from Haskell on Friday July 10, 2026 @11:08AM (#48861022)
I grew up on python and after working with Java I really came to appreciate types. However I do want to point out that big libraries like mpl pre-date most efforts for typing, so it is no wonder that they arent typed properly. A lot of these libraries are trying to improve this but it will just take some time.
You're absolutely right, this was an AI post
Got a specific example in mind for garbage fire and mediocre?
Love Flask, but this has always been a missing tool. I have a question though - it seems like you're actually modifying the response data type for Flask routes so that it's a Pydantic model. Is that an optional approach? While I wish that were the official standard, if it is not optional then I think that's quite a big ask for maintainers of existing APIs who want to use your docs library. Regardless, I'm looking forward to trying it out! Looks great.
Re:Conda: A Package Management Disaster? on Friday December 20, 2024 @02:26AM (#42469005)
Can somebody please eli5 why it is so unanimously accepted that Python's package management is terrible? For personal projects venv + requirements.txt has never caused problems for me. For work projects we use poetry because of an assumption that we would need something better but I remain unconvinced (nothing was causing a problem for that decision to be made).
Re:Uv, a fast Python package and project manager on Saturday December 14, 2024 @08:40AM (#42417066)
Maybe I'm not fully grasping lock files then, but why isn't it sufficient to just pin the versions in the requirements.txt? Obviously it doesn't handle the python version itself but I just use pyenv for that. So my stance is just pyenv + venv seems to solve those problems. But then I see people singing the praises of these newer tools and I wonder what I am not getting
Re:Uv, a fast Python package and project manager on Saturday December 14, 2024 @04:40AM (#42415816)
I have only ever really used venv. Poetry was fine but didn't give me any additional benefits that I could see. What does this offer? And more broadly, why do people consider pip to be a problem? I have literally never had any issues with it in any of my projects.
Re:Statistical Rethinking (2024 Edition) on Saturday November 16, 2024 @05:25PM (#42159921)
I tried to follow along with the textbook before but really struggled with the practical side - R is just another world in terms of dependency management and organisation/documentation (compared to python at least). The book had me install some version of a library that was since unsupported. So I thought I would be a nerd and do everything in python instead, but there I had other problems installing pymc. After some hours of failing I just gave up. Can anyone speak to the state of the dependencies in this edition? Has everything been updated? Versions listed? Would love to give this another shot
Re:Why (fundamental) physics is dying [video] on Saturday October 12, 2024 @08:31AM (#41818602)
I have never seen someone prefix dates with a zero like this. Why are you doing that?
Re:I've Stopped Using Box Plots. Should You? on Sunday June 23, 2024 @05:01AM (#40765865)
Sure there are alternatives and I agree with the author's criticisms overall. But boxplots are a staple in statistics, and if your audience can reasonably be assumed to have some level of statistical training then boxplots are perfectly reasonable in my opinion.
Re:I've Stopped Using Box Plots. Should You? on Sunday June 23, 2024 @04:57AM (#40765831)
Mean and variance have nothing to do with boxplots, you are mistaken.
Anyone have a non paywalled link?
Re:Google Quantum AI on Sunday April 28, 2024 @06:26AM (#40187483)
Of course, how can you possibly raise awareness without an ad campaign!