News for hackers. Stuff that matters.

sscherfke

Re:How to Use UUIDv7 in Python, Django and PostgreSQL on Saturday November 15, 2025 @06:18AM (#45936671)
I think it depends on the use case. When strict ordering of records from multiple processes is not super important and when you also need the UUID7 for other things, it may be more practical (and/or performant) to let the client compute the UUID7.

So, as usual, “it depends”. ;-)

Re:How to Use UUIDv7 in Python, Django and PostgreSQL on Saturday November 15, 2025 @06:16AM (#45936663)
If you want to a UUIDv7 key for partitioning your table by date (e.g., one partition per day or month), you need to be able to compute the partition range via the minimal UUIDv7 for a given date.

There is some discussion whether or not to add helpers for this to Python‘s uuid7 module: https://github.com/python/cpython/issues/130843#issuecomment...

Re:How Python Asyncio Works: Recreating It from Scratch on Wednesday May 08, 2024 @01:06AM (#40294510)
This sounds a lot like SimPy [1] / Simpy.io [2], but SimPy predates asycio by many years.

[1] https://simpy.readthedocs.io/en/latest/

[2] https://gitlab.com/team-simpy/simpy.io

Re:Use the XDG Base Directory Specification on Friday March 24, 2023 @10:36AM (#35289599)
appdirs has officially been deprecated.

Its successor is https://pypi.org/project/platformdirs/