Automatic Differentiation
A deep-dive into automatic differentiation: symbolic vs. numerical vs. AD, AST transformation, dual numbers, tapes, hybrid methods, and a generic C++ implementation that computes gradients and solves optimisation problems.
Tag
19 posts tagged with this.
A deep-dive into automatic differentiation: symbolic vs. numerical vs. AD, AST transformation, dual numbers, tapes, hybrid methods, and a generic C++ implementation that computes gradients and solves optimisation problems.
A KVM-based x86_64 userspace hypervisor that runs any Linux ELF binary — static or dynamic, including Python and Node — inside a sandboxed guest VM with configurable filesystem policy, syscall interception, and process snapshotting.
A ptrace-based recording tool that intercepts every syscall made by a process tree — file reads, writes, forks, execves — and stores the full trace in a DuckDB database. File writes can be redirected to a content-addressed store for reproducible builds and sandboxed execution.
A companion website for the Buckaroo package manager — browse ~400 C++ packages from GitHub, explore the dependency graph, and find what you need instantly with precompiled fuzzy search.
How Buckaroo's dependency resolver borrows ideas from SAT solvers — using conflict-driven clause learning to prune the search space and resolve C++ packages blazingly fast.
How BuildInfer uses ptrace to record system calls during a build, analyse the resulting event log, and automatically generate Buck or Bazel build files — demonstrated on LLVM, OpenCV, and Mapnik.
A dynamic build-system analyser that uses ptrace to record system calls during a build, then analyses the event log to automatically transpile build scripts from any build system to Buck or Bazel.
Fetching a specific commit hash from a Git repository is surprisingly non-trivial. Here's why — and the progressive strategy that makes it fast.
We implemented SmallFun, an alternative to std::function using fixed-size capture optimization (a form of small-buffer optimization) that is 3–5x faster in benchmarks.
A header-only C++ alternative to std::function that uses fixed-size capture optimization (small-buffer optimization) to avoid heap allocation — 3–5x faster in benchmarks.
Conduit is a header-only library that leverages the Coroutine TS to introduce lazy sequences to C++, enabling concise infinite-sequence programming with zero-cost abstractions.
A header-only C++ library that leverages the Coroutine TS to bring lazy sequences to C++ — infinite sequences, sequence transformations, and zero-cost abstractions.
One motivating example where lazy sequences enable you to separate your concerns and maximize code reuse — without increasing complexity.
Use value_ptr to get value semantics on a heap resource. At the cost of some extra copying, your code will be simpler and easier to reason about.
A header-only C++ library providing value_ptr — a smart-pointer with value semantics that fills the gap left by unique_ptr, shared_ptr, and weak_ptr.
Consider using an Either type to handle errors — they lift errors into the type-system and have the same performance characteristics as error-codes.
A header-only C++ Either type for error handling — lift errors into the type-system with the same performance as error-codes and without the pitfalls of exceptions.
A decentralised package manager for Buck and Bazel projects, written in F# and winner of the 2019 F# open-source challenge, that resolves dependencies directly from source control using conflict-driven clause learning.
All tags