atlas news
Peterbe : Python
24 july
16h48
Claude Opus is 10x faster than OpenAI GPT 5 at non-streaming completions
Claude is much faster than OpenAI gpt-5 and also faster than gpt-5-mini
19 july
20h01
Best Django Redis configuration for speed and size
lzma compresses the most and zlib is about as fast as zstd in django redis as compressor.
14 july
13h14
How to use a list tuple array in Django with a raw SQL cursor
This does not work:from django.db import connectionlist of values [1, 2, 3]with connection.cursor() as cursor: cursor.execute("""...
01 april
13h20
pytest import file mismatch
Make sure your test files in a pytest tested project sit in directories with a init .py
06 march
15h27
logger.error or logger.exception in Python
Consider this Python code:try: 1 0except Exception as e: logger.error("An error occurred while dividing by zero.: %s", e)The output of this...
18 december
09h46
Autocomplete using PostgreSQL instead of Elasticsearch
Here on my blog I have a site search. Before you search, there’s autocomplete. The autocomplete is solved by using downshift in React and on the...
15 december
23h37
Comparison of speed between gpt-5, gpt-5-mini, and gpt-5-nano
gpt-5-mini is 3 times faster than gpt-5 and gpt-5-nano.
12 november
12h42
Using AI to rewrite blog post comments
Using AI to correct and edit blog post comments as part of the moderation process.
10 october
13h07
In Python, you have to specify the type and not rely on inference
Unlike TypeScript, if you give a variable a default, which has a type, that variable is implied to always have the type of the default. That’s not...
28 august
12h11
Faster way to sum an integer series in Python
You can sum a simple series with n(n 1) 2
1791787504