jtolds

Joined 16 years ago

Karma
1,147
Submissions
188
Member since
Oct 21

  github.com/jtolio
  m.olio.lol/@jt
  linkedin.com/in/jtolds
  jtolio.com

  storj.io
[ my public key: https://keybase.io/jtolds; my proof: https://keybase.io/jtolds/sigs/uDCvyjeMM1tXjf3jh_obXuYNnRS8gwMAPjTUY85To8Y ]
View on Hacker News

Recent submissions

Comment · 1 month ago
How is it marketing if it's from someone who just quit in objection?
Comment · 10 months ago
Comment · 1 year ago
I replied to your comment on my website, but for posterity here, yes, I do think you did a good job for the part about exiting when bestScore > 100. There's nitpicks, but this is fine! It makes sense, and nice use of a select over a send.

I did expect that this exercise would come after the first one though, and doing this on top of a solution to the first exercise is a bit harder. That said, I also don't mean to claim either are impossible. It's just tough to reason about.

Comment · 1 year ago
I have written channel code in the last week. It's part of the deal (especially with the context package). I'm just happy to see them restrained.
Comment · 1 year ago
Seriously! This caused such a ruckus when I posted this 9 years ago. I lost some professional acquaintanceships over it! Definitely a different reception.
Comment · 1 year ago
> the complaints about channels have largely been received and agreed upon by experienced Go developers. Channels are still useful but they were way more prominent in the early days of Go as a solution to lots of problems, and nowadays are instead understood as a sharp tool only useful for specific problems.

As the author of the post, it's really gratifying to hear that this is your assessment nowadays. I agree, and while I'm not sure I had much to do with this turn of events (it probably would have happened with or without me), curbing the use of channels is precisely why I wrote the post. I felt like Go could be much better if everyone stopped messing around with them. So, hooray!

Comment · 1 year ago
Author of the post here, I really like Go! It's my favorite language! It has absolutely nailed high concurrency programming in a way that other languages' solutions make me cringe to think through (await/async are so gross and unnecessary!)

If you are intending to do something that has multiple concurrent tasks ongoing at the same time, I would definitely reach for Go (and maybe be very careful or skip entirely using channels). I also would reach for Go if you intend to work with a large group of other software engineers. Go is rigid; when I first started programming I thought I wanted maximum flexibility, but Go brings uniformity to a group of engineers' output in a way that makes the overall team much more productive IMO.

Basically, I think Go is the best choice for server-side or backend programming, with an even stronger case when you're working with a team.

Comment · 1 year ago
Adding an atomic counter is absolutely a great solution in the real world, definitely, and compare and swap or a mutex or similar totally is what you want to do. In fact, that's my point in that part of the post - you want an atomic variable or a mutex or something there. Other synchronization primitives are more useful than sticking with the CSP idea of only using channels for synchronization.
Comment · 1 year ago
Hi! No, I think you've misunderstood the assignment. The example posits that you have a "game" running, which should end when the last player leaves. While only using channels as a synchronization primitive (a la CSP), at what point do you decide the last player has left, and where and when do you call close on the channel?
Comment · 1 year ago
To clarify why I said the CPU is the same and the other poster says the A30 has a better CPU, both are true! Same architecture (Cortex A7), but the Mini Plus has 2 cores and the A30 has 4 cores.
Comment · 1 year ago
I assume the basics are similar. The Miyoo Mini Plus has WiFi, which is great, but no GPU, so I assume you end up with different drivers. But the CPU is the same so everything else should be equivalent.
Comment · 2 years ago
When someone says "20 years of doom predictions haven't come true", I charitably assumed that claim was about scientific consensus predictions, but perhaps I can't assume that everyone shares knowledge of what that is.

So far, all data says that the climate scientists are dead on and have been very accurate: https://eps.harvard.edu/files/eps/files/hausfather_2020_eval...

What doom predictions from the last 20 years haven't come true? If someone says that doom hasn't happened yet, I guess what I want to say is that they haven't waited long enough.

I think the climate scientists are frustrated and giving up. https://www.nytimes.com/2022/03/01/climate/ipcc-climate-scie.... My initial link was an attempt to show where the Overton window is regarding the experts in this field, more than anything else. This comment is probably not the right place to bring someone up to speed with the climate science field when they can Google it themselves.

Comment · 2 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton