Log inSign up
atarpara
372 posts
atarpara profile banner
@atarpara

atarpara

@atarpara
Open to work | ✯ solady.org | prev. @onchainheroes
mload(0x40)
github.com/atarpara
Joined January 2015
1,115
Following
898
Followers
RepliesRepliesRepostsRepostsMediaMedia

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • Pinned
    @atarpara
    atarpara
    @atarpara
    May 14
    New article: deriving the math behind Solady's 67-byte, 114-gas sqrt(x) from first principles. The Solady CLZ PR just merged! 🚀 github.com/Vectorized/sol… No magic multipliers Exactly 6 Babylonian iterations 1 floor correction Full derivation 👇
    Image
    2
  • @atarpara
    atarpara
    @atarpara
    May 30
    1/4 Answer: Version D1 is cheaper by 6 gas! 🎉 This behavior is caused by the Solidity compiler's internal "stack scheduling" heuristic during code generation. It seems counterintuitive to delay a revert check, but on the happy path, it makes a massive difference to stack
    @atarpara
    atarpara
    @atarpara
    May 28
    Solidity Compiler Quiz Challenge Both functions calculate the exact same mathematical expression. Which version is cheaper on the happy path, and why? 👇 (Spoiler: This is used in `solady.fullMulDiv()`)
    Image
    1
  • @atarpara
    atarpara
    @atarpara
    May 30
    Solady update: Added a CLZ variant to LibRLP. LibRLP.encodeUint() is now 118 gas cheaper. PR: github.com/Vectorized/sol… More optimizations coming soon.
    Image
    ✨ Added `LibRLP.sol` with clz by atarpara · Pull Request #1535 · Vectorized/solady
    From github.com
    1
  • @atarpara
    atarpara
    @atarpara
    May 28
    Solidity Compiler Quiz Challenge Both functions calculate the exact same mathematical expression. Which version is cheaper on the happy path, and why? 👇 (Spoiler: This is used in `solady.fullMulDiv()`)
    Image
    1
  • @atarpara
    atarpara
    @atarpara
    May 16
    New article: deriving the math behind Solady’s `cbrt(x)` implementation from first principles. What is the 0x90b5e5 constant actually doing? original implementation by @duncancmt * Why cube root needs magic multipliers * Why sqrt does not * Optimal Initial guess * Exactly 5
    Image
    5
Advertisement
Advertisement