编程 · 最新文章

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

Svelte Blog·

Svelte 5 is alive

AI 摘要After 18 months of development, Svelte 5 is now stable, marking the project's most significant release as a ground-up rewrite that makes apps faster, smaller, and more reliable while remaining almost completely backwards-compatible with Svelte 4. Key changes include the introduction of runes for explicit reactive state declaration, event handlers being treated as props, snippets replacing slots, and native TypeScript support. Users can upgrade seamlessly via the new 'sv' CLI or migration tools, with an updated SvelteKit release planned in the near future.

Bun Blog·

Bun v1.1.32

Fixes 7 bugs and adds crypto.hash() in node:crypto. Warnings in Next.js 15 are fixed. A regression in ESM <> CJS interop impacting Vite config objects is fixed. A crash in Bun.serve() when passing invalid TLS certificates at start is fixed.

Svelte Blog·

The Omnisite

AI 摘要The Svelte team has consolidated their previously separate websites (the main site, kit.svelte.dev, and learn.svelte.dev) into a single unified site, making it easier to search, navigate, and share preferences like dark mode, with documentation for the CLI and other packages coming soon. The redesign also features a cleaner visual style, dropping overused design elements like boxes and borders, and adopts a new serif-based typography (DM Serif Display, EB Garamond, Fira Sans, and Fira Mono) to give the site a more distinctive, analog-inspired feel. The codebase is now open source, and the team welcomes contributions as they continue polishing the site.

React Blog··Lauren Tan

React Compiler Beta Release

At React Conf 2024, we announced the experimental release of React Compiler, a build-time tool that optimizes your React app through automatic memoization. In this post, we want to share what's next for open source, and our progress on the

Bun Blog·

Bun v1.1.31

Fixes 41 bugs (addressing 595 👍). node:http2 server and gRPC server support, ca and cafile support in bun install, Bun.inspect.table, bun build --drop, iterable SQLite queries, iterator helpers, Promise.try, Buffer.copyBytesFrom, and severa

Steve Klabnik·

When should I use String vs &str?

AI 摘要The article offers a progression of rules of thumb for choosing between Rust's two main string types, String and &str. Beginners can simply always use String and let the compiler guide them, then advance to using &str for function parameters, returning &str when the output is a substring of an argument, and only storing &str in structs when truly necessary. The author argues these levels handle virtually every real-world scenario, so developers rarely need to deliberate over the choice.

Without Boats·

UnpinCell

AI 摘要The author proposes a new Rust design, UnpinCell, as a variation on their earlier pinned places proposal. Whereas the previous design relied on the unusual concept of 'pinned fields' to support pinned projection, this new approach aims to offer similar properties while remaining consistent with Rust's standard field projection behavior, without introducing a special field marker.

Baby Steps·

The `Overwrite` trait and `Pin`

AI 摘要The post argues that the `Overwrite` trait, introduced in a previous post, can serve as a better version of Rust's existing `Unpin` trait by affecting not only pinned references but also regular `&mut` references. This allows `Pin` to integrate much more seamlessly with the rest of Rust, though the transition involved is tricky. The author builds on a vision presented in a July post to make this case.

Scott Hanselman··Scott Hanselman

Webcam randomly pausing in OBS, Discord, and websites - LSVCam and TikTok Studio

AI 摘要The author's webcam started randomly pausing in OBS, browsers, and other apps every 90 seconds or so, and after investigating with PowerShell and JavaScript's enumerateDevices(), he discovered a mysterious virtual camera called 'LSVCam' that hung on enumeration and caused NotReadableError failures. He traced it to TikTok LIVE Studio, which installs LSVCam.dll as a poorly implemented virtual camera for its streaming feature. The fix is deleting the registry key HKEY_CLASSES_ROOT\CLSID\{860BB310-5D01-11d0-BD3B-00A0C911CE86}\Instance\LSVCam, though the key reappears each time TikTok Studio is run, so he deletes it before each stream until the bug is fixed.

Deno Blog··Ryan Dahl

Announcing Deno 2

Our next major version of Deno combines the simplicity, security, and performance of Deno 1 with full Node and npm backwards compatibility, and much more.

Bun Blog·

Bun v1.1.30

AI 摘要Bun v1.1.30 fixes 57 bugs and introduces an experimental CSS bundler, along with `bun publish` as a drop-in replacement for `npm publish`. New performance and build features include `bun build --bytecode` for 2x faster startup, CommonJS output support, Node.js native addon support, and 30x faster crypto operations. The release also adds utilities like Bun.color() and `bun pm whoami`, plus broader Node.js compatibility improvements.

Random ASCII··brucedawson

Life, death, and retirement

AI 摘要The author's wife died of pancreatitis nine weeks after her diagnosis, and the resulting grief—compounded by isolation from remote work and few friends nearby—drained his motivation and made him resent work's demands on his time. After a three-month leave of absence confirmed he didn't miss work at all, he decided to retire from Google after ten years, with his last working day being October 4th, 2024. He says he may still blog occasionally or offer private consulting on Windows performance problems if readers or companies reach out.

Svelte Blog·

What’s new in Svelte: October 2024

AI 摘要The October 2024 Svelte update announces the upcoming Svelte Summit Fall and highlights continued progress on Svelte 5, including bug fixes, performance improvements, the svelte-migrate tool, new accessibility warnings, and a smaller svelte-check CLI. It also covers SvelteKit additions like typed array support in load functions, and showcases community apps, learning resources, and libraries such as tipex and Tzezar's Datagrid.