Statistical Profiling in Python, Part 1: Time

I was working on a profiling system at work and became jealous of Go. The Go runtime has CPU and heap profilers built into the language. You can attach to a running production service, pull a profile over HTTP, and explore it with go tool pprof — flame graphs, call trees, diffs between two snapshots — without restarting anything or deciding in advance that today was the day you would need a profile.

AlphaCats: Counterfactual Regret in a Hidden-Information Game

Over the holidays I played Exploding Kittens with my family for the first time.The player who draws the “exploding cat” card loses unless they can defuse it; cards can skip turns, draw from the bottom of the deck, reveal the next few cards, shuffle the deck, or force a card to change hands. There are expansion decks with additional cards and unique mechanics. It is a fun game and can be played with almost any number of players. I lost, and in typical fashion, set out to solve it. The result is AlphaCats.

Docker for Mac Memory Leak

It seems that the default settings in Docker for Mac do not enforce any log rotation for services running on the integrated Kubernetes. This led to a seeming memory leak that would eventually crash my computer for long-running services. While this is somewhat understandable, given that Docker for Mac is clearly targeted for development, it still seems like an unfortunate default.

Pagination


© 2018. All rights reserved.

Powered by Hydejack v9.2.1