编程 · 最新文章

今日新增 30 篇 · 共 2,696 篇 · 来自 79 个博客

Real Python··Real Python

The No AI Slop Manifesto: A Pledge to Own What Agents Ship

AI 摘要The No AI Slop Manifesto, announced by Dex Horthy at the AIE Code Summit 2026 in San Francisco, defines AI slop as work produced with less effort than it demands from its reader, occurring when people pass AI-generated output along without taking responsibility for its quality. Modeled after the 2001 Agile Manifesto, it contains five values, nine beliefs, and twelve resolutions committing signers to own what their AI agents ship. Critics question the effort-based definition of slop and doubt the manifesto can overcome business incentives that favor cheap AI-generated code.

Real Python··Real Python

LLM Evaluation in Python: Build an Eval Harness From Scratch

AI 摘要This Real Python tutorial teaches readers how to build an LLM evaluation harness from scratch in Python, using a customer-support bot as the working example. The framework-agnostic harness combines deterministic code checks with an LLM judge (calibrated against human-labeled examples) to score outputs across criteria like correctness, safety, helpfulness, and tone. It compares two prompt versions on the same test cases and returns a PASS, FAIL, or REVIEW release decision with an exit code suitable for CI, blocking any change that introduces new blocker failures.

Daniel Lemire··Daniel Lemire

Command-line JSON filtering at 20 GB/s

AI 摘要sjq is a new command-line tool that implements the jq filter language on top of the simdjson parser, filtering NDJSON at 3.5 GB/s on a single thread (about 37 times faster than jq) and up to 20 GB/s with multiple threads. It is highly compatible with jq, passing 728 of jq's 781 tests and supporting most of its features, while adding extras like the --fractured option for readable, table-like JSON output. sjq can be installed on Linux, macOS, and Windows via an install script, Homebrew, or Scoop.

Ned Batchelder··Ned Batchelder

Human sorting, hardened

AI 摘要The article describes fixing a long-tail bug in the author's 'human sorting' function, where file names containing numeric runs longer than Python's 4300-digit int conversion limit (added in 2022 to prevent denial-of-service attacks) caused a TypeError because ValueError was misinterpreted as 'not a number.' The fix converts only the digit parts identified by re.split, returning float('inf') for over-long digit runs, while noting that isdigit()-based approaches fail due to Unicode discrepancies with the \d regex. A later update presents Jeff Epler's cleverer alternatives, including parsing digit runs as base 16 (which has no length limit and sorts identically) or using (length, value) tuples, though the author hasn't benchmarked them.

Planet PostgreSQL·

Ismaël Mejía: PostgreSQL 19 is now supported in pglayers

AI 摘要pglayers now supports PostgreSQL 19, offering 62 extension layers plus ready-to-use Full and Azure profile images built for both amd64 and arm64 on the official postgres:19 GA image. Users can run a preconfigured profile with extensions like pgvector, PostGIS, pg_cron, and pg_lake, or compose smaller images by copying individual prebuilt layers without compiling extensions themselves. The article also notes that some extensions (such as pg_duckdb and timescaledb) are not yet available for PG19, and cautions that switching image tags from PG17/18 to 19 requires treating it as a proper major-version upgrade with extension availability checks and data backup.

Real Python··Real Python

Quiz: The No AI Slop Manifesto: A Pledge to Own What Agents Ship

AI 摘要This article introduces a quiz based on The No AI Slop Manifesto: A Pledge to Own What Agents Ship, designed to test readers' understanding of the manifesto's key ideas. The quiz covers how the manifesto defines slop, why producing work has become cheaper than reviewing it, and what owning AI-generated code means in practice. It also revisits which problems linters and type checkers catch, why slop compounds in a codebase, and what critics dispute.

Real Python··Real Python

Quiz: LLM Evaluation in Python: Build an Eval Harness From Scratch

AI 摘要This article introduces a quiz that tests your understanding of building an LLM evaluation harness from scratch in Python. It revisits key concepts such as translating product expectations into explicit criteria, deciding when to use code checks instead of an LLM judge, and verifying and calibrating a judge against human labels. The quiz also covers how a release gate can be used to compare two prompt versions.

Planet PostgreSQL·

Peter Eisentraut: PgBouncer visits the CNCF Security Slam

AI 摘要PgBouncer, a PostgreSQL connection pooler, participated in the Fall 2026 CNCF Security Slam, a one-month virtual event where projects earn badges for improving their security posture based on OpenSSF guides like the OSPS Baseline. The maintainer earned 4 of 6 badges by adding a security-insights.yml file, expanding documentation (CONTRIBUTING.md, SECURITY.md), writing a security self-assessment, and automating baseline scanning, while the remaining badges were deemed unrealistic for a mature project within one month. Follow-up work continues on tasks such as signed releases, systematic static analysis, and removing Windows binaries.

Swizec Teller·

Hillclimbing your prompts

AI 摘要The article describes using hillclimbing to recursively self-improve a prompt for a blog article category classifier. After a few iterations, the classifier's precision improved dramatically from 28.7% to 70.6%, though recall slightly decreased from 51.7% to 47.3%. Overall, the author reports the approach worked wonderfully, with F1 score rising from 36.9% to 56.7%.

Planet PostgreSQL·

Hollis Varden: Eleven small measurements on PostgreSQL 18: joins, casts, TOAST and types

AI 摘要The author ran eleven small benchmarks on PostgreSQL 18 covering joins, index use, TOAST, data types, timestamps, counting, pgbench protocols, and OR versus UNION. Key takeaways include that EXISTS and IN are equally fast semi-joins while DISTINCT-based JOIN is much slower, that wrapping indexed columns in functions or type mismatches (like a numeric literal against a bigint key) prevents index use, and that TOAST storage, text over char(20), timestamptz over text, and prepared statements all measurably improve performance. A couple of results changed how the author writes queries, while most simply confirmed conventional wisdom.

Planet PostgreSQL·

Hollis Varden: Hash joins, planner statistics and index upkeep on PostgreSQL 18

AI 摘要The author ran micro-benchmarks on PostgreSQL 18 covering hash joins with varying work_mem, planner statistics on skewed and correlated columns, HOT updates on indexed columns, index bloat after deletes, index build methods, and three ways to index jsonb. Surprisingly, a 4MB work_mem hash join that spilled to temp files beat the larger single-batch configurations, and CREATE STATISTICS dependencies fixed badly underestimated correlated-column queries. For jsonb, GIN jsonb_path_ops was over 10x faster than jsonb_ops for containment queries, while a B-tree on the extracted field only helped the ->> comparison.

Svelte Blog·

Celebrating ten years of Svelte

AI 摘要The Svelte project celebrated its ten-year anniversary at the third in-person Svelte Summit in Ljubljana, featuring two days of talks, demos, and announcements. Key highlights include experimental custom renderers, progress toward production-ready Async Svelte, the Rust-based rsvelte toolchain, Svelte becoming a core Storybook framework, and mdsvex reaching version 1.0. Despite expectations of subdued enthusiasm in the age of AI-driven coding, the event had fantastic energy, with many announcements relevant to agentic development and the authors feeling Svelte's best years are still ahead.

Armin Ronacher··Armin Ronacher

Abolish Lock Poisoning

AI 摘要The article argues that Rust's mutex poisoning feature—where a mutex becomes permanently unusable after a panic while locked—should be removed or made opt-in, claiming the author has never seen code that handles poisoned locks correctly in practice. Real-world examples from RLS, Mozilla, Tokio, rust-analyzer, and even the standard library itself show poisoning causing deadlocks, cascading panics, and prolonged outages rather than enabling recovery, with most major Rust projects already using non-poisoning locks. The author proposes stabilizing std::sync::nonpoison as the default and offering a separate Poison wrapper for those who genuinely want poisoning semantics.

Simon Willison··Simon Willison

Three LLM inflection points in twelve months

AI 摘要The author identifies three major LLM inflection points over the past twelve months: the November 2025 release of Claude Opus 4.5 and GPT-5.1 models, which made coding agents like Claude Code and Codex reliably useful; the June/July arrival of 'Fable class' models such as Claude Fable 5, which are remarkably proactive and capable; and the September/October emergence of strong 3D modeling and game development skills, exemplified by Opus 5.5's apparent ability to understand what makes a game fun. The author also weighs whether Fable 5.2 represents a fourth inflection point, since it can build nearly any software that can be clearly described. They conclude that software development has transformed so drastically that they no longer expect to write most code by hand.

Murat Demirbas··Murat

Meaningful Human-in-the-Loop Checking of GenAI Synthesis for Restricted Languages

AI 摘要The article reviews an ECOOP 2026 paper introducing PICK, a human-in-the-loop tool that resolves ambiguity in LLM-generated specifications for restricted languages (regexes, LTL, access-control policies) by deriving multiple candidate formulas, sampling concrete scenarios where the candidates disagree, and asking users to accept or reject them until only the correct candidate survives. Experiments showed PICK substantially improved accuracy over reading formulas directly (e.g., 60–72% versus 22% on regex tasks) and made users more likely to correctly reject all wrong candidates. The author also applies the same idea in reverse to build 'Do you Paxos?', an interactive tutor that teaches correct Paxos by quizzing users on behaviors distinguishing it from common misconceptions.

Matt Godbolt··Matt Godbolt

Advent of Microarchitecture 2026

AI 摘要The author announces the Advent of Microarchitecture 2026, a YouTube series in lieu of the previous Advent of Compiler Optimisations, which was too time-consuming (about 10 hours per episode) to produce again. The new series consists of low-effort, ad-libbed videos recorded straight to camera with minimal editing, some help from an LLM, and as much automation as possible. The introduction video is already available, and daily videos will be released each morning throughout December.

.NET Blog··Luis Quintanilla

Introducing DocumentExtractionClient (preview): Extract documents in .NET

AI 摘要Microsoft has introduced a preview of DocumentExtractionClient in Microsoft.Extensions.DocumentExtraction, a unified .NET API that extracts structured content (headings, paragraphs, tables, figures, and sources) from PDFs, scans, images, and Office files. Starter providers in the .NET AI Community Toolkit—including PdfPig, vision language models via IChatClient, Azure Content Understanding, Azure AI Document Intelligence, and Mistral OCR—are interchangeable, so code can swap providers without rewrites, following the familiar IChatClient pattern with support for middleware and custom providers. Extracted documents can feed into Microsoft.Extensions.DataIngestion pipelines to power context engineering, agentic workflows, and retrieval-augmented generation (RAG), with single-file C# samples available in a GitHub repository.

Trey Hunner··Trey Hunner

Python Black Friday & Cyber Monday sales (2026)

AI 摘要This is the author's ninth annual roundup of Python-related Black Friday and Cyber Monday deals for 2026, listing discounts from creators such as Python Morsels, Talk Python, Data School, Reuven Lerner, Brian Okken, and Mike Driscoll, along with Django-related sales compiled by Adam Johnson. The author also highlights their own sale offering lifetime access to Python Morsels, an exercise-driven Python skill-building platform, for $649 through November 30. Readers are invited to submit additional Python-related deals to be added to the list.

Simon Willison··Simon Willison

GPT 6.2 Astra Solves a Historical Mystery

AI 摘要GPT-6.2 Astra autonomously identified the creator of an anonymous 1808 sketchbook at Yale's Beinecke Library in just 22 minutes, using publicly available sources and uncovering a previously little-known archival source—a find of significance to Canadian and fur trade historians. History professor Mark Humphries suggests historians may face a mild 'Deep Blue moment' of crisis as agentic AI systems demonstrate capabilities beyond human researchers. However, he argues the impact will be less profound than in mathematics, since historical writing inherently requires a humanistic, interpretive approach rather than the pursuit of a single universal truth.

The Old New Thing··Raymond Chen

What happens to entries in the CoreApplication Properties when the source apartment shuts down?

AI 摘要This article explains that entries added to CoreApplication.Properties do not expire when the COM apartment that added them shuts down; they remain accessible, as demonstrated by a code example where a value added on a secondary thread survives after that thread's apartment is uninitialized. However, the entries do expire when the last apartment in the process shuts down, because that is when COM shuts down entirely for the process.