Tech News
← Home  ·  All topics

Python

33 GoKawiil briefs on this topic

Study Finds Async/Await Behaves Differently Across Seven Language Runtimes

A research paper titled 'A Design Space Exploration of Async/Await' tested a simple fire-and-forget logging program across seven modern async runtimes and found four distinct output patterns. The authors report that across three variations of the same small program, no two runtimes ever produced identical results, despite all using the same async/await keywords.

Researchers use AlphaFold database to identify TM184C as a GPCR-like regulator

A research team mined all 214.5 million structure predictions in Google DeepMind's AlphaFold database to search for undiscovered 7TM (seven-transmembrane) folds resembling G-protein-coupled receptors. Using the rhodopsin structure as a reference and the TM-align algorithm, they identified TM184C as a previously unrecognized GPCR-like protein involved in regulating cell-to-cell exchange and autophagy. The analysis required processing 24 tebibytes of compressed structural data on university supercomputing clusters.

Python dict/set operations can degrade to O(n) time under crafted hash collisions

A technical analysis by Valentin Ignatev, discussed by a Python performance blogger, shows that Python's set and dict data structures, though usually treated as constant-time O(1) for lookups and insertions, can be forced into quadratic-time behavior. By constructing integers that share the same hash value (using a Mersenne prime modulus), it's possible to trigger repeated hash collisions that slow insertion and lookup dramatically as the collection grows.

Developer builds a working Python interpreter in just 1024 bytes of C

Austin Z. Henley, a Microsoft engineer, built a minimalist Python interpreter written in C that fits within 1024 bytes of code, after an initial attempt at 512 bytes proved too small. The interpreter supports a limited subset of Python syntax—including def, colons, indentation, and parenthesis-free if statements—enough to run a FizzBuzz program, but skips CPython's full tokenizing, AST, and bytecode pipeline in favor of global variables and a fixed-length array.

New Tool Matches HN's Hiring and Job-Seeker Threads Automatically

A developer built and shared 'HN Match Maker,' a tool that pairs listings from Hacker News's 'Who's Hiring?' thread with candidates from its 'Who Wants to Be Hired?' thread. Among the sample matches surfaced was Rinse, which is hiring a Full-Stack Software Engineer and an IT Associate with salaries ranging from $60k to $200k, seeking skills in React, TypeScript, Python and Django.

Python 3.15 alpha adds lazy imports via PEP 810, new flake8-lazy tool helps libraries adopt it

Python 3.15a7 now supports lazy imports, a feature described in PEP 810 that delays loading modules until they are actually used, speeding up things like CLI startup and --help commands. Unlike a previous failed attempt at automatic lazy imports, this version requires library authors to explicitly opt in, so the author built a helper tool called flake8-lazy to automate the necessary code changes.

Broadcom's Tanzu Unit Launches TrueSource to Curate Open-Source Libraries

Broadcom is rolling out an initiative called TrueSource under its Tanzu division to vet and secure open-source components used alongside its platform, covering Spring, RabbitMQ, and various Java, Python, and Node.js libraries. Tanzu VP Purnima Padmanabhan said the company builds and curates these artifacts itself, ensuring they meet a reference architecture and remain supportable, while a VMware spokesperson added that Broadcom will contribute fixes upstream and defer to community maintainers as the ultimate source of truth for projects it doesn't directly maintain.

Developer Details Grayscale Phone Setup to Curb Compulsive Scrolling

A developer describes overriding a self-imposed website blocker for 444 minutes and using it as the turning point to rebuild his relationship with distracting apps. Rather than quitting YouTube, Reddit and LinkedIn, which he considers genuinely useful, he redesigned his phone to strip away addictive design cues, including switching the display to grayscale and forcing browser use instead of apps.

fugue-labs releases monty-go, a pure-Go wrapper for running LLM-generated Python

fugue-labs published monty-go, an open-source Go library that embeds Pydantic's Monty Python interpreter compiled to WebAssembly and run via wazero. It lets Go programs execute LLM-generated Python code in an isolated WASM sandbox without containers, CGO, or subprocesses, pausing execution whenever the script calls an external function so Go code can handle it and return control.

UCLA researchers build toy version of new query language Prela

Researchers at UCLA's RePL lab are developing Prela, a query language that replaces SQL's multi-column tables with simple binary relations of just two columns. A tutorial shows how a wide table, such as one listing movie IDs, titles and years, can be broken into three binary relations, each pairing a row number with a single column's value, and demonstrates a movie-search query that takes 11 lines in Prela versus more than 20 in equivalent SQL.

Writer tests Claude's Opus 4.8 coding model with absurdist 'gremlin-infested' todo-list app prompts

A developer experimented with Anthropic's Claude (Opus 4.8, 'ultracode' auto mode) by writing single-shot prompts asking it to build a mid-century, country-club-styled todo-list app in Python. The prompts embedded a surreal backstory involving a vengeful gremlin developer and warring Dutch Realist and Flemish Baroque design philosophies, testing how the AI handles layered, whimsical creative constraints alongside real coding tasks.

OpenAI Python SDK switches default HTTP client to HTTPX2

OpenAI has updated its Python SDK to use HTTPX2 instead of HTTPX for both synchronous and asynchronous HTTP clients, with HTTPX2 now installed automatically alongside the openai package. Existing API calls, streaming, retries and timeout settings keep working without code changes, but the SDK no longer installs the httpx or certifi packages by default.