Recent submissions

Comment · 1 year ago
Which Linux version did you use for the io_uring tests? Unless I missed it I don't see it mentioned.
Comment · 1 year ago
> `ctx.Value` is an `any -> any` kv store that does not come with any documentation, type checking for which key and value should be available

The docs https://pkg.go.dev/context#Context suggest a way to make it type-safe (use an unexported key type and provide getter/setter). Seems fine to me.

> What if you just use a custom struct with all the fields you may need to be defined inside?

Can't seamlessly cross module boundaries.

Comment · 3 years ago
That's not going to happen. Check out "induced demand".
Comment · 3 years ago
Comment · 4 years ago
> Object.freeze does make an object immutable

If you look at the Hardened Javascript example:

    const makeCounter = () => {
      let count = 0;
      return harden({
        incr: () => (count += 1),
        decr: () => (count -= 1),
      });
    };
The "counter object" here is mutable. I think that's what they mean.
Comment · 4 years ago
What advantage does pg_repack have when you only rebuild an index? Or do you mean it has advantage when pg_repack is run on the entire table?
Comment · 4 years ago
> One possible solution currently considered is to ask Article 5 protections from NATO for the duration of the membership process.

The report discusses this, and mentions two reasons against doing that:

- What happens if you do it, and then the referendum votes against joining? You're screwed from both ends.

- Due to the previous reason, there will be extreme pressure to vote for joining in the referendum, making it not very democratic.

Comment · 5 years ago
Basically, their answer is yes.

First, under this system, long-term speculation is not really viable, due to the high tax. So the buyer must have some reason for paying higher than the price you set, which you don't see, i.e. you under-utilize the asset. Google/Facebook ads work this way - every slot is always up for auction. Also similar dynamics in partnership agreement's "shotgun clauses", etc.

Second, you can always factor in your sentimentality into your price, then the buyer will buy your neighbor's house instead. But you have to pay for it in the form of a higher tax. This is like a penalty for obstructing economic efficiency.

Third, this system pretty much does away with the strict idea of private property, into what they call "partial common ownership". It's basically a way to have shared ownership (as in communism) without the central planning, i.e. in a way that might actually work. (In fact, it quite reduces the role of government.)

I'm not advocating for this system, but I think it's fun to think about.

Comment · 5 years ago
The book Radical Markets proposes the following tax (to replace most other taxes), quote:

Every citizen and especially corporation would self-assess the value of assets they possess, pay a roughly 7% tax on these values and be required to sell the assets to anyone willing to purchase them at this self-assessed price.

Comment · 5 years ago
Java actually doesn't need to add any features for it to support this, it needs to remove them. I recommend reading this excellect article: http://habitatchronicles.com/2017/05/what-are-capabilities/

The gist is:

Rule #1: All instance variables must be private

Rule #2: No mutable static state or statically accessible authority

Rule #3: No mutable state accessible across thread boundaries

Comment · 5 years ago
Comment · 7 years ago
Comment · 7 years ago
We've been using it for some time as well, not even with a random value, just `X-Entity-Ref-ID: null` works too. Found it through some obscure StackOverflow answer.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton