Latest articles

436 new today · 7,333 articles · from 241 blogs

Lil'Log·

Anatomize Deep Learning with Information Theory

AI summaryThe 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 summaryThe 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 summaryThe 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 summaryThe 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 summaryThe 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 summaryGame 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 summaryMachine 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 summaryThis 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 summaryThis 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 summaryThe 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 summaryThe 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.

Preshing on Programming··Jeff Preshing

Here's a Standalone Cairo DLL for Windows

AI summaryThe author, unable to find an up-to-date, dependency-free precompiled Cairo DLL for Windows, wrote a build script (shared on GitHub) and released binary packages containing headers, import libraries, and DLLs for x86 and x64. The DLLs are statically linked with their own C runtime, have no external dependencies, and should work with any MSVC-built application. They are configured to render text using FreeType for better quality, broader font format support, and consistent cross-platform appearance, and the author provides a sample CMake-based application to test them.

Preshing on Programming··Jeff Preshing

Learn CMake's Scripting Language in 15 Minutes

AI summaryThis article is a quick-start tutorial on CMake's scripting language, the language used in every CMakeLists.txt file to define build targets and perform other tasks. It covers the core syntax and programming model, explaining that all variables are strings, every statement is a command, lists are semicolon-delimited strings, and covering flow control, functions versus macros, script inclusion, and target properties. The goal is to help readers quickly grasp enough of the language to understand and edit CMake scripts without wading through scattered documentation.

Lea Verou··Lea Verou

Introducing Mavo: Create web apps entirely by writing HTML!

AI summaryThe author announced the release of Mavo, an open-source, HTML-based language developed over two years at MIT CSAIL that lets users create web applications without programming or a server backend. Named after the author's late mother, the project's release had been delayed for months due to anxiety about it not being ready. Readers are invited to try Mavo at mavo.io and share whatever they create with it.

Preshing on Programming··Jeff Preshing

How to Build a CMake-Based Project

AI summaryThis article is a practical guide to configuring and building CMake-based C/C++ projects, explaining core concepts such as the source and binary folders, the cache, and the configure and generate steps. It demonstrates several ways to run CMake—including the command line, cmake-gui, and ccmake—and how to generate build pipelines using Unix Makefiles, Visual Studio, and Xcode. The concepts are illustrated with a sample project called CMakeDemo, which uses SDL2 and OpenGL to render a spinning 3D logo.

Distill·

Why Momentum Really Works

We often think of optimization with momentum as a ball rolling down a hill. This isn't wrong, but there is much more to the story.

Distill·

Research Debt

Science is a human activity. When we fail to distill and explain research, we accumulate a kind of debt...