编程 · 最新文章

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

The Old New Thing··Raymond Chen

What happens when you put a non-agile object in the CoreApplication Properties?

AI 摘要When a non-agile object is stored in CoreApplication.Properties, it is wrapped via RoGetAgileReference, and the reference is released when the creating apartment shuts down, destroying the object. The key-value pair remains in the Properties collection, so HasKey() still returns true, but attempting to retrieve it fails with E_INVALIDARG because the entry is a poisoned reference to an already-destroyed object. Such an expired entry cannot be accessed; it can only be removed.

Planet PostgreSQL·

Cornelia Biacsics: Contributions for week 46

AI 摘要This report lists the contributors to PGConf.Asia 2026, held from 17-18 November 2026, including organizers, speakers, lightning talk speakers, program and Code of Conduct committee members, social media team, volunteers, and IT system staff. During the same week, PostgreSQL talks were also delivered at DOAG 2026 by Pavlo Golub, Roland Stirnimann, and Stefan Becker (17-19 November). Additionally, Sami Imseih spoke at the Illinois Prairie PostgreSQL User Group meeting on 18 November, and Gülçin Yıldırım Jelínek presented at the code::dive 2026 conference on 19 November.

Real Python··Real Python

Quiz: Python and TOML: Read, Write, and Configure with tomllib

AI 摘要This article introduces a quiz that tests your understanding of reading, writing, and configuring TOML files in Python. It revisits TOML syntax—including key-value pairs, tables, arrays, and dates—and covers loading TOML with tomllib, writing it with tomli_w, and editing existing documents with tomlkit without losing comments or formatting.

Simon Willison··Simon Willison

sqlite3_rsync: Database Remote-Copy Tool For SQLite

AI 摘要sqlite3_rsync is a tool for SQLite that can copy a snapshot of a database over an SSH connection to another machine without first creating a full local copy, unlike the backup API or VACUUM INTO which require enough disk space for a duplicate. It also synchronizes an existing remote copy without re-transmitting the entire database, working like rsync by exchanging cryptographic hashes of pages so that only differing page content is sent. Even when the source and replica differ substantially, the extra bandwidth used for hash exchanges is minimal—at most a few percent.

Simon Willison··Simon Willison

The New York Times warns photographers not to update Photoshop over AI features

AI 摘要In a Hacker News comment, the author recounts how a New York Times photographer who took their picture refused to retouch images beyond cropping and balancing, explaining that the paper presents photos as they were taken. Rather than editing, the photographer invested time in finding the best natural lighting for the shots. The author notes that NYT treats newspaper photography as photojournalism, which explains its warning to photographers against updating Photoshop over its AI features.

Planet PostgreSQL·

Jan Kristof Nidzwetzki: Barriers, Volatile, and Atomics: How PostgreSQL Orders Memory Accesses

AI 摘要This article explains how compilers and CPUs reorder memory accesses for performance—through pipelining, instruction scheduling, and out-of-order execution—and demonstrates with a writer/reader example how such reordering can break correctness when PostgreSQL processes share memory across CPU cores. It introduces PostgreSQL's barrier macros such as pg_compiler_barrier(), showing that a compiler barrier prevents code reordering but emits no CPU instructions, meaning hardware-level barriers are still needed to stop CPU reordering. The article sets up a deeper discussion of memory barriers, atomic operations, volatile variables, and the differences between x86 and ARM memory models.

PostgreSQL News·

Code of Conduct Committee Seeking New Volunteers

AI 摘要The PostgreSQL Community Code of Conduct Committee, with the Core Team's approval, is seeking up to 3 volunteers to serve for the 2027 term (January 1 - December 31, 2027), with a goal of diverse representation across countries and demographics. The estimated time commitment is 5 to 10 hours per month, potentially more depending on the number of incident reports. Interested applicants should complete the provided questionnaire and email their responses to coc@postgresql.org by December 7 at 5:00 PM UTC.

Simon Willison··Simon Willison

Quoting Scott Aaronson

AI 摘要Scott Aaronson claims that we are on the verge of discovering an entire new continent of mathematical truth, rather than merely one-off solutions to individual complexity theory questions. He likens this breakthrough to van Leeuwenhoek first pointing a microscope at pondwater or Galileo turning a telescope to the stars. The quote conveys how dramatically our ability to resolve the complexity-theoretic universe, and mathematical truth beyond it, has recently improved.

Simon Willison··Simon Willison

datasette-charts 0.3a0

AI 摘要The 0.3a0 release of datasette-charts introduces chart annotations, letting users add lines, shaded areas, labels, or any combination of the three to rendered charts. Annotations can be adjusted through the chart builder UI in Datasette Lite, and with the Datasette Agent plugin installed, the agent can build annotated charts automatically from text prompts.

JetBrains Blog··Ksenia Shneyveys

Kotlin Heroes: Episode 15 – Anniversary Edition

AI 摘要Kotlin is celebrating its 15th anniversary with the 15th episode of Kotlin Heroes, a series of online programming contests where participants solve algorithmic problems in Kotlin. The practice round opens on December 1, 2026, and the main contest takes place on December 8, 2026, offering cash prizes for the top three finishers and exclusive anniversary T-shirts for the top 50 participants plus a raffle for others who solve at least one problem. AI-assisted problem solving is restricted during the main contest to keep the competition fair.

Kotlin Blog··Ksenia Shneyveys

Kotlin Heroes: Episode 15 – Anniversary Edition

AI 摘要Kotlin Heroes: Episode 15 is a special anniversary edition online programming contest celebrating Kotlin's 15th birthday, where participants solve algorithmic problems in Kotlin. The practice round opens on December 1, 2026, and the main contest takes place on December 8, 2026, offering cash prizes for the top three finishers and exclusive anniversary T-shirts for the top 50 participants plus a raffle for anyone who solves at least one problem. The contest emphasizes human problem-solving, with AI-assisted problem solving restricted during the main event.

Planet PostgreSQL·

Umair Shahid: Where 39% of the WAL Came From

AI 摘要A fast-growing AI-native SaaS team on Supabase was writing 1.8 TB of PostgreSQL WAL per day, and about 39% of that turned out to be full-page-image overhead caused by the default five-minute checkpoint interval, since every checkpoint resets the full-page-write clock for all pages. The recommended fix is to raise checkpoint_timeout and max_wal_size (weighing the trade-off of slower crash recovery), along with tuning fillfactor, autovacuum, and application write patterns, which together already cut daily WAL by roughly 11%. The broader lesson is that seemingly platform-level limits like high WAL and disk I/O are often caused by database configuration defaults rather than the platform itself.

CSS-Tricks··Geoff Graham

RSS Club: Preview Art-Directed Scrollytelling Article

AI 摘要The author excitedly shares a preview of an upcoming art-directed scrollytelling article created in collaboration with long-time author Lee Meyer. The piece blends a 2013 aesthetic with modern 2026 techniques and will be published on CSS-Tricks. Readers are also encouraged to sign up for the newsletter.

Planet PostgreSQL·

DARIA NIKOLAENKO: PostgreSQL DDL/DML Migration Checklist for the Anxious

AI 摘要The article presents a practical checklist for safely preparing and executing PostgreSQL DDL/DML migrations, emphasizing the need to understand what a statement actually does (table rewrites, full scans, WAL generation) and which locks it will take. It advises checking database readiness, replication impact, testing on production-like data, and having a rollback plan before migrating. Finally, it recommends monitoring key metrics during execution and verifying performance, statistics, and replication afterwards to reduce risk and make migrations more predictable.

JetBrains Blog··Maxim Dokuchaev

JetBrains Academy – November Digest

AI 摘要JetBrains Academy's November Digest highlights a updated LinkedIn Connected Apps plugin with a four-level progress tracking system, a 60% discount on Hyperskill's annual plan (USD 159.60 with code NOVEMBER60 until November 30), and a new video on preparing for the future of programming. Learning highlights include a new GenAI & AI Agents course for Java Spring Boot developers by Faisal Memon and a hands-on tutorial on building with Junie and JetBrains Air. Additionally, high school students aged 16–19 can join the Youth Coding Challenge on November 29 for a chance to attend an 11-day ACTS 2027.1 programming camp in Cyprus.

The Old New Thing··Raymond Chen

Why did it seem that the entries in the CoreApplication Properties expired when the source application shut down?

AI 摘要Entries in CoreApplication.Properties do not actually expire when the originating apartment shuts down; rather, if the stored objects are non-agile, they become unusable because COM wraps them in an agile wrapper and uses proxies that must call back to the object's original thread. What Luca observed as 'expiring' entries was really just the non-agile object values failing once their apartment was gone, likely because he implemented the COM objects by hand instead of using libraries that produce agile objects by default.

CSS-Tricks··Kevin Powell

Style Queries as Conditional Modifiers

AI 摘要The article explains that style queries are most useful when the condition and the styles need to live in different places, or when a single condition must affect several things at once. This enables components to keep working and adapt sensibly regardless of where they end up in a layout.

Real Python··Real Python

pandas Project: Make a Gradebook With Python & pandas

AI 摘要This article introduces a tutorial project in which teachers learn to use Python and pandas instead of spreadsheets to build a gradebook script that loads student data from multiple CSV sources, merges it, and calculates final letter grades. The project involves four main steps: exploring the data, loading it into pandas DataFrames, calculating grades and saving them as CSV files, and plotting grade distributions. Aimed at readers with basic pandas experience, the tutorial produces output compatible with school grading systems and includes links to background reading resources.