Ah yes, the riveting tale of Python's GIL: the most misunderstood three-letter acronym since 'LOL' 😂. The authors propose unlocking #Python #cores as though they're disarming a bomb - spoiler alert: it's #energy, not nuclear 💥. Thank goodness we have 2603.04782 pages of #academic #wisdom to light our path through the dark forest of #computational #efficiency 🌳🔦.
https://arxiv.org/abs/2603.04782 #GIL #HackerNews #ngated
Unlocking Python's Cores: Hardware Usage and Energy Implications of Removing the GIL

Python's Global Interpreter Lock prevents execution on more than one CPU core at the same time, even when multiple threads are used. However, starting with Python 3.13 an experimental build allows disabling the GIL. While prior work has examined speedup implications of this disabling, the effects on energy consumption and hardware utilization have received less attention. This study measures execution time, CPU utilization, memory usage, and energy consumption using four workload categories: NumPy-based, sequential kernels, threaded numerical workloads, and threaded object workloads, comparing GIL and free-threaded builds of Python 3.14.2. The results highlight a trade-off. For parallelizable workloads operating on independent data, the free-threaded build reduces execution time by up to 4 times, with a proportional reduction in energy consumption, and effective multi-core utilization, at the cost of an increase in memory usage. In contrast, sequential workloads do not benefit from removing the GIL and instead show a 13-43% increase in energy consumption. Similarly, workloads where threads frequently access and modify the same objects show reduced improvements or even degradation due to lock contention. Across all workloads, energy consumption is proportional to execution time, indicating that disabling the GIL does not significantly affect power consumption, even when CPU utilization increases. When it comes to memory, the no-GIL build shows a general increase, more visible in virtual memory than in physical memory. This increase is primarily attributed to per-object locking, additional thread-safety mechanisms in the runtime, and the adoption of a new memory allocator. These findings suggest that Python's no-GIL build is not a universal improvement. Developers should evaluate whether their workload can effectively benefit from parallel execution before adoption.

arXiv.org

@mei

/etc/nix/nix.conf:

#
# https://nixos.org/manual/nix/stable/#sec-conf-file
#

# Unix group containing the Nix build user accounts
build-users-group = nixbld

#max-jobs = auto
#cores = 4
max-jobs = 1
cores = 12

auto-optimise-store = true

trusted-users = [ root solonovamax @wheel ]

# nixos cache + nix-community cachix + ros cachix
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo=
# what's the difference between substituters & trusted substituters?
substituters = https://cache.nixos.org https://nix-community.cachix.org https://ros.cachix.org
trusted-substituters = https://cache.nixos.org https://nix-community.cachix.org https://ros.cachix.org

builders-use-substitutes = true

"Debí tirar más fotos", disse o Bad Bunny.

Sigo seguindo o lamento/conselho dessa letra pra não me lamentar lá na frente.

#olinda #pernambuco #nordeste #cores #colors #streetphotography #tropical #fotografia #photography

Aconteceu uma coisa curiosa: a trans flag transcendeu totalmente seu significado original (já lindo) na minha percepção.
Hoje, eu vejo e já penso nas aplicações: Pinterest, bolinho, story, legenda... TUDO.
Um símbolo tão importante de luta e orgulho também se tornou, de forma natural e bela, uma das fontes de cor e ideias mais férteis do meu cotidiano digital. Dupla função perfeita. ✨
#Símbolo #Cores #TransFlag #Ideias #CotidianoDigital

Consegui ativar um negócio aqui que "puxa" o tema do GTK para o QT. O Clementine tá menos feio agora. 🙌🏽

#linuxmint #ubuntu #gtk #qt #clementine #themes #temas #cores #skin

Mixórdia de cores

Blogue sobre o património natural e cultural da região de Sicó

A paleta de #cores da minha vida, registrada à caminho da padaria.

#Fotografia #photography #natureza #nature #tropical