Top all-time · #2693
tenthousandmeters.com
Personal blog · tenthousandmeters.com/blog · on HN as r4victorprogramming
tenthousandmeters.com is a personal blog at tenthousandmeters.com about programming. Since 2020, 28 different Hacker News readers have linked it 60 times, most often “How async/await works in Python (2021)”. No feed was found, so read it on the site itself.
Too few sampled comments (11) to say how often HN recommends it.?
Why HN links it
HN readers link this blog for deep dives into CPython internals and Python asyncio, especially the 12-part 'Python Behind the Scenes' series.
Summarised by Claude from a sample of 11 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- How async/await works in Python (2021)7 people · 7 mentions · first linked 2021-08-24
- How Python strings work4 people · 7 mentions · first linked 2021-02-23
- How the Python import system works4 people · 4 mentions · first linked 2021-07-14
- Python behind the scenes #10: how Python dictionaries work4 people · 4 mentions · first linked 2021-04-07
- The GIL and its effects on Python multithreading3 people · 3 mentions · first linked 2021-09-26
- Python behind the scenes #8: how Python integers work3 people · 3 mentions · first linked 2021-02-08
- How the CPython compiler works2 people · 3 mentions · first linked 2020-09-21
- SQLite concurrent writes and "database is locked" errors2 people · 3 mentions · first linked 2025-02-02
- /tag/python-behind-the-scenes/2 people · 2 mentions · first linked 2021-09-03
- /2 people · 2 mentions · first linked 2022-02-07
What Hacker News says?
EDIT: Paste this hacky snippet into your browser's console to save all of the links into your clipboard: (() => { let result = [...document.querySelectorAll('td a')] .map((link) => link && !link.href.includes('ycombinator') && !link.href.includes('javascript:void') ? link.href : '' ) .filter(Boolean); result = [...new Set(result)]; result.sort(); copy(result.join('\n\n')); })(); Just to help, here's a compiled-list…
Comment linking /
on “Ask HN: Great Blogs by Programmers”Submitted How the Python import system works as a story · 497 points
HN discussionhttps://tenthousandmeters.com/
Comment linking /
on “Ask HN: Great Blogs by Programmers”Submitted How the Python object system works as a story · 336 points
HN discussionThis is a similar article that I thought was pretty good: https://tenthousandmeters.com/blog/python-behind-the-scenes-...
Comment linking /blog/python-behind-the-scenes-12-how-asyncawait-works-in-python/
on “How Python asyncio works: recreating it from scratch”Submitted The GIL and its effects on Python multithreading as a story · 221 points
HN discussionPre-python 3.2, the format used for representing `str` objects in memory depended on if you used a "narrow" (UTF-16) or "wide" (UTF-32) build of Python. Fortunately, wide and narrow builds were abandonned in Python 3.2, with a new way of representing strings : current Python will use ASCII if there's no non-ASCII char, UCS-2 –UTF-16 without surrogate pairs — if there is no codepoint higher than U+FFFF, and UTF-32 el…
Comment linking /blog/python-behind-the-scenes-9-how-python-strings-work/
on “PEP 686 – Make UTF-8 mode default”Submitted How Python bytecode is executed as a story · 179 points
HN discussion> In 3.1 it was the default encoding of string (the type str I guess). No, what was used was what sys.getdefaultencoding(), which was already UTF-8 in 3.1 (I checked the source code). At that time, the format used for representing `str` objects in memory depended on if you used a "narrow" (UTF-16) or "wide" (UTF-32) build of Python. Fortunately, wide and narrow builds were abandonned in Python 3.2, with a new way of…
Comment linking /blog/python-behind-the-scenes-9-how-python-strings-work/
on “PEP 686 – Make UTF-8 mode default”Submitted Python behind the scenes #8: how Python integers work as a story · 163 points
HN discussionHi! I'm the author of this article. Thanks for posting it. The GIL is an old topic, but I was surprised to learn recently that it's much more nuanced than I thought. So, here is my little research. This article is a part of my series that dives deep into various aspects of the Python language and the CPython interpreter. The topics include: the VM; the compiler; the implementation of built-in types; the import syste…
Comment linking /tag/python-behind-the-scenes
on “The GIL and its effects on Python multithreading”Submitted How the CPython compiler works as a story · 112 points
HN discussionPython, for example, has arbitrary precision integers. That means that it is theoretically possible to represent any whole number in Python, at least assuming your computer has enough memory to support it. Under the hood, the `int` object can have several different implementations depending on how large the number is. So small numbers will be represented one way, and larger numbers might be implemented as 64-bit int…
Comment linking /blog/python-behind-the-scenes-8-how-python-integers-work/
on “Nearly all binary searches and mergesorts are broken (2006)”Submitted How Python attributes work as a story · 103 points
HN discussionSecond this book. I've also made a list of good resources on CPython internals: https://tenthousandmeters.com/materials/python-behind-the-sc...
Comment linking /materials/python-behind-the-scenes-a-list-of-resources/
on “How the CPython compiler works”Submitted How async/await works in Python (2021) as a story · 61 points
HN discussionI highly recommend Victor Skvortsov's exhaustive, 12-part series, "Python Behind the Scenes," a deep dive into the implementation details of just about every Python language feature one could possibly take for granted. There isn't a single one I haven't learned something from, but some of my personal favorites include: * Part 2, How the CPython compiler works: https://tenthousandmeters.com/blog/python-behind-the-sce…
Comment linking /tag/python-behind-the-scenes/
on “Pre-Allocated Lists in Python”Submitted How async/await works in Python as a story · 37 points
HN discussionHi! I'm the author of this post. I've been writing asynchronous Python code with async/await for quite a while but didn't have a perfect understanding of how it actually works: what await does; what an event loop really is and how it runs coroutines; what coroutines are; why Python has native coroutines as well as generator-based coroutines; how asyncio works; and so forth... In this post I've tried to answer all th…
Comment linking /tag/python-behind-the-scenes/
on “How async/await works in Python”Submitted How the CPython VM works as a story · 23 points
HN discussionEffective Python by Brett Slatkin is very good, still going through the Second Edition, but I like the practical side of this book. If you want to go really deeper like the inner working of CPython I'd recommend Anthony Shaw's CPython internals. It has been on my radar for some time now, still going through the serie of blog posts from tenthousandmeters[0] 0: https://tenthousandmeters.com/blog/python-behind-the-scen…
Comment linking /blog/python-behind-the-scenes-1-how-the-cpython-vm-works/
on “Ask HN: Advanced Python Coding Books”Submitted SQLite concurrent writes and "database is locked" errors as a story · 7 points
HN discussion> Async Python is still confusing af - when do I need it, It's needed when you're spending a lot of time waiting for an I/O request to complete (network/HTTP requests, disk reads/writes, database reads/writes) > what happens under the hood, https://tenthousandmeters.com/blog/python-behind-the-scenes-... (Please read the entire blog post - It goes through the necessary concepts like generators, event loops, & corouti…
Comment linking /blog/python-behind-the-scenes-12-how-asyncawait-works-in-python/
on “Overhead of Python Asyncio Tasks”Submitted How Python Integers Work as a story · 6 points
HN discussionIf you want to go really deep, I would recommend reading some blogs about Python internals: https://tenthousandmeters.com/tag/cpython/ https://rushter.com/blog/tags/cpython/ https://eli.thegreenplace.net/tag/python-internals https://realpython.com/cpython-source-code-guide/ I'm not aware of any good books about Python's internals.
Comment linking /tag/cpython/
on “Ask HN: Which book would you recommend for learning Python in detail?”Submitted How Python bytecode is executed as a story · 6 points
HN discussionThis blog helps me a lot about the motivation and underlying mechanism of python asyncio https://tenthousandmeters.com/blog/python-behind-the-scenes-...
Comment linking /blog/python-behind-the-scenes-12-how-asyncawait-works-in-python/
on “Coroutines for Go”Submitted The GIL and its effects on Python multithreading as a story · 5 points
HN discussionSubmitted Python behind the scenes #10: how Python dictionaries work as a story · 4 points
HN discussionSubmitted How Python object system works as a story · 4 points
HN discussion