diegoholiveira

Joined 8 years ago

Karma
343
Submissions
255
Member since
Aug 28
View on Hacker News

Recent submissions

Comment · 3 months ago
The post advocates for structured concurrency, but it compares a language primitive with a library abstraction. In Go, implementing the same basic nursery concept is straightforward with `golang.org/x/sync/errgroup`:

  g, ctx := errgroup.WithContext(ctx)

  g.Go(func() error {
    return task1(ctx)
  })

  g.Go(func() error {
    return task2(ctx)
  })

  return g.Wait()
If you don't care about error propagation or cancellation at all, the standard library also provides `sync.WaitGroup`.

The author also seems to argue that structured concurrency is always preferable, but I do not think that is true. There are valid use cases for unstructured concurrency, particularly for long-lived or independently managed tasks.

Comment · 3 months ago
I remember that. It was the first time I heard about Scala.

I saw a lot of RoR companies/users thinking “should we do the same?” without even realizing that they do not have the same twitter scalability problems.

Comment · 1 year ago
If that information it’s not right, you can notify the wikipedia editor who added it.

https://en.wikipedia.org/wiki/Carlo_Acutis

Or better yet, you can contribute with the wikipedia entry to remove any miss information.

Comment · 1 year ago
Comment · 1 year ago
Chile is listed in Asia. LOL
Comment · 1 year ago
The only issue that I have with iCloud+ with my custom domain is about two gmail accounts which I don’t get mail from. It’s super weird.
Comment · 1 year ago
Comment · 1 year ago
China is doing pretty well on EV.
Comment · 1 year ago
Well, USD is used too. For decades. Even with too many regulations and security controls implemented by financial institutions around the world.
Comment · 1 year ago
> This increases the market for bitcoin mining and subsequently energy waste.

News technologies will require more and more energy.

> For me personally this enough reason to ban bitcoin

It's possible to ban bitcoin?

Comment · 1 year ago
The Catholic Church.
Comment · 1 year ago
Gambling has been a huge disaster for the country as a whole. If it were up to me, I would have already banned all gambling platforms in the country. But to make matters worse, the government is studying a state-owned gambling platform.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton