Bite Code!'s Avatar

Bite Code!

@bitecode.dev.bsky.social

Been using Python since 2.4 and apparently still can't shut up about it. Also have a blog on bitecode.dev.

1,516 Followers  |  32 Following  |  853 Posts  |  Joined: 04.07.2023  |  1.7408

Latest posts by bitecode.dev on Bluesky

Reading the shell installation script generated by cargo-dist (e.g: to curl install uv: github.com/astral-sh/uv...) is very interesting. It's a course in defensive programming, shell compat gymnastics and how messy the ecosystem is.

And this is still easier than making and signing a package.

08.08.2025 09:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Cursed Knowledge | Immich Things we wish we didn't know

Immich's log of cursed knowledge learned while building the project

immich.app/cursed-knowl...

Love the idea, and I'm going to implement that in all my future projects, albeit not make it public

08.08.2025 08:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Also notes that if you need recovery yourself, you better need it before those 4 shots are made. And they are likely made early in the day in batch.

07.08.2025 13:58 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The middle ground would be:

app, routes, conf = App.main_entry_point()

@routes.get()
def endpoint():
....

Which would be a shortcut for:

conf = Config()
app = App(conf)
apps.router.app("where", routes)

With optionally routes.subset()

Routes should not be tied to endpoints.

07.08.2025 13:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Fascinating insight on email 2FA:

news.ycombinator.com/item?id=4482...

07.08.2025 13:41 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
I can't believe I find this gem... I can't believe I find this gem https://github.com/Rhodiola-vs-Berberine on GitHub of all places. Google doesn't...

Welp, my trial of subreply has been short. This is what the creator of the service posted last:

subreply.com/reply/30294

Too bad, I liked the concept.

07.08.2025 12:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

OF did half of that: they own a huge part of their payment infra.

It's harder to do for the card service as it's a lot of partnership you have to secure with a lot of banks, but over 10 years it's doable, and it's certainly super profitable.

07.08.2025 11:13 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Python 3.13.6 has been released A day behind schedule in order to fix some last-minute issues, but it’s done: the latest version of the best[1] Python version is now available! Python 3.13.6 This is the sixth maintenance release ...

Python 3.13.6 has been released:

"3.13.6 is the sixth maintenance release of 3.13, containing around 200 bugfixes, build improvements and documentation changes since 3.13.5."

discuss.python.org/t/python-3-1...

#Python313 #Python #CPython #release

07.08.2025 08:15 β€” πŸ‘ 15    πŸ” 7    πŸ’¬ 0    πŸ“Œ 0

20 years ago, I read an old guy ramble on how he made scripts to move old files into temp archives. I laughed inside. What an old smuck move!

Yet today I wrote cleandesk .sh to move the stuff from my desktop to a daily archive, cleandl .sh to a yearly dl archive.

I apologize old man. You knew.

06.08.2025 11:34 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
foo foo. GitHub Gist: instantly share code, notes, and snippets.

You know how you can "uv run" python code from a text file using just a URL?

No? Well, you can:

uv run pastebin.com/raw/RrEWSA5F

And since yesterday, you can even run a github gitst:

uv run gist.github.com/charliermars...

06.08.2025 09:44 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Support including dependency executables (e.g., `--include-deps`) in `uv tool install` Β· Issue #6314 Β· astral-sh/uv hi, congrats on 0.3.0! I've noticed one very useful pipx option that uv tool is currently missing: --install-deps. It means that it also adds the CLIs of packages it depends on. This is crucial for...

🚨🚨🚨 uv has fixed my pet issue github.com/astral-sh/uv/issue... and `uv tool install ansible --with-executables-from ansible-core` works now! 🚨🚨🚨

for us, that was the last blocker before going all-in on uv.

06.08.2025 05:22 β€” πŸ‘ 18    πŸ” 4    πŸ’¬ 1    πŸ“Œ 0
Preview
The hiring test that defeated AI For a few months

Many of us looked for the Grail of a hiring test that defeats AI. I posted a few months ago that I found it, then it went away.

Now I can reveal what it was.

www.bitecode.dev/p/the-hiring...

05.08.2025 15:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

You get motivation to try Coq, then rust and then gleam and then zig. And what about Odin, and then Hexa, Nomos, etc. And oh, a weird array language! Plus there is always the temptation to try old stuff too. Awesome time to live, but man, "choosing is refusing" has never been so real

05.08.2025 10:26 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Datastar The hypermedia framework.

I'm a big fan of HTMX, but just learned about DataStar (data-star.dev) and I'm intrigued. Has anybody given it a try? What's your take on it?

05.08.2025 10:10 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
PHP 8.5 Adds Pipe Operator: What it means The PHP Foundation β€” Supporting, Advancing, and Developing the PHP Language

PHP 8.5 adds pipe operator

thephp.foundation/blog/2025/07...

It's lovely to see how PHP keeps growing. It's far from what it was when I used to code with it in V3. I really thought it would be lost in its bad design, but the core devs kept at it, and it is, indeed, a pretty decent language now.

05.08.2025 08:41 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

asyncio: a library with too many sharp corners

An explanation of some major issues with asyncio.

https://sailor.li/asyncio

05.08.2025 03:15 β€” πŸ‘ 3    πŸ” 2    πŸ’¬ 0    πŸ“Œ 1

This is indeed infuriating, especially since it's sufficiently close to a real report meaning you can't distinguish it from a real issue without investing time and effort in doing so.

This is taking away precious skilled resources out of a project that helps all humanity.

Parasites.

04.08.2025 09:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Add Virtual Threads to Python tl;dr Java has virtual threads. Virtual threads are a better way of doing concurrency than Python’s async and await. We should add virtual threads to Python. Virtual Threads Virtual threads were adde...

yeah VTs are a big maybe, but Mark Shannon has been advocating for them for a while: discuss.python.org/t/add-virtua...

04.08.2025 04:10 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
What's up Python? Unpacking in Comprehension, Android Wheels, and uv is a big boy now... July, 2025

What's up Python? Unpacking in Comprehensions, Android Wheels, and uv is a big boy now...

www.bitecode.dev/p/whats-up-p...

01.08.2025 11:53 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Build a tool with Rust, then integrate it into Python with the amazing PyO3 πŸ¦€ 😍 πŸ“ˆ

25.07.2025 12:27 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
Preview
PyPI Users Email Phishing Attack - The Python Package Index Blog PyPI Users are receiving emails detailing them to log in to a fake PyPI site.

Pypi users have been targeted by phishing attacks:

blog.pypi.org/posts/2025-0...

If you see a mail from "noreply@pypj.org", trash it.

01.08.2025 10:42 β€” πŸ‘ 2    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
Why This Old Python Performance Trick Doesn’t Matter Anymore A deep dive into Python’s name resolution, bytecode, and how CPython 3.11 quietly made a popular optimization irrelevant.

If you haven't read the excellent "Confessions of a Code Addict" blog, they have a great article right now about why the old "local alias" trick to speed up Python code is not needed anymore:

blog.codingconfessions.com/p/old-python...

01.08.2025 10:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ah yeah, and loosing hairs, and making noise, and breathing. Those damn humans biologing everywhere.

31.07.2025 08:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

This is the proper way, but only if:

- You deal with modern Python. Old systems using src or eggs may have a different experience.
- You deal with installed packaged. It won't work for free with your own or colleagues code if it's not packaged.

30.07.2025 17:29 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

between PEP 649 and free-threading, Python 3.14 is truly my least favorite release in a long time but I guess few are as unlucky as me to be sandwiched with their projects right between two impact zones.

be patient with your maintainers, this is a rough one

30.07.2025 15:47 β€” πŸ‘ 9    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Client Challenge

y'all have no idea how much work on all levels went into this little beta release πŸ˜…

30.07.2025 05:40 β€” πŸ‘ 4    πŸ” 2    πŸ’¬ 2    πŸ“Œ 0
Bite Code @bitecode Quality and to-the-point bites about the Python world. And other tech stuff. Get more on bitecode.dev

I'm going to give this SubReply thing a go so you can find me here as well:

subreply.com/bitecode

Subreply is peculiar. It's a very minimalist microblogging platform, no support for image and a very barebones design. Like a cross over between HN and early twitter.

29.07.2025 07:47 β€” πŸ‘ 0    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Description by Claude Sonnet 4: This is a whimsical illustration of a white duck or goose riding a red bicycle. The bird has an orange beak and is positioned on the bike seat, with its orange webbed feet gripping what appears to be chopsticks or utensils near the handlebars. The bicycle has a simple red frame with two wheels, and there are motion lines behind it suggesting movement. The background is a soft blue-gray color, giving the image a clean, minimalist cartoon style. The overall design has a playful, humorous quality to it.

Description by Claude Sonnet 4: This is a whimsical illustration of a white duck or goose riding a red bicycle. The bird has an orange beak and is positioned on the bike seat, with its orange webbed feet gripping what appears to be chopsticks or utensils near the handlebars. The bicycle has a simple red frame with two wheels, and there are motion lines behind it suggesting movement. The background is a soft blue-gray color, giving the image a clean, minimalist cartoon style. The overall design has a playful, humorous quality to it.

Description by Claude Sonnet 4: This image shows a cute, minimalist illustration of a snowman riding a bicycle. The snowman has a simple design with a round white body, small black dot for an eye, and an orange rectangular nose (likely representing a carrot). The snowman appears to be in motion on a black bicycle with two wheels, with small orange arrows near the pedals suggesting movement. There are curved lines on either side of the image indicating motion or wind. The overall style is clean and whimsical, using a limited color palette of white, black, orange, and gray against a light background.

Description by Claude Sonnet 4: This image shows a cute, minimalist illustration of a snowman riding a bicycle. The snowman has a simple design with a round white body, small black dot for an eye, and an orange rectangular nose (likely representing a carrot). The snowman appears to be in motion on a black bicycle with two wheels, with small orange arrows near the pedals suggesting movement. There are curved lines on either side of the image indicating motion or wind. The overall style is clean and whimsical, using a limited color palette of white, black, orange, and gray against a light background.

Pretty decent pelicans from the new GLM-4.5 and GLM-4.5 Air models. Both models are MIT licensed, released by Chinese AI lab Z.ai this morning
simonwillison.net/2025/Jul/28/...

28.07.2025 18:00 β€” πŸ‘ 125    πŸ” 7    πŸ’¬ 12    πŸ“Œ 2

For the first time, I have a game that runs flawlessly on Linux, but is buggy on Windows.

I'd post a pika face, but I'm genuinely surprised.

28.07.2025 16:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

TIL, Cloudflare 1.1.1.3 blocks adult content. So if you have kids, you can just set their device DNS to that if it's a concern to you.

28.07.2025 15:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@bitecode.dev is following 20 prominent accounts