AI 摘要This March 2024 Svelte update highlights significant progress on Svelte 5, including breaking changes like $derived.call becoming $derived.by, a new treeshakeable hydrate method, nested CSS support, and a simplified client-side API, while SvelteKit saw mostly bug fixes plus a new emulate function for adapters. The post also showcases community-built apps and sites, learning resources featuring Rich Harris's interview about Svelte 5, and a range of new libraries and tools such as PaneForge, SvelteKit SSE, and Sugar.css.
Enabling your users to deploy and run code can make your platform more useful. Here's a guide to building a platform that deploys and runs untrusted user code via a browser IDE with Monaco, Next.js, and Subhosting.
AI 摘要The author, who once considered behavioral interviews useless because candidates could easily bluff, shares strategies for extracting genuine signal from them. Key tips include budgeting 2+ hours to prepare questions and a rubric beforehand, focusing on only 1-3 related skills per interview, and probing for detailed timelines, outcomes, and metrics during the interview to distinguish real experience from BS. When evaluating candidates, the author warns against winging it and lists red flags such as vague platitudes, scapegoating, and a lack of self-improvement mindset.
AI 摘要The article explores the problem of asynchronous clean-up in Rust, arguing that supporting await inside destructors is unrealistic due to issues like dropping values in non-async scopes, object safety and Send concerns for futures, implicit await points, and difficult-to-predict code generation. The author reframes the challenge as a general limitation of destructors that must return (), covering async clean-up and clean-up that returns values like Result. The proposed solution combines async future cancellation with a do...final construct, which the author argues are prerequisites for any linear type mechanism in Rust rather than alternatives to type-based approaches.
AI 摘要The article discusses FuturesUnordered, an abstraction from the Rust futures library that runs a dynamic collection of futures concurrently within a single task as a Stream. It contrasts this with multi-task concurrency (spawning tasks, which require 'static and cannot borrow parent state) and intra-task concurrency (joining futures, which can borrow state but only supports a static number), positioning FuturesUnordered as a hybrid that combines borrowing with dynamic arity. However, despite being a natural fit for certain patterns, FuturesUnordered has been implicated in frustrating bugs for async Rust users, which the author plans to investigate in the rest of the post.
RReact Blog··Joseph Savona, Ricky Hanlon, Andrew Clark, Matt Carroll, and Dan Abramov
In React Labs posts, we write about projects in active research and development. We’ve made significant progress since our last update, and we’d like to share our progress.
Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something
AI 摘要The author argues that database engineering remains too opinion-driven because industry-standard benchmarks like TPC-C and YCSB are too easy and poorly represent real-world workloads. They propose generating better synthetic benchmarks by modeling database objects as a graph where transactions are random walks, with parameters like transaction size, coordination, and locality tuned via a Watts-Strogatz small-world model extended with Zipf-distributed rewiring to simulate hot keys. The author finds this approach highly flexible and useful for exploring design trade-offs like atomicity, isolation, and durability, though notes the relationship between parameters and workload characteristics can be non-linear in surprising ways.
AI 摘要The author shares career advice for people who feel busy and productive but unhappy with what they accomplish, recommending they create an explicit 'time budget' dividing their time among a handful of themes, calibrate it with their manager, and stick to it stubbornly over the long term while staying flexible day to day. This requires defining what success looks like, saying no to unimportant requests, and avoiding failure modes like chasing visibility, drowning in urgent 'dirty work,' or drifting into low-value commitments. The author illustrates the approach with their own themes (IC work, mentoring, strategy, business rhythm, learning, customers) and suggests extending the exercise to teams by explicitly discussing how much time engineers at each level spend on hands-on work.
AI 摘要The article describes V8's "static roots" feature, which hardcodes compile-time constant memory addresses for core JavaScript objects (like undefined and true) living in the read-only heap, enabling fast direct references instead of runtime lookups. This is achieved by deterministically generating the read-only heap layout through the mksnapshot build process and exploiting pointer compression by placing the heap at the start of the compression cage, with generated offsets cached in a static-roots.h header. The feature, which landed in Chrome 111, delivered performance gains across the VM—especially in C++ code and builtin functions—and enables further optimizations such as identifying object types via address range checks.
AI 摘要The article argues that software's core problem is that it is too efficient and can be 'completed,' which threatens profit-driven business models, so companies deliberately introduce waste through DRM, bitrot, proprietary platforms, and planned obsolescence. It cites examples like ad-laden Windows updates, incompatible charging cables, fragmented messaging apps, and modern dishwashers burdened with buggy smart features that work worse than older models. The author concludes that technologies like blockchain and LLMs appeal to investors precisely because they are wasteful and never truly finished, sabotaging software's potential glimpse into a post-scarcity society in order to keep profits perpetually rising.
AI 摘要The article examines the debate over the futures/promise abstraction and async/await syntax, contrasting Marius Eriksen's argument that futures' distinct type signature enables composable and expressive concurrency with Bob Nystrom's 'function coloring' critique that dividing functions into sync and async is a frustrating burden. The author sides with Eriksen, noting that some of Nystrom's criticisms apply to JavaScript's callback style rather than statically typed languages like Rust. The post sets out to re-examine async Rust's design, imagining a world where the difficulties of futures are resolved so that async Rust becomes not just as easy to use as non-async Rust, but a better experience overall.
AI 摘要The February 2024 Svelte update covers new SvelteKit features released since version 2.0, including a tree-shakeable client router, the reroute hook, the read function in $app/server, and adapters that can emulate the production environment. Development on Svelte 5 continues, now available in preview, with snippets newly able to accept multiple arguments. The post also highlights community-built apps, learning resources, and tools such as Lucia 3.0 and the Paraglide JS Adapter for SvelteKit.