Show newer

@simon @konstin Both of those assume that you have pip and also Python, which is already too late to be doing it "right", so you may as well not recommend pip installing it at all, or just say, "this can be installed with pip or uv" or something.

Alternatively, you could just say, "Easiest way to install is uv tool install aider-chat", possibly with a link on how to install uv. I personally would be installing uv as a top level tool through the OS.

One of the bigger problems with the system install is that it moves when Python updates, which I suspect will break a pip installed uv, but it wouldn't be a problem for a system installed uv.

@konstin @simon Yeah, I have been using `uv` a bit more lately. My objection here is that I didn't think this "pip install a thing that installs and calls uv" is buying you anything.

The person needs to know enough to use pip, then the installer itself gets installed into some global environment, just to install uv into that same environment?

I don't think that anyone willing to use pip will have a hard time with uv, and it seems that uv has a much better "default" experience for people uninterested in finding out what is going on under the hood.

@webology @simon I mean you don't have to bootstrap if you have uv, right? Install uv, possibly `uv python install`, then `uv tool install <my tool>`.

@simon The biggest problem I think people have and possibly will continue to have is "where do I get my Python". The system python is not a good thing to use for random stuff.

I haven't looked much into how `uv` handles installing and managing Python versions for you, but if it's halfway decent, then you probably don't want to abstract over that anyway, you want to tell people, "Install `uv` as a system package, then use it to install `aider`".

@simon That still requires you to `pip install` something in some environment, no? I feel like having a random installer with a dependency on `uv` in your (system?) python is not a good side-effect of this.

Better to have people install `pipx` and then use that to install your CLI tool. It's got the same "now pipx has to live in my global system directory" problem, but at least `pipx` is the *only* think you need there.

See you all in 29 weeks when every human on earth is watching my son play Minecraft or Portal 2.

Show thread

My son's first video game stream had 1 viewer. The second one had 2, and today I saw 4. Now, I don't want to be premature, but I think I can recognize an exponential trend when I see one...

@hynek Though also I won't be offended if you want to go to someone else's talk, or if you don't want to go to any talk at all, or if you don't even want to go to Pittsburgh. I'm pretty easy-going that way ☺

Show thread

Oh boy, my time slot at is at the same time as @hynek. Well, someone's got to be scheduled against these fantastic speakers, I don't mind it being me. 😅

If you want to go to Hynek''s talk instead of mine, I wont be offended 😛

@nowis Ah, I actually figured this out, it had nothing to do with running it from another script, which already works perfectly.

@elthenerd I have been doing that for about 12 years now. I have a dock that I connect to all my big peripherals and it is basically my KVM. It is... fine. The last thing I added is a Bluetooth receiver so that the headphones are always connected to the thing connected to the dock, which is nice, but there are challenges.

I generally make sure all work notifications are going to the work phone and I try to always have that on me during work hours. I still miss some stuff. If I could get that hooked up to my watch I would probably not miss anything anymore.

Happy to give more details about anything if you have questions.

hey folks, anyone have tips on how to navigate a world of having to completely use separate hardware for work things and non-worik things?

or tips to remind oneself to check the other device (phone, laptop) so you don't forget to do something?

@gytisrepecka @jack That still seems materially different from the thing Apple was doing, no? Apple was going to scan your images and report you for potential CSAM. This thing says it uses an on-device model to detect nudity and notify you that an image contains nudity before showing it to you or before you send it to someone.

@pythonbytes @mkennedy
Hi! Re: youtube.com/live/yve8JFJTyNA&t

The stdlib does know what .txt and .html is, scroll down 60 lines and you'll see a mapping of 170 extensions to 116 MIME types:
github.com/python/cpython/blob

>>> import mimetypes
>>> mimetypes.guess_file_type("my.txt")
('text/plain', None)
>>> mimetypes.guess_file_type("my.html")
('text/html', None)

The stdlib checks the OS database first, otherwise it uses the default mapping.

As someone who has been hoarding pebbles for some time now, I am very excited by this new development: repebble.com/

If it has an always on screen and physical buttons on the side, I'm in!

If your program is leaking memory (or CUDA memory, or file descriptors, or really any limited resource), one way to identify the problem is to use your test suite to identify specific problem APIs. I demonstrate this using pytest fixtures:

pythonspeed.com/articles/ident

#python #pytest #testing

@brettcannon Thank you for your efforts with this. I feel like I want to boost this because you posted it to publicize it, but I feel like the relevant people have already weighed in and people will adopt whatever you do, so even though I don't plan to participate myself, I am vicariously exhausted just thinking about this thread getting a big audience. 😛

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.