The Art of Huff
summary
Huff is a low-level EVM language that claims measurable gas wins by compiling hand-crafted bytecode: an early assembler for elliptic-curve ops beat the precompile, TypeScript and Rust rewrites spark a 2023 renaissance, and the language exposes Huff macros with implicit pushes, template args and jump labels so code copies in at compile time. A practical trick uses a jump table via memory to get constant-gas external dispatch; use cases are MEV squeezes, stateless DeFi periphery, and teaching EVM internals.
AI-written summary · about
chapters (4)
related talks
31mSo, you think you can write an EVM decompiler?
21mHitchhiker’s Guide to the EVM
21mScaffold-Eth, OpenZeppelin, and EVM Optimization
16mSpecifying Smart Contract with Hax and ConCert
25msolx: an LLVM-based Solidity toolchain
48mWhy Writing Blockchain Applications is Hard, and How FP Can Help
21mPractical Verification Of Smart Contracts Using Memory Splitting
10mHow to Understand a Smart Contract Hack
