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
- 1How LLMs Work6 people · 7 points · first shared 2026 · discussion on HN
- 2Bloom Filters4 people · 6 points · first shared 2025 · discussion on HN
- 3AI Workflows Need Topological Sort4 people · 4 points · first shared 2026 · discussion on HN
- 4Finite State Machines with Python Coroutines3 people · 87 points · first shared 2020 · 15 comments on HN
- 5Constant Folding in Python3 people · 8 points · first shared 2021 · discussion on HN
- 6How LLM Inference Works3 people · 4 points · first shared 2025 · 1 comments on HN
- 7Temporal Primer – Building Long-Running Systems3 people · 3 points · first shared 2026 · discussion on HN
- 8Databases Were Not Designed for This3 people · 3 points · first shared 2026 · discussion on HN
- 9Constant Time LFU2 people · 74 points · first shared 2020 · 24 comments on HN
- 10Inheritance in C using structure composition2 people · 68 points · first shared 2020 · 28 comments on HN
- 11Israeli Queues2 people · 32 points · first shared 2020 · 14 comments on HN
- 12Eight rituals to be a better programmer2 people · 31 points · first shared 2020 · discussion on HN
- 13I changed Python and made Integers iterable2 people · 9 points · first shared 2020 · 1 comments on HN
- 142Q: The Postgres Caching Algorithm2 people · 8 points · first shared 2020 · discussion on HN
- 15Slowsort – A Pessimal Sorting Algorithm2 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
butUhmErm · 2022-08-31
A simpler ECS pattern in plain C
https://www.gamedev.net/articles/programming/general-and-gameplay-prog…
See post on C struct composition: https://arpitbhayani.me/blogs/inheritance-c
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.