Latest articles

428 new today · 7,421 articles · from 241 blogs

Svelte Blog·

What’s new in Svelte: April 2022

AI summaryThis 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.

Baby Steps·

dyn*: can we make dyn sized?

AI summaryThe 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.

Josh W. Comeau··Josh W. Comeau

Understanding Layout Algorithms

AI summaryThis 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.

Josh W. Comeau··Josh W. Comeau

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.

Andrej Karpathy·

Deep Neural Nets: 33 years ago and 33 years from now

AI summaryThe author reproduces Yann LeCun et al.'s 1989 paper on handwritten zip code recognition—the earliest known neural net trained end-to-end with backpropagation—in PyTorch, roughly matching the original results with a ~3000x training speedup, though an exact reproduction was impossible because the original dataset has been lost. Applying 33 years of modern advances (cross-entropy loss, AdamW, data augmentation, dropout, and ReLU activations) cut the test error from ~4% to ~1.5%, and further scaling up the training data with MNIST brought it down to ~1.25%. The exercise shows that at the macro level deep learning has changed remarkably little in 33 years, with remaining gains likely requiring larger models or datasets rather than fundamentally new techniques.

React Blog··Rick Hanlon

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 Blog··The React Team

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.

Sean Carroll··Sean Carroll

Johns Hopkins

AI summaryThe author recalls visiting Johns Hopkins University as a child for a math awards ceremony, an experience that inspired his academic aspirations, and now announces he is becoming a Homewood Professor of Natural Philosophy there, moving from Los Angeles to Baltimore. The special, non-tenured position floats across departments, allowing him to split his time between Physics and Astronomy and Philosophy, teach one course per year in each, and pursue his interdisciplinary interests freely. He expresses gratitude for his time at Caltech but is excited about this new role, where outreach and unconventional academic pursuits will finally be his official job rather than merely tolerated.

Coding Horror··Jeff Atwood

The 2030 Self-Driving Car Bet

AI summaryThe 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.