Latest articles
431 new today · 7,489 articles · from 241 blogs
The borrow checker within
AI summaryThe author proposes a four-part roadmap of changes to Rust's borrow checker, dubbed 'the borrow checker within,' intended to help Rust better support code patterns that fit its spirit but currently violate its rules. While the author feels comfortable with the designs, details still need to be scoped out, and a-mir-formality is considered an ideal place to do that work.
Bun v1.1.11
AI summaryBun v1.1.11 fixes 36 bugs, including a peer dependencies resolution issue in bun install, and introduces the ability for bun update to save dependency updates to package.json. The release also delivers 5x faster setTimeout throughput on Linux, improved Node.js compatibility across fs, zlib, timers, http, dgram, and module, along with event loop improvements on macOS and Windows reliability enhancements.
What’s new in Svelte: June 2024
AI summaryThe June 2024 Svelte newsletter highlights the maintainers' progress on the Svelte 5 Release Candidate, including improvements like disallowing bind: on component exports in runes mode, enhancements to the migration tool, MathML support, the $state.is rune, and a new rootDir compiler option. It also features a community showcase of apps and sites built with Svelte, such as Onlook and Equimake, along with learning resources like podcasts, videos, and articles about Svelte 5 and SvelteKit. Finally, the newsletter lists useful libraries, tools, and components, such as Floating UI Svelte and svelte-infinite.
Experimenting with local alt text generation in Firefox Nightly
AI summaryMozilla is introducing an experimental feature in Firefox 130 (Nightly) that automatically generates alt text for images using a small, fully on-device AI model, starting with the built-in PDF editor and ultimately aiming to help screen reader users in general browsing. The approach uses compact Transformer-based models (a ViT image encoder with DistilGPT-2, under 200M parameters) running locally via ONNX and Transformers.js, offering privacy, resource efficiency, and transparency compared to large cloud-based LLMs, though with somewhat less detail. Mozilla plans to iteratively improve the model and training data in the open, with the code available on GitHub and Hugging Face.
Automatically clean up whitespace and duplicate class names
We just released a new version of prettier-plugin-tailwindcss which adds support for removing unnecessary whitespace and duplicate classes when sorting.
Netflix PRS 2024 - Applying LLMs to Recommendation Experiences
Challenges and lessons from deploying LLM experiences: evals, scalability, guardrails.
The Gap
User Research Is Storytelling
AI summaryThe author draws a parallel between user research and storytelling, mapping the classic three-act movie structure onto the research process: act one (setup) corresponds to foundational research that uncovers users' problems, act two (conflict) corresponds to directional research such as usability testing, and act three (resolution) involves addressing the issues identified. The article argues that framing research as a compelling story is key to getting stakeholders invested and keeping teams user-centered. It also warns that research is often the first thing cut when budgets tighten, but both foundational and usability research are necessary to truly solve users' real problems.
Deno 1.44: Private npm registries, improved Node.js compat, and performance boosts
Deno 1.44 adds support for private npm registries, gRPC connections, improved Node.js compat with initial Next.js support, and significant performance improvements.
Zig's New CLI Progress Bar Explained
AI summaryThe article explains the technical implementation of Zig's new CLI progress bar, which adopts a modern philosophy where an application spawned with stderr as a terminal assumes full ownership of it and leverages all available terminal features. The design centers on a thread-safe, lock-free API using statically pre-allocated nodes with a free-list allocator, an update thread that serializes shared data on a timer, and inter-process communication via progress pipes that lets child processes report progress semantically so the terminal owner can aggregate and display it. Benchmarks show the new implementation has negligible performance overhead, and it even helped uncover a long-hidden bug in Zig's child process spawning code before being merged.
Home-Cooked Software and Barefoot Developers
The emerging golden age of home-cooked software, barefoot developers, and why the local-first community should help build it
What We Know We Don't Know: Empirical Software Engineering
AI summaryThis article accompanies a talk given at DDD Europe 2024 about Empirical Software Engineering (ESE), the discipline of studying what actually works in software development through data collection, studies, and peer review rather than relying on instinct. It outlines the main research methods used—controlled trials, natural experiments, and observational studies—and provides extensive links to the papers and sources referenced in the talk. The piece concludes with findings related to Domain-Driven Design and answers to audience questions about what science can and cannot conclude about software practices.
Eradicating N+1s: The Two-phase Data Load and Render Pattern in Go
AI summaryThe article explains the N+1 query problem, in which rendering a collection of records triggers an extra database query per record due to lazy loading of associations, and it surveys mitigation strategies such as ActiveRecord eager loading, Rails 6.1's strict loading, and Stripe's creative use of Ruby fibers to batch database intents. It then describes how the author adopted a two-phase load-and-render pattern in Go at their current company, which loads all required data in batched queries before rendering and has eliminated N+1s for two years. The pattern works well despite Go's inherent verbosity and lack of a good ORM.
Against Landlords
AI summaryThis article is a personal reflection on Nick Bano's book 'Against Landlords', which argues that the UK housing crisis is driven by rent rather than scarcity, since the rental market functions like a monopoly and most homes are under-occupied. The author, drawing on their own experiences of housing injustice, endorses Bano's proposed solutions of expanding council housing and implementing rent control. The piece concludes that landlords are economic leeches who exploit public funds, and that the housing crisis should be recognized as a grave social injustice.
Prompting Fundamentals and How to Apply them Effectively
Structured input/output, prefilling, n-shots prompting, chain-of-thought, reducing hallucinations, etc.
Bun v1.1.10
Fixes 20 bugs. 2x faster uncached bun install on Windows. fetch() uses up to 2.8x less memory. Several bugfixes to bun install, sourcemaps, Windows reliability improvements and Node.js compatibility improvements
Guys what is wrong with ACATS
AI summaryThis article explains ACATS (Automated Customer Account Transfer Service), the FINRA-governed system that mediates asset transfers between brokerages, tracing its roots to FINRA Rule 11870, which requires firms to let departing customers take their assets. It describes how shares are effectively entries in interlocking spreadsheets at brokerages and the DTCC, and how ACATS standardizes coordination among thousands of firms. It also highlights a surprising trust-based design choice: most incoming transfer requests are not verified with the losing brokerage's customer, and firms must validate or formally object within three business days using only twelve enumerated reasons.
Catalyst: Application layouts, navigation menus, description lists, and more
We just published the first major update to Catalyst since releasing the development preview, with two new application layouts, navbar and sidebar components, description lists, and more.
Bun v1.1.9
AI summaryBun v1.1.9 fixes 67 bugs, including issues with workspaces in bun install, sourcemaps in bun build, IPv6 and VPN connectivity, and Windows support for UNC paths, junctions, symlinks, and pnpm. The release also delivers performance improvements, such as faster fetch(), a new dns.prefetch() API, atob() becoming 8x faster, and toString('base64url') 5x faster. Additionally, it adds the expect().toBeReturned() matcher along with Node.js compatibility improvements and Bun Shell fixes.