编程 · 最新文章

今日新增 29 篇 · 共 2,701 篇 · 来自 79 个博客

Clojure News·

Clojure 1.12.5-alpha1

Clojure 1.12.5-alpha1 is now available! Find download and usage information on the Downloads page. CLJ-2945 - reify - incorrectly transfers reader metadata to runtime object CLJ-2228 - constantly - unroll to remove rest args allocation

Filippo Valsorda·

A Cryptography Engineer’s Perspective on Quantum Computing Timelines

AI 摘要Recent papers from Google and Oratomic dramatically reduced the estimated quantum resources needed to break widely used elliptic-curve cryptography, leading the author—a cryptography engineer—to publicly reverse his view on the urgency of migrating to post-quantum cryptography in light of expert warnings of a possible 2029 deadline. He argues organizations must ship post-quantum algorithms now, including ML-DSA signatures and ML-KEM key exchange, drop hybrid classical/PQ signature schemes as a waste of time, treat non-PQ key exchange as potentially compromised, and reconsider reliance on TEEs and non-PQ cryptographic identity systems, while noting symmetric encryption needs no changes. Although the predictions could still prove wrong, he contends the risk is now unacceptable and that the job of practitioners is to mitigate credible threats rather than to out-skeptic experts.

Trey Hunner··Trey Hunner

Using a ~/.pdbrc file to customize the Python Debugger

AI 摘要The article explains how to customize the Python debugger (PDB) by defining custom aliases in a ~/.pdbrc file placed in your home directory or current working directory. The author shares five useful aliases—dir, attrs, vars, src, and loc—that make it easier to inspect objects, view source code, and list local variables during debugging sessions, with a demonstration using Python's calendar module. It also notes the limitations of ~/.pdbrc compared to a PYTHONSTARTUP file, such as aliases being restricted to a single line and variable assignments leaking into the surrounding scope.

DHH··David Heinemeier Hansson

Panther Lake is the real deal

AI 摘要Intel's Panther Lake chipset delivers exceptional efficiency, with a Dell XPS 14 drawing just 1.4 watts at idle for 47+ hours of battery life and roughly 16 hours in real-world use, while matching Apple's M5 in multi-core performance. The author argues that PC makers are now rivaling Apple across the board with haptic touchpads, tandem OLED screens, sleeker designs, and improved Linux support through Omarchy 3.5. It's a striking turnaround for Intel, whose Arizona-manufactured chips also reduce reliance on TSMC, removing battery life as the last major barrier for users considering leaving the Mac ecosystem.

Stefan Judis··Stefan Judis

Intl can localize units, too! (#tilPost)

AI 摘要The author shares a today-I-learned tip that JavaScript's built-in Intl.NumberFormat can format numbers with currencies and units, localized per locale. Examples show EUR formatting in German, JPY in Japanese, km/h in Portuguese, and kilobytes in French, including details like currency symbol placement and translated unit names. The takeaway is to avoid writing custom userland JavaScript for currency/unit formatting since it's already baked into the language.

Stefan Judis··Stefan Judis

Web Weekly #188 (#blogPost)

AI 摘要Web Weekly #188 is a web development newsletter covering recent browser and CSS updates, including a resolved nine-year-old spec issue enabling axis-based position: sticky behavior, light-dark() support for images, and the position-visibility property. It also highlights JavaScript trends for 2026, the popular new pretext text-measurement library, a View Transitions Toolkit, TypeScript assertion functions, and CSS containment techniques. The issue rounds out with recommended projects, a Tiny Helper for pixelating images, and community notes including song picks and supporter shoutouts.

Stefan Judis··Stefan Judis

The scope of type guards and assertion functions (#tilPost)

AI 摘要The article explains the difference between TypeScript type guards and assertion functions when validating unknown data. A standard type guard (using 'value is User') narrows the type only inside the conditional scope, after which the variable reverts to its original type. In contrast, an assertion function (using 'asserts value is User') applies the type narrowing for the rest of the current scope, as long as the function doesn't throw an error.

Swizec Teller·

Frustration Driven Development

AI 摘要The article argues that frustration is a valuable engineering asset: while good engineers simply repeat requested tasks, great engineers channel their annoyance into permanently eliminating the underlying problem. The author contends that an engineer's real job is not doing the work but removing work—by streamlining workflows, eliminating unnecessary steps, and building self-service tools. Ultimately, the best engineering task is no task at all.

Svelte Blog·

What’s new in Svelte: April 2026

AI 摘要The April 2026 Svelte update highlights a new best practices guide in the docs and improvements to the Svelte MCP, including a relocated OpenCode config in sv's .opencode/ folder. Code changes include new functions in svelte.config.js for a single source of truth, exported motion types, server-side error boundaries in SvelteKit, and improved type narrowing for page and layout params. The post also features a community showcase of apps, learning resources, and libraries built with Svelte.

Hillel Wayne·

Chicago vs New York Pizza is the Wrong Argument

AI 摘要The author, writing for April Cools, argues that the classic 'Chicago vs New York pizza' debate is meaningless because deep dish is a special-occasion food while New York-style pizza is an everyday food, making them poor points of comparison. Instead, they propose comparing New York pizza to the Chicago-style hot dog as role-equivalent iconic local foods, ultimately conceding that NYP wins for ease of home preparation while praising the Chicago dog as a superior hot dog. The piece closes as a celebration of other Chicago specialties like Italian beef, the jibarito, and flaming saganaki.

Swift.org··Owen Voorhees

What's new in Swift: March 2026 Edition

AI 摘要The March 2026 edition of "What's new in Swift" highlights the Swift 6.3 release, whose centerpiece is integrating Swift Build into Swift Package Manager to provide a consistent cross-platform build experience, with Swift's main branch now using Swift Build as its default build system. It also rounds up community content, including videos on Containerization, computer vision on NVIDIA Jetson, and Swift Concurrency, as well as posts on API deprecation via SwiftPM Traits and WebAssembly updates. Finally, it covers Swift Evolution proposals, notably the under-review SE-0522 for fine-grained compiler warning control, and recently accepted proposals for SBOM generation in SwiftPM (SE-0509), targeted interoperability between Swift Testing and XCTest (ST-0021), and noncopyable support in reduce (SE-0515).

Clojure News·

Clojure Zero to REPL Video

AI 摘要The Clojure team has recorded a step-by-step tutorial video called 'Clojure: Zero to REPL' as part of its efforts to improve the onboarding experience for new users. The video covers installing the JVM and Clojure CLI, installing Calva, opening an example project, and connecting it to a REPL to evaluate code.

brandur.org··Brandur Leach

The Second Wave of the API-first Economy

AI 摘要The article recounts the 'first wave' of open APIs in the early 2010s, exemplified by Facebook, Twitter, and GitHub, followed by an 'API winter' when companies restricted access due to monetization pressures, abuse, and competitive risks. The author predicts a 'second wave' driven by powerful LLM agents acting on users' behalf, which will make APIs a key competitive factor across services like banks, retailers, and social platforms. Unlike the first wave, these APIs will mirror first-party product capabilities for individual users' agents, with simpler security models and stricter rate limiting rather than enabling third-party apps.

Brett Cannon··Brett Cannon

Why pylock.toml includes digital attestations

AI 摘要The article explains that a Python project hack involving malicious PyPI uploads could have been detected if the project used trusted publishing with digital attestations, since pylock.toml lock files record publisher details (e.g., the GitHub repo and workflow) for each file. Trusted publishing lets CD systems upload releases without exposing API keys, while attestations verify a file's origin, allowing users to compare the lock file's recorded publisher against PyPI's data to spot discrepancies. The author recommends that maintainers enable trusted publishing and attestations, and that users verify attestations in lock files via code or manual review of diffs to catch suspicious changes or deletions.