Recent submissions

Comment · 4 years ago
Hey,

Thanks for the recipe! I am also into fermented recipes.

Quick question, where do you buy Habanero Chilis in Germany? I somehow never saw them in supermarkets or "wochenmarkt"s.

Comment · 4 years ago
I also read it this year.

It came very close to me. The society of the book was very similar to the society in which I grew up, Soviet Union in 90s.

Some of the lines from the book:

".. the social consience completely dominates the individual conscience, instead of striking a balance with it. We don't cooperate - we obey. We fear being outcast, being called lazy, dysfunctional, egoizing. We fear our neighbor's opinion more than we respect our own freedom of choice."

"No matter what their society's like, some of them must be decent. People vary here, don't they? Are we all perfect Odonians? But in a sick organism, even a healthy cell is doomed."

Comment · 5 years ago
Comment · 5 years ago
https://monkey.org/~marius/

Marius also has great profile, I am happy user of his libraries (e.g, finagle)!

Comment · 5 years ago
Books:

Introduction to Reliable and Secure Distributed Programming (https://www.amazon.de/-/en/Christian-Cachin/dp/3642152597).

I took a class with Luis Rodrigues (one of the authors), the book introduces the fundamentals of distributed systems. For example, you would build leader election from first principles.

Comment · 6 years ago
Comment · 6 years ago
Wow. This was one of the most watched movies around our household during my childhood.

The place in the movie is just near my hometown, old Merv in Turkmenistan.

Comment · 7 years ago
ohh wow,

I remember being fascinated with Pascal program that makes snow fall.

Basically, it was white dots on a blue background in an infinite loop. :)

Comment · 7 years ago
Comment · 7 years ago
Read code reviews of senior developers.

I follow several public and private projects that I do not contribute at all. Any time there is a review comment on a pull request from senior devs, I try to check if it is new to me. If so, I note down the problem and suggestions.

Here are some examples:

- Aleks suggested to limit the try to the places where exceptions can be thrown and move everything else out of the try.

- Thomas suggested to use =StringBuilder= instead of =String.format=. The former is faster and more robust.

- Oscar suggested to use a =parameter object= or a =builder= when there are many (more than 3-4) parameters.

Comment · 8 years ago
Off-topic.

Does anyone know how I can convert AST into stream of bytecodes? Are there any good example language implementations to learn?

Comment · 8 years ago
Opening the page and seeing first picture made me smile :) That is a place in Turkmenistan!

Coming from there and living in Germany, I wish someday to be able to travel the world possibly with German passport though..

Comment · 8 years ago
Comment · 8 years ago
How would you rate this solution? Assuming we have static keypad grid.

  long moves(int start = 1, int len) {
    assert(len > 0);
    long[] cur = new long[10];
    for (int i = 0; i < 10; i++) {
      cur[i] = 1;
    }
  
    long[] nxt = new long[10];
    while (len-- > 0) {
      nxt[0] = cur[4] + cur[6];
      nxt[1] = cur[8] + cur[6];
      nxt[2] = cur[7] + cur[9];
      nxt[3] = cur[4] + cur[8];
      nxt[4] = cur[3] + cur[9] + cur[0];
      nxt[5] = 0;
      nxt[6] = cur[1] + cur[7] + cur[0];
      nxt[7] = cur[2] + cur[6];
      nxt[8] = cur[1] + cur[3];
      nxt[9] = cur[4] + cur[2];

      for (int i = 0; i < 10; i++) {
        cur[i] = nxt[i];
      }
    }
  
    return cur[start];
  }

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton