Recent submissions

Comment · 4 years ago
I really enjoy this site's design. At first I thought that LocalCDN was blocking some CSS/JS but to my surprise, no - it just looks that way. I like it.
Comment · 4 years ago
I'm glad I found this thread and thank you for not self censoring this time. I've very often done the same. And yes, the vBulletin style forums is something I really miss.
Comment · 4 years ago
Why the downvotes? I am a Hindu and this is a sincere answer and actual way of having influence on where you're born. Any other ideas?
Comment · 4 years ago
> If only one could control the place of birth…

Puny aur punarjanm

Comment · 4 years ago
> I fail to see the benefit of subscribing to a viewpoint that is so black and white, and why definition that allows for no exception is necessary.

Maybe look at it in a different situation. Imagine someone punched you in the face and when you confront them about it they saying that you're holding to silly semantics about what it means or does not mean to get punched in the face.

Comment · 4 years ago
Probably the time investment. It takes a lot longer for trees to be ready for harvest.
Comment · 4 years ago
Eh... The moderator transparency here is very low. Even reddit has moderation logs.
Comment · 4 years ago
I'd say it's evidence based skepticism
Comment · 4 years ago
Why didn't you restore the original comment? It doesn't seem to break any rules. The most frustrating aspect of HN is that there is no easy way to have meta discussion about the rules or the actions of users.
Comment · 4 years ago
Here's an implementation of a prime finding algorithm in pure (only type-level) Typescript.

    type IsPrime<
      MaybePrime extends number,
      NumAsTuple extends unknown[] = [],
      RemainderAsTuple extends unknown[] = NumAsTuple,
    > =
      MaybePrime extends NumAsTuple["length"]
        ? NumAsTuple["length"] extends RemainderAsTuple["length"]
          ? NumAsTuple["length"] extends (1 | 2 | 3 | 4 | 5 | 6)
            ? NumAsTuple["length"] extends (1 | 2 | 3 | 5)
              ? true
              : false
            : NumAsTuple extends [infer _, infer _, infer _, infer _, infer _, infer _, ...infer Rest]
              ? IsPrime<MaybePrime, NumAsTuple, Rest>
              : false
          : RemainderAsTuple["length"] extends (1 | 2 | 3 | 4 | 5 | 6)
            ? RemainderAsTuple["length"] extends (1 | 5)
              ? true
              : false
            : RemainderAsTuple extends [infer _, infer _, infer _, infer _, infer _, infer _, ...infer Rest]
              ? IsPrime<MaybePrime, NumAsTuple, Rest>
              : false
        : IsPrime<MaybePrime, [...NumAsTuple, 1]>;
Comment · 4 years ago
Which game? bzflag is the only one that comes to mind, but I am not a gamer.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton