Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,271 karma · joined Nov 23, 2012 (14y ago) · 6,737 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 8mo ago · link · parent

I mean you don't need to use that then. `uv` is still writing to `.venv` by default and you can activate it with `direnv` or w/e.

comment 8mo ago · link · parent

totally my point here. The actual shape of the thing starts mattering so much that at one point your metaphor is just completely useless for judging the actual tradeoffs

comment 8mo ago · link · parent

let's say I put a lock on an office door. You say "Why? Bazookas will get through the door anyways".

I don't know how I feel about this change but context does in fact matter about whether something is a good idea or not

comment 8mo ago · link · parent

uv assuming your local Python is busted to hell and back helps a lot with isolation.

Poetry's CLI would often, for me, just fall over and crash. Crashing a lot is not a fundamental problem in the sense you can fix the bugs, but hey I'm not hitting uv crashes.

pipenv was even worse in terms of just hanging during package resolution. Tools that hang are not tools you want in a CI pipeline!

The end result: `uv run` I expect to work. `pipenv` or `poetry` calls I have to assume don't work, have to put retries into CI pipelines and things like that.

comment 8mo ago · link · parent

uvs success is downstream of paying like 10 very good rust tooling developers to work on uv full time.

Full time effort put into tools gets you a looooot of time to make things work well. Even ignoring the OSS stuff, many vendors seem to consider their own libs to be at best “some engineers spend a bit of time on them” projects!

comment 8mo ago · link · parent

Poetry and friends are so bad that many people continued just using pip -r requirements.txt despite knowing about this other stuff

Poetry having users isn’t the metric for success. pip having way less users is.

comment 8mo ago · link · parent

> In ten years time people will most probably look in horror at their python software stacks tech debt that they have to maintain for the business continuity.

I regret to inform you that there are _loads_ of multi-decades-old Python stacks at this point.

On the micro level I'll be like "ugh wish I wasn't paying the costs of Python" decently enough. But on the macro level I don't regret Python stacks. At least not when looking at the alternatives.

Tho I will admit I'm a bit mystified at data science stuff in particular persisting in Python. Lots of CPU churn even if the underlying libs are all C extensions.

comment 8mo ago · link · parent

Living through it... Python 3 made a lot of changes for the better but 3.0 in particular included a bunch of unforced errors that made it too hard for people to upgrade in one go.

It wasn't until much later (I would say 3.4 or 3.5?) that we had good tooling to allow for migrating from Python 2 to Python 3 gradually, which is what most tools needed to do.

The final thing that made Python upgrading easy was making a bunch of changes (along with stuff like six) so that you could write code that would run identically in Python 2 and Python 3. That lets you do refactors over time, little cleanups, and not have the huge "move to Python 3" commit.

comment 8mo ago · link · parent

discussions might be happening on the Python forums, which are pretty active.

https://discuss.python.org/t/pep-744-jit-compilation/50756/8... here's one thing

I do think you can also just outright ask questions about it on the forums and you'll get some answers.

At the end of the day there's only so many people working on this though.

comment 8mo ago · link · parent

In Python attribute access aren't stable! `self.x` where `x` is a property is not guaranteed to refer to the same thing.

And getting rid of descriptors would be a _fundamental change to the language_. An immeense one. Loads of features are built off of descriptors or descriptor-like things.

And what you're complaining about is also not true in Javascript world either... I believe you can build descriptor-like things in JS now as well.

_But_ if you want that you can use stuff like mypyc + annotations to get that for you. There are tools that let you get to where you want. Just not out of the box because Python isn't that language.

Remember, this is a scripting language, not a compiled language. Every optimization for things you talk about would be paid on program load (you have pyc stuff but still..)

Gotta show up with proof that what you're saying is verifiable and works well. Up until ~6 or 7 years ago CPython had a concept of being easy to onboard onto. Dataflow analyses make the codebase harder to deal with.

Having said all of that.... would be nice to just inline RPython-y code and have it all work nicely. I don't need it on everything and proving safety is probably non-trivial but I feel like we've got to be closer to doing this than in the past.

I ... think in theory the JIT can solve for that too. In theory

comment 8mo ago · link · parent

...are there 300k mile Priuses out on the road and being used?

comment 8mo ago · link · parent

Oh! While this one does mention that you don't have visibility, this + weak refs seem to change the game

I remember a couple of years ago (well probably around 2021) reading about GC exposure concerns and seeing some line in some TC39 doc like "users should not have visibility into collection" but if we've shipped weakrefs sounds like we're not thinking about that anymore

comment 8mo ago · link · parent

It's interesting you mention __del__ because Javascript not only doesn't have destructors but for security reasons (that are above my pay grade) but the spec _explicitly prohibits_ implementations from allowing visibility into garbage collection state, meaning that code cannot have any visibility into deallocations.

I think __del__ is tricky though. In theory __del__ is not meant to be reliable. In practice CPython reliably calls it cuz it reference counts. So people know about it and use it (though I've only really seen it used for best effort cleanup checks)

In a world where more people were using PyPy we could have pressure from that perspective to avoid leaning into it. And that would also generate more pressure to implement code that is performant in "any" system.

comment 8mo ago · link · parent

yeah tbqh I think the biggest challenge with tooling on that front is that this really is a problem mostly limited to community projects. The problems jazzband need to solve don't exist nearly as much in a universe where everyone is in a company on some payroll

In most corporate environments while it might make sense to do N of M in the high security case it's not really a thing that people will jump for for the first... uhhh 10k employees of a company's lifetime.

comment 8mo ago · link · parent

That requires a lot of infra that isn’t built into _any_ of our tooling.

It’s not so much about decision making as it is about the practical reality that people at that level basically need at least read access to a lot of secrets.

You could say “maybe jazzband can infra its way out of those problems” but that’s a looooot of work! “N out of M consensus on making a GitHub API request to set who is a maintainer” * every single action roadies need to do

It’s not just about bad actors either. Imagine a jazzband roadie getting credentials stolen via some npm-y attack. Obviously this problem exists in the project in the current form but _that problem gets worse just onboarding people_

comment 8mo ago · link · parent

The level of trust required is immense. We’re talking about a position where you get the keys to the kingdom to a very large number of projects

I would say that having roadie level access is equivalent to having access to Django core. I have never seen a recent Django project that isn’t pulling something from jazzband

Despite this I think it’s important to highlight that even in that world jazzband had a lot of infra so that projects could do things like releases cleanly and safely (we aren’t doing direct project releases to pypi but going through jazzband infra to do the release). So release maintainers have a lot less access despite releases “coming from” Jazzband

comment 8mo ago · link · parent

This stuff stands on the foundations it's built off of. It's very hard to argue against the stoic determinism of an `ls` call.

And all the success stories I've seen in people using these tools have had a similar theme: top level might be LLM-y but you rush to get to deterministic straightforward building blocks so that you can have reliability.

That, to me, looks like writing up a bunch of small programs to help establish vocabularies and workflows to avoid just churning and getting lost in the weeds.

I'd be interested in seeing some future form of process orientation, but in the meantime.... shells in general have proven they are decently good at tying stuff together quite well.

`ls dir | grep thingy | process` gonna involve less possibility of annoying drift and churn than "run process on all the files with thingy in their name in directory"

comment 8mo ago · link · parent

Well the Macbook Air pricing in USD was always around $1000 right?

2013 MBA pricing in USD was $1100

2013 MBA pricing in JPY was 110k JPY

2026 Macbook Neo pricing in JPY is ~100k JPY

2026 Macbook Neo pricing in USD is $600

2026 Macbook Air pricing in JPY is ~140k JPY

2026 Macbook Air pricing in USD is ..~$1100

So depending on the currency either the Neo is a massively cheaper thing or filling a gap in a product line that inflation created.

I wonder how much of Apple's costs are USD-denominated. The fact that the MBA hasn't changed pricing at all makes me guess that not that much, but I don't know how manufacturing contracts work

I dunno, I find it interesting, but JPY inflation is a recent phenomenon

comment 8mo ago · link · parent

tbqh I think one can survive with a merely decent trackpad on a bus or at meetings.

I've dual run Macbooks and Thinkpads for a while and the Thinkpad trackpad really isn't that bad (the trackpoint getting randomly stuck in a non-neutral position is a common thing I've experienced though)

The nicest thing for the Macbook for me in practice (disclaimer: I don't do fancy things on the trackpad) is the size. It "feels" fancier but the thinkpad plastic works totally fine for me.

I think some Mac users overindex on the quality of like... $400 Acer laptops from 2008 or whatever as their metric for "cheap Windows laptop".

Software stuff is still garbage but lots of machines have just straightforwardly decent hardware. Apple hardware is _very very good_ but it's not like the bad old days of "I actually cannot use this trackpad" in windows land. As much

comment 8mo ago · link · parent

I still can't get over how this thing is priced the same as the 2013 Macbook Air... when looking at JPY prices.

I wonder how much of the Neo pricing wow factor is Apple taking advantage of the strong dollar vs much else that's changed on the ground (obv the processor pick is a "real thing")

comment 8mo ago · link · parent

Do you really just not get how you come off shilling this kind of stuff on a discussion talking about an aseprite fork?

The intersection of people interested in Aseprite and people wanting to just spawn this stuff out of thin air is fairly low!

comment 8mo ago · link · parent

didn't even realize Aseprite is source available!

I highly recommend paying for Aseprite, it's a very good little tool.

comment 8mo ago · link · parent

It feels like we're fairly close yet so far. Lots of newer tools do have animation and tweening of arbitrary properties but then will just have bitmap image editors instead of a built-in vector editor for example. Or just make it really hard to tie all the stuff together.

The ease at which Flash CSx would just let you draw a circle in a spot, then click on it to get its script file and immediately add a little bit of behavior is magic for prototyping

comment 9mo ago · link · parent

Apple Music, iCloud

comment 9mo ago · link · parent

I mean it's possible for there to be bad health effects from something without it outright killing everyone. This is why things like hygiene are tough! You can have terrible hygiene and still be alive for a long time.

Perhaps if Sweden adopted a different policy it would have an even longer life expectancy!

comment 9mo ago · link · parent

Neat!

The Django admin is really great. I do wish there could be a bit more extensibility hook points to hook into existing stuff, but I know a loooot of projects that hack stuff into the admin despite that (I think in particular it's a bit futzy to have things like confirmation screens on custom actions).

I think the real power of Django comes from not only having the batteries included, but almost always having the right kind of extension points in terms of methods (or template overrides) that really give you ways to quickly insert the right kinds of customization for your project. The admin existing and working so well for so long is proof of that IMO

comment 9mo ago · link · parent

Banning access to social media for kids under 18 similar to how tobacco and alcohol is banned to underage people would be the more direct line.

This argument is quite close to what gov'ts are "trying" to do here! And I tihnk you'll find very few people ammenable to the idea that we should allow cigarettes to be sold to underaged people (even if in practice they still get access).

The argument on the "don't do the social media ban" side is quite an uphill battle if you dig into this metaphor too much

comment 9mo ago · link · parent

I used to think this but spending some time learning about xargs (hell even for loops) makes me feel like this is trivial enough to stuff somewhere.

Lots of people have mentioned awkward use cases where decisions have to be made. A built in command would have to confront those and it might not be easy

comment 9mo ago · link · parent

What if you first attempted rebases of your branches? Then you would detect empty branches
1
111213
225