编程 · 最新文章
今日新增 29 篇 · 共 2,701 篇 · 来自 79 个博客
What’s new in Svelte: May 2022
AI 摘要This May 2022 Svelte update recaps the Svelte Summit and highlights new features such as the tag for rendering dynamically specified elements, plus language tools improvements like automatic detection of invalid Svelte import paths. SvelteKit updates include support for Netlify Edge Functions and the Vercel build output API, along with breaking changes such as renaming validators to matchers and replacing __layout.reset with named layouts. The post also showcases community-built apps, learning resources, and libraries such as KitDocs, SvelteUI, and svelte-exmarkdown.
0023: HYTRADBOI teaser, dida vs datalogui, preimp cruft, dbsp, links etc
The Front-End Developer's Guide to the Terminal
AI 摘要This blog post is a beginner-friendly guide to the terminal for front-end developers, since modern JavaScript frameworks like React and Angular assume terminal proficiency without ever explaining it. It covers all the most important terminal fundamentals that developers need to know.
Coherence and crate-level where-clauses
AI 摘要The article discusses Rust's coherence rules, particularly the 'orphan rule,' which allows implementing foreign traits only for local types in order to keep crates.io crates compatible with one another. However, the author argues that this rule has become overly strict and has unintentionally hindered successful composition of crates in the ecosystem. As a result, the author believes the orphan rule must be weakened and uses the post to explore preliminary ideas for how to do so.
Implied bounds and perfect derive
AI 摘要The article discusses two long-awaited ergonomic features in Rust—perfect derive and expanded implied bounds—which were previously blocked because combining them would have caused a soundness problem. The author has recently developed a new formulation of the Rust trait checker that resolves this soundness issue, making both features technically implementable. Rather than explaining the fix in detail, the author poses the question of whether these features should actually be implemented now that they are feasible.
Simple Simulations for System Builders
AI 摘要The article argues that while formal methods like TLA+ and P focus on safety and liveness properties, system builders often need to answer practical questions about latency, cost, capacity, and overload behavior, which can be addressed through 'simple simulations'—small, readable simulators that don't require expertise in numerical methods. Using a ~170-line Python ski-lift simulator as an example, the author demonstrates that even basic models can yield counterintuitive insights, such as modest increases in skier numbers leading to disproportionately long lift wait times. The author's advice is to start simply, invest effort in thoughtful modeling choices rather than sophisticated code, keep the code literal so assumptions stay obvious, and validate results against intuition and real systems.
What’s new in Svelte: April 2022
AI 摘要This April 2022 update highlights SvelteKit's new param matchers, which validate URL parameters before rendering and thereby replace fallthrough routes, along with new config options (outDir, endpointExtensions, prerender.default) and breaking changes such as the removal of fallthrough routes. It also covers ecosystem-wide improvements like new TypeScript types, language tool updates, a community showcase of apps built with Svelte, and various learning resources. Finally, it announces the Svelte Summit Spring virtual conference taking place on April 30, 2022.
dyn*: can we make dyn sized?
AI 摘要The author describes an in-progress design discussion with tmandry and cramertj about combining async functions in traits with dyn Trait in Rust, a topic recently presented to the Rust lang team. During the conversation, cramertj offered an insightful twist on the design that, if successful, could make dyn Trait much more user-friendly and accessible. While this early-stage work may go nowhere, the author is excited about its potential impact.
The shape of data
Understanding Layout Algorithms
AI 摘要This blog post introduction argues that front-end developers should learn CSS by focusing on how the language calculates layouts, rather than memorizing individual properties. It promises to explain the underlying structure of CSS and how to learn it effectively. The post serves as a teaser encouraging readers to continue reading about layout algorithms.
0022: preimp, shape of data, hytradboi progress, office hours, in nyc, riffle, cue, technical dimensions, js compound keys, hop
Remix: The Yang to React's Yin
Remix fills the missing piece that all React web applications need: The Network Chasm
Delightful React File/Directory Structure
How should we structure components and other files in our React apps? I've iterated my way to a solution I'm really happy with. In this blog post, I'll share how it works, what the tradeoffs are, and how I mitigate them. Keep reading.
Contributing to Complex Projects
WebGPU — All of the cores, none of the canvas
How to Upgrade to React 18
As we shared in the release post, React 18 introduces features powered by our new concurrent renderer, with a gradual adoption strategy for existing applications. In this post, we will guide you through the steps for upgrading to React 18.
React v18.0
React 18 is now available on npm! In our last post, we shared step-by-step instructions for upgrading your app to React 18. In this post, we'll give an overview of what's new in React 18, and what it means for the future.
The 2030 Self-Driving Car Bet
AI 摘要The author and John Carmack have made a $10,000 charity bet on whether fully autonomous (SAE Level 5) self-driving cars will be commercially available for passenger use in America's ten most populous cities by January 1, 2030. The author is betting against, arguing that everyone underestimates how difficult fully autonomous driving really is, while stressing that they fully support self-driving technology and view this as a challenge for others to prove them wrong. The article frames the wager as a fun way to generate STEM publicity, with proceeds going to the winner's chosen 501(c)(3) charity.
What’s new in Svelte: March 2022
AI 摘要This March 2022 Svelte update announces the Svelte Summit Spring virtual conference on April 30, 2022, and highlights new SvelteKit features such as page endpoints that reduce boilerplate for data loading, searchable multipage docs, app versioning support, and automatic Playwright setup. It also details recent breaking changes and language tools improvements, followed by a community showcase of apps, learning resources, and libraries built with Svelte.