Recent submissions

Comment · 2 years ago
It is related to how much the country can spend through borrowing and printing. Very few counties spend less than they raise through taxation.
Comment · 2 years ago
Think how many game developers were able to realize their vision because Unity3D was accessible to them but raw C++ programming was not. We may see similar outcomes for other budding artists with the help of AI models. I'm quite excited!
Comment · 2 years ago
Thanks for sharing this, very interesting.

It seems that you cannot, in one database call, make a transaction?

You would need to push your transfer to the depot, then poll until it has been accepted.

If you do not poll, then your transaction may be written but as a no-op.

Does this increase latency for such applications?

Comment · 2 years ago

    indexes = function(data)
    query = function(indexes)
How does this model a classic banking app where you need to guarantee that transfers between accounts are atomic?
Comment · 2 years ago
An important factor is which country we are talking about. Only the US really has access to this "glitch" by being the world's reserve currency. UK austerity was so brutal because there's no real demand for GBP, outside of trading with the UK.
Comment · 2 years ago
> the barrier to rolling my own is lower for me than introducing a Java dependency.

Really? I never had problems using some JVM base image and deploying via a Docker image, which is what I would be doing anyway.

Comment · 2 years ago
> Have you tried to generate a SHA256 checksum for a file in the browser

Have you tried to do this in Python?

A Node comparison would be more appropriate.

Comment · 2 years ago
This is not the gotcha you think it is.
Comment · 2 years ago
Wow that's an interesting thought.

If every did their neighbor's laundry (say) and charged a fee, then everyone would be doing the same amount of laundry and have the same amount of money, yet GDP would rise?

Comment · 2 years ago
In practice, I think it's easier to use linting and type-systems to prevent other code from mutating you stuff than defensive copying.
Comment · 2 years ago
I use React.

Why does that require deep clones?

I simply do:

    return {
      ...current
      foo: "bar"
    };
Comment · 2 years ago
Use the spread syntax to make a shallow copy; it's more performant.
Comment · 2 years ago
I've never had the need to clone anything in a real JS code-base, personally.

What's the use-case?

Comment · 2 years ago
The docs are really poor. It makes me less confident that I have configured everything correctly.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton