Log inSign up
Log inSign up
Anton Zhiyanov
2,793 posts
Anton Zhiyanov profile banner
@ohmypy

Anton Zhiyanov

@ohmypy
Maintainer at github.com/nalgeon. Author at antonz.org
antonz.org
Joined March 2013
38 Following
8,376 Followers
RepliesRepliesRepostsRepostsMediaMedia

Anton Zhiyanov’s posts

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
    @ohmypy
    Anton Zhiyanov
    @ohmypy
    Sep 26
    New interactive mini-book: Go concurrency distilled It gives a brief overview of many concurrency topics in Go, along with examples you can run in the browser. There's also a PDF version. The book is AI-free.
    Card image
    Go concurrency distilled
    From antonz.org
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    9h
    Probabilistic data structures: MinHash MinHash estimates how similar two sets are. It summarizes each set in a short fixed-size signature (for example, 256 numbers). Comparing two signatures gives the approximate Jaccard similarity of the sets: |A∩B| / |A∪B|, the proportion of
    Image
    View media
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Dec 3
    Do not ignore this. Do not underestimate it. Yes, I was briefed on something. Yes, it's a big deal. No, I can't give you all the details yet*. But it is urgent to be extra cautious when working with large maps in Go. * Actually, you know what? I can, and I will. What the hell — we only live once!
    Card image
    Go's map does not shrink
    From antonz.org
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Dec 3
    Laravel Rust? Laravel Go? Nah. WordPress Zig is my choice!
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Dec 2
    Coming in Go 1.28: Use maps.Grow to increase the capacity of an existing map Go code can pre-size a new map with make(M, size), but an existing map grows one rehash at a time. If you merge many entries into a map, you pay for each intermediate growth, which is ~50% more
    Image
    View media
Advertisement
Advertisement