Han writes stuffs here
  • About Me
  • Resources
    GitHub LinkedIn

PTRACE_O_TRACEEXEC in ptrace

Posted on January 16, 2020

ptrace’s manpage is a little confusing about the effect of the PTRACE_O_TRACEEXEC option: [Read More]
Tags: Linux ptrace

A Visualized Distributed Algorithm Playground

Posted on September 8, 2019

Play and experiment with your favorite distributed algorithms! Everything visualized. [Read More]
Tags: Distributed System

Type of `flip id`

Posted on August 25, 2019

What is the type of flip id? [Read More]
Tags: Haskell

Amortized LRU Cache (Now WITHOUT Linked List!)

Posted on June 3, 2019

As you probably know LRU cache is a common interview question. Just for the record, I know that the canonical... [Read More]
Tags: Data Structure

Covering a Boolean Matrix with Minimum Number of Rectangles

Posted on April 8, 2019

The problem (by @rubyleehs): Suppose we have a boolean matrix. How do we use the fewest (maybe overlapping) rectangles to... [Read More]
Tags: Algorithm

Nested Chairman Tree (Functional Segment Tree), and Beyond

Posted on April 3, 2019

Recently I ran into one (of the millions of variations of) sequence maintainence problem (BZOJ3065). We need to support insertion/deletion,... [Read More]
Tags: Algorithm Data Structure

Notes on GHC (1) - The Core Language

Posted on March 4, 2019

Introduction I have been working on ES.hs for a month or two. ES.hs is a compiler that compiles Haskell to... [Read More]
Tags: GHC Haskell

What does Haskell RankNTypes do? (1) - Semantics

Posted on February 26, 2019

Consider this function: tuple2Int :: (x -> Int) -> (a, b) -> (Int, Int) tuple2Int f (a, b) = (f... [Read More]
Tags: Haskell

Be Careful of Direct-Indexing and Modifying C++ Containers Simultaneously

Posted on February 26, 2019

There was this weird C++ bug I encountered, minimally reproducible by ```cpp #include #include [Read More]
Tags: C++

Yet Another Method to Generate Permutations

Posted on February 6, 2019

There are tons of methods to generate every permutation of some elements. And here’s another intuitive and efficient (beats 98.00%... [Read More]
Tags: Algorithm
  • RSS
  • GitHub
  • LinkedIn
  • StackOverflow

Han You  •  2021

Theme by beautiful-jekyll