Storing 12 billion 40-bit integers
Problem This note is about a problem of efficiently storing 12 billion account IDs, which are 40-bit integers. I mean to use this set of integers in an event-processing service to filter out event...
Problem This note is about a problem of efficiently storing 12 billion account IDs, which are 40-bit integers. I mean to use this set of integers in an event-processing service to filter out event...
In this blog post: I describe the use of Lua coroutines in the context of Lua programming for Neovim. I provide generic converters from callback-based code for easy interaction with existing,...
This note introduces the parsing recipe pattern. This Haskell parsing pattern addresses the newtype proliferation problem that arises with typeclass-based generic parsers like Cassava or Aeson. At ...
This note is about my complete setup for building Rummikub Solver on Windows for Windows. Rummikub Solver is a Haskell application that depends on external C libraries. As a Unix-native, I found i...
Neovim Plenary’s async.run seems to be doing an impossible trick. It starts a concurrent computation that runs even after the main script has finished and calls the provided callback once it’s done...
This note is about principles guiding function parameter order. As the object of study, let’s take the following function: // Hardcodes stylesheet styles into HTML. function applyStylesInline(css:...
How do I enable a function to read and write to just one file? This post explores some options I’ve considered. I was writing a program that needed to read and write a timestamp from a file in ord...
Last March I’ve discovered and reported a vulnerability on Coop’s websites (Coop is a major grocery store chain in Switzerland). I found out that the chains’ receipts are publicly visible. Coop had...
There’s a practice exercise on Kaggle that gives Titanic passenger data and asks us to find the best predictor of survival. The exercise seems exciting, so, in this post, I will dive into Titanic d...
“Blockchain” is my candidate for the word of 2017. Almost every week, I read news about new blockchain-based business ventures that are to disrupt or at least significantly improve an area of busin...