compiler-optimization

Tag

Cards List
#compiler-optimization

The mask that compiles to nothing: how HotSpot's JIT learned to reason about bits

Lobsters Hottest · 5d ago Cached

This article explains how HotSpot's C2 JIT compiler uses a 'known bits' abstraction to track which bits of an integer are definitely zero or one, enabling optimizations like eliminating redundant bitwise AND operations.

0 favorites 0 likes
#compiler-optimization

Trust your compiler: Modern C++

Hacker News Top · 2026-07-01 Cached

Article comparing old C++ performance tricks with modern compiler capabilities, showing that compilers can now optimize naive code better than hand-tuned hacks. Includes benchmarks on AMD Zen 5 with Clang 21.

0 favorites 0 likes
#compiler-optimization

@aryanvs_: to the untrained eye, this may look like noise. but in here lies months of work trying to write a compiler the best par…

X AI KOLs Timeline · 2026-06-28 Cached

A developer shares months of work building a compiler that outperforms cuBLAS for matrix multiplication on an A100 GPU, with visualizations.

0 favorites 0 likes
#compiler-optimization

Stealing from Biologists to Compile Haskell Faster

Hacker News Top · 2026-05-30 Cached

The article explores the optimal ApplicativeDo scheduling problem in GHC, which is disabled by default due to slowness, and draws an analogy to the dynamic programming algorithm used for RNA folding to improve compiler performance.

0 favorites 0 likes
#compiler-optimization

Leaving performance on the table

Lobsters Hottest · 2026-05-29 Cached

A technical blog post demonstrating how Profile-Guided Optimization (PGO) with LLVM can significantly improve binary performance beyond standard -O3 and LTO, using SQLite as a benchmark.

0 favorites 0 likes
#compiler-optimization

The secret history of Recursion Schemes

Lobsters Hottest · 2026-04-22 Cached

A talk tracing the evolution from goto spaghetti to structured loops and finally to recursion schemes, showing how control-flow abstractions mirror data structures and why most languages still hide the best combinators.

0 favorites 0 likes
#compiler-optimization

When compilers surprise you

Lobsters Hottest · 2026-04-19 Cached

Matt Godbolt explores compiler optimizations that convert an O(n) summation loop into an O(1) closed-form solution, highlighting how Clang and GCC employ sophisticated techniques like loop unrolling and mathematical simplification to dramatically improve code performance.

0 favorites 0 likes
← Back to home

Submit Feedback