A Reddit post visualizes the distribution of code in the Bun runtime, comparing its newly added Rust files against its existing JavaScript and C++ codebase.
#javascript
30 items
The author redesigned his notes blog's "Shuffle" button to navigate to a dedicated /shuffle/ page, which shows a brief "Shuffling..." message before redirecting to a random note via JavaScript. This avoids injecting all note IDs into every HTML page, reducing build changes. He intentionally added a slight delay to mimic an old CD player's shuffle feedback.
Klipy-js is a type-safe JavaScript/TypeScript SDK for the Klipy API, offering developers strongly typed bindings to simplify integration and reduce runtime errors when interacting with the service.
A JavaScript benchmark shows ECS (Entity Component System) can outperform OOP in physics simulations by 5–10x due to better CPU cache usage from contiguous memory layouts, though performance gains depend on the specific workload.
The article highlights upcoming JavaScript features expected in ES2026, including pattern matching, the pipeline operator, and record/tuple data structures. These additions aim to improve code readability, enable more expressive data transformations, and introduce immutable data types. The post provides code examples and explains practical use cases for each feature.
This 2020 article provides a comprehensive overview of JavaScript features introduced in ES2015 (ES6) and later, covering key additions like let/const, arrow functions, template literals, destructuring, modules, classes, promises, async/await, and more, aimed at developers who haven't kept up with the language's rapid evolution over the past decade.
Domternal is a new headless rich-text editor designed for Angular, React, Vue, and Vanilla JavaScript. It offers a framework-agnostic approach, allowing developers to integrate a customizable editing experience across different frontend stacks without being tied to a specific UI library.
Google has released XRBlocks, an open-source JavaScript library designed to accelerate prototyping of augmented reality (AR), virtual reality (VR), and AI-powered web experiences directly in the browser.
GolemUI is an open-source JavaScript library that dynamically generates forms from JSON definitions. It offers 28 headless components, a typed authoring layer, framework-agnostic rendering (React, Angular, Vue, Lit, Vanilla JS), and a deterministic MCP to validate LLM-generated form definitions.
The article explores the growing overlap between CSS and JavaScript in managing UI states and events. As CSS features like `:has()`, `@starting-style`, and scroll-driven animations become more powerful, developers can handle complex interactions previously reserved for JavaScript. The piece suggests rethinking the boundary between styling and scripting for simpler, more performant code.
The article explores a surprising behavior in Python's string `.join()` method: calling `"".join([1, 2, 3])` raises a `TypeError`, not silently converting integers. This exposes a design inconsistency where `.join()` demands iterable elements be strings, unlike other APIs that perform implicit type coercion, making it a common point of confusion for developers.
Slint, a UI toolkit, discusses its integration with Node.js, focusing on how its event loop interacts with Node.js's asynchronous model. The blog explains the challenges and solutions for running Slint's UI rendering within the Node.js environment, ensuring smooth operation without blocking the event loop.
A developer created a tool that uses TypeScript/JavaScript to build and interact with an isometric circuit board. The project allows users to design and manipulate logic circuits visually in a 3D-like isometric view directly in the browser.
The JSON Handbook is a comprehensive guide covering JSON syntax, data types, structure, and practical usage in web development. It explains how JSON is used for data interchange between servers and web applications, including parsing, stringification, and working with APIs.
The article explores common pitfalls of using console.log for debugging in JavaScript, including asynchronous behavior, reference vs value copying, and how console.log can show outdated or misleading information. It offers practical tricks and alternative debugging techniques to avoid being misled by the console.
A browser-based, wire-faithful re-creation of the classic Atari ST game MIDI Maze is available on GitHub. The project uses modern web technologies to faithfully replicate the original game's mechanics and networking over MIDI.
Ziscus is a tool that enables comment systems for static websites without requiring any JavaScript, allowing site owners to add visitor comments while maintaining zero JS dependencies on their pages.
The article discusses the performance improvements in jQuery 4.0, highlighting benchmarks showing it to be up to twice as fast as jQuery 3.7 for common operations like DOM manipulation and event handling, while maintaining backward compatibility.
Rich Harris discusses the relationship between AI and the Svelte JavaScript framework, exploring how AI tools can assist in front-end development and the potential impacts on the framework's future.
Lemonad is a functional programming library for JavaScript, offering functions and utilities to support a functional style of programming in the language.
Fantasy Land is a specification for interoperability of common algebraic structures (like functors, monads, and semigroups) in JavaScript. It defines a set of types and laws that libraries can follow to ensure that their data types work seamlessly together, enabling generic, composable programming patterns.
The Node.js project is evolving its release schedule to adopt a more predictable and sustainable model. Version 24 will become the next LTS release, with the current LTS release schedule being revised to align with community and enterprise needs. The changes aim to balance innovation with stability.
The first-person shooter game Q1K3 recreates the classic Quake experience using JavaScript and HTML5, all within a file size of just 13 kilobytes. It was submitted for the js13kGames competition, which challenges developers to create games under that strict size limit.
Hypersonic.js is a JavaScript library designed for building high-performance web applications with a focus on speed and efficiency. It provides tools for optimizing rendering, state management, and data handling to deliver faster user experiences.
Dan Abramov, a well-known React core team member and co-creator of Redux, has announced he is joining the Next.js team.
The page presents a browser-based implementation of the Portal game, allowing users to play Portal directly in a web browser without additional software.
Supabase has introduced security measures to protect projects from NPM supply chain attacks, including package verification, dependency auditing, and recommendations for using lock files and private registries to mitigate risks.
The article proposes "hoisting expressions" as a programming language concept that allows expressions to be evaluated before the surrounding code, similar to variable hoisting in JavaScript, enabling cleaner syntax for lazy evaluation, caching, and compile-time computation without requiring explicit blocks or annotations.
Deno 2.9
3.0Deno 2.9 introduces new features including improved Node.js compatibility, better TypeScript support, and various performance enhancements to the JavaScript/TypeScript runtime.
The article presents a technique to debug deep import failures in React by visualizing imports directly without relying on a build tool. It explains how to trace and diagnose broken module resolution paths in complex projects, aiming to simplify the debugging process for developers facing cryptic import errors.