Recent submissions

Comment · 6 years ago
It sounds like you were writing your documents in troff/groff.
Comment · 7 years ago
Wouldn't it be possible to, with a really strange number format for integers, define SIZE_MAX as INFINITY? C doesn't require twos-compliment numbers, after all.
Comment · 7 years ago
A while ago, while talking to a friend about game design, I had the realization:

Players will quit over issues they see in a game, even when in actuality those are non -issues.

Comment · 7 years ago
You're forgetting. All these are cryptocurrencies. You need to have more than that. I own 30,000 different kinds of assets. Stocks, bonds, crypto, I even own all of the funds. You're suffering from way too much centralization.
Comment · 7 years ago
Rust sort of already has this, though implemented in a worse way. They use 0.[major/minor].[minor/patch]. When the library author wants to indicate that their library is stable, they go to 1.0.0 and promise that they'll never make a breaking change.

The problem with that approach is that you never know if a change is major or minor, since many projects use the 0.A.B differently. Even if projects were standardized, you're missing some information compated to A.B.C or A.B.C.D.

Comment · 8 years ago
My interpretation of the article was that chrome ships with a blocklist of websites that have annoying autoplay features, but will automatically remove websites from that blocklist that you usually start by playing their videos, and automatically adds websites to the blocklist if the first thing you do is pause the video.

Youtube probably is not on the blocklist, but it will add youtube to your personal blocklist if you always pause the videos.

Comment · 8 years ago
Comment · 8 years ago
I assume Waterluvian is using the term to refer to a mac laptop with Windows or Linux installed onto it.
Comment · 8 years ago
Python uses * * , but that is ambigous with

  int a = 1;
  int *b = &a;
  int c = a ** b;
  // Am I casting b to an int (returning it's address) and exponenting it or am I derefrencing b and multiplying it's result with a?
Comment · 8 years ago
It is possible for a compiler to optimize long method chains into the equivalent imperative code. The rust compiler is an example, and in the case of the iterator trait, it can actually be optimized better than the equivalent imperative code, by removing checks when indexing into the array.
Comment · 8 years ago
Counter-argument to changing the return type of a function with var: You can change the return type of the function to another type that might break some assumptions later in the code.

For example, if the code assumes it has a type Foo with a length field, and you change the return type of tha function to a Bar without that length field, the compiler will complain that Bar doesn't have a length field, rather than complaining about trying to assign a Bar to a variable of type Foo.

Even worse is if the Bar type changes the symantics of that length field (perhaps going from the number of elements to the max index of elements, causing an off-by-one error), the code could break silently.

That's mostly a strawman argument, however it is worth noting.

Comment · 8 years ago
Small thing to note: While a lot of intelectual discussion does go on in /g/, the board's culture does often encourage misleading information and trolling. Browsers of reddit and Hacker News are often called out and ridiculed, and a number of technologies are dismissed based on being ran by "SJWs".

If you can filter out these things, /g/ does have a lot of discussion, but it is very different from Hacker News.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton