Arpit Bhayani

arpitbhayani.me · Personal blog · on HN since 2020

Arpit Bhayani, a software engineer, writes explainers on LLMs, databases, Python internals, and distributed systems topics.

What HN saysCommenters link his posts for explaining database ACID properties' implementation, Python constant folding, and C struct composition.
60HN people shared it
4linked it in comments
143stories submitted
796story points
3 months agolast shared
2020people per year2026

Most-shared posts

  1. 1
    How LLMs Work
    6 people · 7 points · first shared 2026 · discussion on HN
  2. 2
    Bloom Filters
    4 people · 6 points · first shared 2025 · discussion on HN
  3. 3
    AI Workflows Need Topological Sort
    4 people · 4 points · first shared 2026 · discussion on HN
  4. 4
    Finite State Machines with Python Coroutines
    3 people · 87 points · first shared 2020 · 15 comments on HN
  5. 5
    Constant Folding in Python
    3 people · 8 points · first shared 2021 · discussion on HN
  6. 6
    How LLM Inference Works
    3 people · 4 points · first shared 2025 · 1 comments on HN
  7. 7
    Temporal Primer – Building Long-Running Systems
    3 people · 3 points · first shared 2026 · discussion on HN
  8. 8
    Databases Were Not Designed for This
    3 people · 3 points · first shared 2026 · discussion on HN
  9. 9
    Constant Time LFU
    2 people · 74 points · first shared 2020 · 24 comments on HN
  10. 10
    Inheritance in C using structure composition
    2 people · 68 points · first shared 2020 · 28 comments on HN
  11. 11
    Israeli Queues
    2 people · 32 points · first shared 2020 · 14 comments on HN
  12. 12
    Eight rituals to be a better programmer
    2 people · 31 points · first shared 2020 · discussion on HN
  13. 13
    I changed Python and made Integers iterable
    2 people · 9 points · first shared 2020 · 1 comments on HN
  14. 14
    2Q: The Postgres Caching Algorithm
    2 people · 8 points · first shared 2020 · discussion on HN
  15. 15
    Slowsort – A Pessimal Sorting Algorithm
    2 people · 6 points · first shared 2020 · discussion on HN

What HN people wrote when they linked it

arpitbbhayani · 2020-09-19
https://arpitbhayani.me 66% of users are expected to like your site :D
adarshd · 2023-10-08
This blog post series explores ACID properties in databases and touches upon the implementation side which is not usually covered anywhere. Other posts in the series: https://arpitbhayani.me/blogs/consistency/ https://arpitbhayani.me/blogs/isolation/ https://arpitbhayani.me/blogs/durability/ - Shortly explains how databases achieve durability
faho · 2021-07-10
>presumably Python has a similar "cache" of such constant strings. Not really. You're hitting constant folding: https://arpitbhayani.me/blogs/constant-folding-python This isn't a pre-made list of certain strings that should be cached, this is the compiler noticing that you mentioned the same constant a bunch of times. Also in general you would see a lot of things with the same id because python uses references all over the place. E.g. assignment never copies.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close