Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    P

    Python Sweetness

    pythonsweetness.tumblr.com · Personal blog · on HN since 2013

    Python Sweetness is a blog by David Wilson, the author of Mitogen, on Linux internals, Python performance, and infrastructure code.

    Visit blogHN submissions
    SecuritySystems & PerformanceOpen Source & Linux
    What HN says

    HN links its post on the Linux page table isolation patches, which commenters cite as informed speculation that spotted the Meltdown fix before disclosure.

    Stats for nerds
    42HN people shared it
    34linked in comments
    2.2Kstory points
    Jan 2018last shared
    2013people per year2018

    Top posts on HN

    1. 1
      The mysterious case of the Linux Page Table Isolation patches
      12 people · 1K points · first shared 2018 · 254 comments on HN
    2. 2
      How to lose $172,222 a second for 45 minutes
      2 people · 613 points · first shared 2013 · 236 comments on HN
    3. 3
      Please stop serving .git to the outside world
      1 person · 247 points · first shared 2013 · 85 comments on HN
    4. 4
      Mitogen, an infrastructure code baseline that sucks less
      2 people · 112 points · first shared 2017 · 23 comments on HN
    5. 5
      Skip lists: fast PyPy-compatible ordered map in 89 lines of Python
      1 person · 77 points · first shared 2013 · 25 comments on HN
    6. 6
      How to lose $172,222 a second for 45 minutes
      6 people · 29 points · first shared 2015 · 3 comments on HN
    7. 7
      Fun with BPF, or, shutting down a TCP listening socket the hard way
      1 person · 26 points · first shared 2015 · 7 comments on HN
    8. 8
      Pro Linux systems spelunking
      2 people · 20 points · first shared 2016 · 2 comments on HN
    9. 9
      excellent rant on the dumbing down of data access and UIs
      1 person · 13 points · first shared 2013 · 2 comments on HN
    10. 10
      Quadrupling Ansible performance with Mitogen
      5 people · 11 points · first shared 2018 · 1 comments on HN

    What HN people wrote when they linked it

    • testplzignoreJan 2018

      I'm trying to understand the timeline of everything that is going on.

      https://cyber.wtf/2017/07/28/negative-result-reading-kernel-memory-from-user-mode/ was published on 2017-07-28.

      The pythonsweetness.tumblr.com post talks about patches being first posted in October (anyone have a link to the first public patch?).

      https://lwn.net/Articles/738975/ was published on 2017-11-15.

      https://lwn.net/SubscriberLink/741878/5c019c71457e0da6/ was published on 2017-12-20.

      https://lkml.org/lkml/2017/12/27/2 was published on 2017-12-27.

      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5aa90a84589282b87666f92b6c3c917c8080a9bf shows that Linus merged the patches on 2017-12-30.

      https://lwn.net/Articles/742404/ was published on 2017-12-30.

      http://pythonsweetness.tumblr.com/post/169166980422/the-mysterious-case-of-the-linux-page-table, which was the post that grabbed everyone's attention, was published on 2018-01-01.

      Was the blog post on 2017-07-28 talking about the same vulnerability that has the world on fire today, or are there multiple issues going on?

    • ta_whJan 2018

      See the three-year warranty here for boxed CPUs:
      https://www.intel.com/content/dam/support/us/en/documents/processors/Limited_Warranty_8.5x11_for_Web_English.pdf

      Note the first bullet under "WHAT THIS LIMITED WARRANTY DOES NOT COVER":

      "design defects or errors in the Product (Errata). Contact Intel for information on characterized errata."

      Guess we're not covered on this one.

      EDIT: That being said, given the potential scope of this issue (years of affected CPUs, massive PR hit) I'm hoping that Intel will at least offer some remedy to recent buyers. According to the article from The Register [1], OS vendors have been working on the fix since November. The blog posted over on pythonsweetness [2] posits the bug may have been identified in October. It'd be interesting to know for how long Intel has been selling Coffee Lake CPUs that are known to be vulnerable.

      [1] https://www.theregister.co.uk/2018/01/02/intel_cpu_design_flaw/

      [2] http://pythonsweetness.tumblr.com/post/169166980422/the-mysterious-case-of-the-linux-page-table

    • ErwinNov 2013

      Seccomp might be a possibility here, but will require one process per live robot (and Linux). With seccomp your process can do nothing but read/write from its file descriptors (so you have to make sure they are safe) but can do nothing more (thus you cannot import modules). So you can exchange messages via file descriptors and otherwise use any Python (or even any other language at all features). Here's one recent article about it: http://pythonsweetness.tumblr.com/post/65442885019/secure-low-overhead-eval-sandbox-in-80-lines-of-python

      RestrictedPython, used in zope, is nice too. However it cuts you out of many Python features that it cannot statically validate.

    • nlMar 2017

      While I agree with your point (and often use this in interview questions) that wasn't what caused the Knight Capital problem.

      That was bad software engineering and deployment practices, and had nothing to do with interprability of the model (actually it had little to do with the model at all.) They repurposed a feature toggle, then misdeployed the code: http://pythonsweetness.tumblr.com/post/64740079543/how-to-lose-172222-a-second-for-45-minutes

      I understand that this was an example, but I'm sure someone will misread it as what happened in that case.

    • amckennaJan 2018

      Here is some more context - http://pythonsweetness.tumblr.com/post/169166980422/the-mysterious-case-of-the-linux-page-table

      The connection between the linked article in this comment and the linked page for this post is that there is a potentially huge bug that will be made public soon and it just affects Intel processors, not AMD - hence the large sale of stock by the Intel CEO.

    • rstJan 2018

      Reports are that Windows is also getting an update for this; see refs to recent NT kernels here: http://pythonsweetness.tumblr.com/post/169166980422/the-mysterious-case-of-the-linux-page-table

      and the original source for that report:
      https://twitter.com/aionescu/status/930412525111296000

      OSX and BSD variants are an interesting question...

    Related

    PyPy Blogmorepypy.blogspot.com242 people

    Let's Remove the Global Interpreter Lock

    PyPy Blog
    Company · last shared 2024
    Bite Codebitecode.dev54 people

    A year of uv: pros, cons, and should you migrate

    Bite Code
    Personal · last shared 2026
    Cal Patersoncalpaterson.com102 people

    Firefox usage is down despite Mozilla's top exec pay going up

    Cal Paterson
    Personal · last shared 2026
    Dev Geniusmedium.com/dev-genius36 people

    A principled approach to GraphQL query cost analysis

    Dev Genius
    Publication · last shared 2026
    Ian Bickingblog.ianbicking.org107 people

    Firefox Was Always Enough

    Ian Bicking
    Personal · last shared 2026
    Justine Tunneyjustine.lol251 people

    Show HN: Redbean – Single-file distributable web server

    Justine Tunney
    Personal · last shared 2026
    Textual Blogtextual.textualize.io54 people

    Algorithms for high performance terminal apps – Textual

    Textual Blog
    Company · last shared 2026
    Python Software Foundation Blogpyfound.blogspot.com147 people

    PSF has withdrawn $1.5M proposal to US Government grant program

    Python Software Foundation Blog
    Company · last shared 2026