Opisek

joined 2 years ago
[–] [email protected] 5 points 13 hours ago

The commenter implies your coil whine comes from "dirty power" from your power strip (not a perfect sine wave). This may or may not be the case, so it's at least one thing you can try out.

[–] [email protected] 11 points 13 hours ago

I see you're a person of culture. I too get flashbanged every morning by all my lights.

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago) (4 children)

We move onto the next issue. How to precisely measure the length of the wire?

[–] [email protected] 9 points 1 day ago

Your cat must be in on the conspiracy. Perhaps even part of the deep state.

[–] [email protected] 6 points 2 days ago (4 children)

What if you're the person yourself?

[–] [email protected] 9 points 2 days ago* (last edited 2 days ago) (1 children)

VSCode is not even a true IDE like, for example, VS itself.

[–] [email protected] 1 points 2 days ago* (last edited 2 days ago)

Great details! I know the difference personally, but this is a really nice explanation for other readers.

About the last point though: I'm not sure Go always uses the maximum amount of kernel threads it is allowed to use. I read it spawns one on blocking syscalls, but I can't confirm that. I could imagine it would make sense for it to spawn them lazily and then keep around to lessen the overhead of creating it in case it's needed later again, but that is speculation.

Edit: I dove a bit deeper. It seems that nowadays it spawns as many kernel threads as CPU cores available plus additional ones for blocking syscalls. https://go.dev/doc/go1.5 https://docs.google.com/document/u/0/d/1At2Ls5_fhJQ59kDK2DFVhFu3g5mATSXqqV5QrxinasI/mobilebasic

[–] [email protected] 2 points 3 days ago

But what if I wanted to be adopted. I need friends.

[–] [email protected] 1 points 3 days ago* (last edited 3 days ago) (2 children)

Well, they're userspace threads. That's still concurrency just like kernel threads.

Also, it still uses kernel threads, just not for every single goroutine.

[–] [email protected] 7 points 5 days ago (4 children)

I absolutely love how easy multi threading and communication between threads is made in Go. Easily one of the biggest selling points.

[–] [email protected] 5 points 6 days ago

Perhaps I do belong isolated in the deep dark sea.

[–] [email protected] 8 points 6 days ago

Three to not lose the _!

 

sure am excited to start seeing people walk like that outside..

Review link

view more: next ›