最新文章

今日新增 443 篇 · 共 7,340 篇 · 来自 241 个博客

Lea Verou··Lea Verou

Different remote and local resource URLs, with Service Workers!

AI 摘要The article explores the common web development challenge of using different resource URLs (such as for JavaScript libraries) in local development versus production, reviewing workarounds like manual URL swapping, JS-based fallback loading, and build tools like gulp. The author presents their preferred solution: a Service Worker that intercepts requests on localhost and redirects them to local files, allowing normal remote URLs in the HTML. While effective, this approach has caveats such as the same-origin restriction requiring the script to be copied to each repo and the first pageload still using the remote URL.

Lil'Log·

Object Detection for Dummies Part 1: Gradient Vector, HOG, and SS

AI 摘要The author, new to computer vision, is starting a blog series called 'Object Detection for Dummies' to explore the math behind object recognition and detection algorithms. This first part covers rudimentary image processing concepts and image segmentation methods, such as gradient vectors, HOG, and selective search, without involving deep neural networks. Deep learning models for object detection and recognition will be covered in Parts 2 and 3 of the series.

Without Boats·

Alternative Registries

AI 摘要Cargo, Rust's package manager, introduced a new feature this week that allows users to download dependencies from alternative registries in addition to crates.io. This enables organizations to distribute internal libraries through cargo without needing to upload them to a public registry. The feature is currently available only on nightly and is gated behind the alternative-registries feature gate.

Lil'Log·

Learning Word Embedding

AI 摘要This article explains that machine learning models cannot directly process free-text human vocabulary, so words must be transformed into numeric values. It introduces one-hot encoding as one of the simplest transformation approaches, where each distinct word corresponds to one dimension of the resulting vector, with a binary value indicating whether the word is present (1) or absent (0).

Lil'Log·

Anatomize Deep Learning with Information Theory

AI 摘要The article introduces Professor Naftali Tishby's idea of applying information theory to deep learning, written in memory of him after his passing in 2021. Using the Information Bottleneck (IB) method, he proposed a new learning bound for deep neural networks, since traditional learning theory fails due to the exponentially large number of parameters. He also observed that DNN training involves two distinct phases: first fully representing the input data to minimize generalization error, then compressing the representation by forgetting irrelevant details.

Without Boats·

Blogging With GitLab and Hugo

AI 摘要The author describes their unsuccessful attempt at maintaining a blog with GitHub Pages, where they struggled to actually produce posts. Moving to GitLab and Hugo, they prioritize a low-maintenance workflow over site appearance, wanting an experience like writing Rust RFCs: write some markdown, commit, push, and let others read it.

Fabien Sanglard·

Game Engine Black Book Postmortem

AI 摘要The author announces that the Game Engine Black Book about Wolfenstein 3D has shipped—a 316-page, full-color book covering 1991 hardware, id Software tools, and the game engine's internals, available on Amazon and Google Play Books. The project took three years to complete and involved many challenges. The author shares a postmortem of lessons learned to help aspiring writers.

Fabien Sanglard·

FizzleFade

AI 摘要The author, an avid reader of source code, shares their delight in discovering elegant solutions like Fizzlefade while working on the Game Engine Black Book: Wolfenstein 3D, comparing it to the famous Quake 3 inverse square root trick. Fizzlefade is the function that transitions between scenes in Wolfenstein 3D by turning screen pixels to a solid color one at a time in a seemingly random pattern.

Lil'Log·

From GAN to WGAN

AI 摘要The article introduces generative adversarial networks (GANs), a game theory-inspired approach in which a generator and a critic compete against each other, achieving strong results in generative tasks such as creating images, language, and music. However, training GANs is challenging due to issues like instability and failure to converge, which motivates the discussion of improved variants such as WGAN.

Fabien Sanglard·

Game Engine Black Book ReleaseDate

AI 摘要Game Engine Black Book is an engineering book that explains how Wolfenstein 3D was made and how id Software turned the IBM PC into a leading gaming platform capable of high frame rates. Rather than containing much prose, the book uses text and detailed drawings to describe the Wolfenstein 3D game engine and its hardware, namely the IBM PC with an Intel 386 CPU and a VGA graphics card.

Lil'Log·

How to Explain the Prediction of a Machine Learning Model?

AI 摘要Machine learning models are increasingly being deployed in critical domains such as healthcare, justice systems, and the financial industry. As a result, it has become necessary to understand how these models arrive at their decisions and to verify that their decision-making processes comply with ethical requirements and legal regulations.

Elixir Blog··José Valim

Elixir v1.5 released

Elixir v1.5 integrates with Erlang/OTP 20 and bring changes that improves the language reach and the developer experience.

Lil'Log·

Predict Stock Prices Using RNN: Part 2

AI 摘要This is the second part of a tutorial series on stock price prediction using recurrent neural networks. The author extends the RNN built in Part 1 to handle multiple stocks simultaneously. To distinguish patterns associated with different price sequences, stock symbol embedding vectors are used as part of the model's input.

Lil'Log·

Predict Stock Prices Using RNN: Part 1

This is a tutorial for how to build a recurrent neural network using Tensorflow to predict stock market prices. The full working code is available in github.com/lilianweng/stock-rnn. If you don’t know what is recurrent neural network or LST

Lil'Log·

An Overview of Deep Learning for Curious People

AI 摘要This article, based on the author's talk at a WiMLDS x Fintech meetup hosted by Affirm, provides an overview of deep learning for a general audience. It highlights the 2016 match in which AlphaGo defeated top-ranked Go player Lee Sedol 4-1, a landmark achievement since Go was long considered intractable for computers due to its exponentially large number of board variations. The event drew widespread attention to AI progress and marked 2016 as a major year for artificial intelligence.

Preshing on Programming··Jeff Preshing

Can Reordering of Release/Acquire Operations Introduce Deadlock?

AI 摘要The author examines whether a compiler can reorder a write-release followed by a read-acquire on spinlocks, which would cause a thread to hold two locks at once and potentially introduce deadlock. Although acquire/release semantics alone don't forbid this reordering, he argues that C++ standard §4.7.2:18—which says atomic stores must eventually become visible to all other threads—should prevent moving the release store past a potentially infinite loop, so deadlock shouldn't be possible. He notes that the standard's wording is only a recommendation ('should' rather than 'must'), but concludes that acquire/release operations aren't inherently deadlock-prone, a view supported by compiler tests and commenter Anthony Williams.

Sara Soueidan··Sara Soueidan

Migrating from Jekyll+Github Pages to Hugo+Netlify

AI 摘要The author describes migrating their personal website from Jekyll and GitHub Pages to Hugo and Netlify, primarily because Jekyll became unbearably slow at compiling the site—sometimes taking up to five minutes per change or freezing entirely. They chose Hugo for its blazing build speed and flexible content organization, which they first experienced firsthand while working on the Smashing Magazine redesign. The article walks through setting up Hugo, using its one-line Jekyll import command, and shares practical tips on folder structure, config files, and template conversion learned during the migration.