编程 · 最新文章

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

fasterthanli.me··Amos Wenger

color npm package compromised

AI 摘要On September 8, 2025, around 13:00 UTC, Josh Junon's npm account (qix), maintainer of the popular 'color' package, was compromised and backdoored versions of the package were published. The attack originated from a phishing email sent from the domain npmsj.help (registered just three days earlier), which tricked him into resetting his two-factor authentication. The incident was noticed and reported to Josh by Charlie Eriksen.

Josh W. Comeau··Josh W. Comeau

Color Shifting in CSS

AI 摘要This tutorial explores a surprising browser limitation when animating an element's background color through the rainbow in CSS. The author explains the underlying issue with how browsers handle color processing. The article then offers a couple of practical strategies to work around this constraint.

Trey Hunner··Trey Hunner

Customizing your Python REPL's color scheme (Python 3.14+)

AI 摘要Python 3.14 introduces syntax highlighting in the REPL, and its default color scheme can be customized using the undocumented _colorize module's set_theme function. To apply a custom theme automatically, the author recommends placing the customization code in a PYTHONSTARTUP file, wrapping it in a function to avoid polluting the global scope and handling errors for older Python versions. The article warns that this relies on an internal, undocumented API that may change in future Python releases, and suggests themes could potentially be packaged via .pth files.

Nicholas Nethercote·

Faster Rust builds on Mac

AI 摘要macOS's XProtect antivirus feature scans every newly compiled executable for malware, which significantly slows down Rust build scripts, cargo run cycles, and especially test suites that launch many small binaries—for example, the Rust compiler's tests/ui suite dropped from 9m42s to 3m33s when XProtect was disabled. The workaround is to add Terminal as a 'developer tool' in System Settings, though this disables an OS security feature. A draft PR for Cargo would detect when XProtect is enabled and warn users about its performance impact, helping spread awareness of this little-known trade-off.

Jake Archibald·

Making XML human-readable without XSLT

AI 摘要The article explains that XSLT, the roughly 25-year-old XML transformation language natively supported by browsers, is barely used, a frequent source of security issues, and slated for removal from Chrome, Safari, and Firefox. The author covers alternatives such as styling XML directly with CSS, converting to HTML on the server or in a build process (recommended in most cases), or transforming XML client-side with JavaScript by swapping the XML root for an HTML root. A key gotcha is using createElementNS with the XHTML namespace to create real HTML elements in XML documents, ensuring proper semantics, accessibility, and behaviour.

Clojure News·

Clojure Deref (Sep 2, 2025)

AI 摘要This is the September 2, 2025 edition of Clojure Deref, a weekly news roundup for the Clojure ecosystem. It highlights upcoming events such as Clojure/Conj 2025 (schedule now live), Clojure South 2025 (tickets on sale), and Macroexpand 2025 (submissions due September 8), along with recent podcasts, videos, and blog articles from the community. It also lists numerous new library and tool releases, including clojure-clr 1.12.2, qclojure, calva, squint, nrepl, fulcro, and many others.

Svelte Blog·

What’s new in Svelte: September 2025

AI 摘要This September 2025 Svelte update highlights new releases including await support in @const declarations, OpenTelemetry observability via instrumentation.server.ts, and Deno support as a package manager. The article also features a community showcase of apps built with Svelte, such as Pollinate, Ferndesk, and Wplace, along with learning resources from contributors. Additionally, it rounds up new libraries, tools, and components like EXE, Markdown UI, and wuchale for i18n.

Andrew Kelley·

An Open Letter to Everyone I've Butted Heads With

AI 摘要Reflecting on Zig's 10th anniversary, the author examines his negative interactions with community members and concludes that such conflicts stem from programmers' lack of agency over the technologies they depend on, which naturally breeds frustration and anger. He apologizes for his own grumpy moments, emphasizes that he respects and cares even for his critics, and vows to bring more empathy to his daily interactions while continuing to grow Zig into a mainstream, welcoming project.

Clojure News·

Clojure Deref (Aug 26, 2025)

AI 摘要This is the August 26, 2025 edition of Clojure Deref, a weekly news roundup for the Clojure ecosystem. It covers upcoming events like Clojure/Conj 2025 and Clojure South 2025, highlights recent podcasts, videos, blogs, and community projects, and lists new library and tool releases including Clojure 1.12.2, Truss 2.2.0, Aleph 0.9.1, and qclojure 0.12.0.

Bun Blog·

Bun v1.2.21

AI 摘要Bun v1.2.21 fixes 69 issues and introduces significant new features, including Bun.SQL support for MySQL and SQLite alongside PostgreSQL, native YAML support, and a Bun.build() compile API with cross-platform targets. The release also brings major performance improvements such as 500x faster postMessage(string), SIMD-accelerated Bun.stripANSI, and reduced idle CPU usage. Additionally, it adds bunx --package flag support, customizable User-Agent headers, Windows executable metadata embedding, and extensive Node.js compatibility improvements.

Clojure News·

Clojure 1.12.2

AI 摘要Clojure 1.12.2 is now available, with download and usage information provided on the Downloads page. This release includes several bug fixes and changes, such as a compiler fix for syntax errors when qualified instance method expressions are missing an instance, and an optimization to avoid creating RetryEx in LockingTransaction on every transaction. It also updates serialization behavior: LazySeqs are now realized before serializing, IFn is no longer serialized, and de/serialization of Iterate is no longer supported.

fasterthanli.me··Amos Wenger

The science of loudness

AI 摘要The article, titled 'The science of loudness,' begins by showing decibel readings in everyday contexts: a smartwatch's Noise app, an amplifier's volume knob (which displays negative decibels), and the meters in video editing software. It observes that these decibel-based measurements take different forms depending on the device and sets out to explain how all these different decibel scales relate to one another.