Better HN
topnewbestaskshowjobs
Log inSign up

shurcooL

3,365 karma · joined Nov 8, 2012 (14y ago) · 1,351 submissions

I seek a better understanding of the world, so I can help make it simpler and better. I enjoy writing correct, high-quality Go code. Minimalist.

https://dmitri.shuralyov.com/about

Submissions

comment 6y ago · link · parent

All of the Go commits are public, you can look at them for yourself:

• https://github.com/golang/go/graphs/contributors

• https://github.com/golang/build/graphs/contributors

Brad also once gave a lightning talk about HTTP/2 that had 80+ slides in 5 minutes. He’s very fast.

comment 6y ago · link · parent

Perhaps I shouldn’t have said “I don’t see at all” because that’s an exaggeration. I see some connection, e.g., listening to music can feel “enjoyable”, just not “very strong emotions that lie outside the range of their normal everyday emotions”.

As an example, here’s a random song that has a nice beat and I enjoy listening to: https://www.youtube.com/watch?v=xY-4-O7GetQ. What kind of “strong emotions outside the normal everyday range” can one feel when listening to it?

I agree certain rare songs can instill strong emotional responses, but that isn’t the case when just listening to random music that sounds good for the first time.

comment 6y ago · link · parent

From https://whatismusic.info/blog/HypothesisMusicLetsUsPracticeH...:

  > Now let us suppose that the person enjoys listening to music.
  >
  > Music enables the person to feel very strong emotions that lie outside the range of their normal everyday emotions.
  >
  > Music lets a person feel these emotions, almost, but not quite, as if those emotions were real.
I’m quite puzzled by these statements. I enjoy listening to some genres of music. But I don’t see at all how music is connected to experiencing emotions. Isn’t music enjoyable because of completely different reasons? They are hard to describe, but I don’t think they’re “emotions”, are they?

comment 6y ago · link · parent

> Google's `repo` command is a wrapper around Git that treats a set of smaller repos like one big one, but it's a (very) leaky abstraction.

Could you please provide a link to it? I’m very interested in seeing this command, but ironically it’s not a name that’s easy to google for.

Edit: I was very wrong, searching for “google repo command” displayed https://gerrit.googlesource.com/git-repo as the very first result.

comment 6y ago · link · parent

WebGPU to WebGL is like Metal/Vulkan to OpenGL.

comment 6y ago · link · parent

The content and presentation is fantastic.

The page is using up 15-20% CPU and GPU when it is the active tab even when not scrolling. That seems unexpected and unfortunate.

(I noticed because by the time I got to 3400 meters, my laptop's fans became audible.)

comment 6y ago · link · parent

  * less productive
  * less time for your ideas
  * less ambitious
These points may or may not be true depending over what timeframe you measure.

If it’s your own lifetime, sure. If you measure your productivity over the next 300 years as what you plus your transitive offspring accomplish, it’s possible having kids is a huge boost to your aggregated productivity.

comment 6y ago · link · parent

Yep. Based on the hint for that question, I expect this is the "normal" solution.

comment 6y ago · link · parent

Not to discount your point, but I want to offer my opinion which is different.

I had fun _because_ it was more constrained. But I also like Go.

As an example, I solved level 6 in what I understand to be an unconventional way:

(spoiler alert)

I realized I could “get out” of readCodesFromKeypad function scope by ending it early and then writing the start of another top level function. Once I had access to global scope, I could add an init() function to modify the “crypto/rand.Reader” variable and assign to it an io.Reader that I could control. I was on mobile so I decided to take a shortcut and just overwrite the global passcode variable instead.

(end spoiler)

I may have “cheated”, but it felt creative and in spirit of the game, and it got me to the next level.

comment 7y ago · link · parent

I'm glad this happened; I've been waiting for more than 5 years for this.

comment 7y ago · link · parent

96.5 MB GIF ahead warning.

(I'm both impressed and scared of how I used up 1% of my generous mobile data plan in about 5 seconds by clicking 1 link.)

comment 7y ago · link · parent

I wanted to find some discussion on this topic. I’m not pessimistic, but I am curious to consider what it may mean for humanity if/when AGI happens.

comment 7y ago · link · parent

He meant that the intent (kind) can be factored into the type system too. Instead of using type string for both “unsafe string” kind and “safe string” kind, you’d use two different types. So the type system aka compiler can catch a mistake, in addition to your eyes.

For example, see https://talks.golang.org/2012/goforc.slide#43.

comment 7y ago · link · parent

So glad to see Go Mono mentioned here. I'm a happy user for many years now.

comment 7y ago · link · parent

This seems like a high quality article and has many upvotes, but I found it hard to read, and unfortunately ads made it even harder, so I couldn't get through it. I wonder if I'm in the minority because I don't use an ad blocker?

comment 7y ago · link · parent

This is a talk from 2012, so I believe the title needs a “(2012)” suffix according to what I’ve seen in the past on HN.

comment 7y ago · link · parent

There was what I thought an insightful twitter thread on this license at https://twitter.com/chimeracoder/status/1175896685505056769?....

comment 7y ago · link · parent

It might be desirable for some people if there is an option for a minimalist card. One that offers the following features:

• can make purchases with it; no fees (when you pay it off on time)

Without any of the following:

• rewards, deals, special offers, other gimmicks and spam

Maybe the Apple Card will be an interesting option for people looking for something simpler and aren't trying to maximize the rewards.

comment 7y ago · link · parent

To add another data point, I had no problems making the first purchase with it (or any purchases since).

comment 7y ago · link · parent

Thank you for sharing, I really enjoyed this talk. I somehow missed it when it happened.

comment 7y ago · link · parent

One party trick some people miss about me is that for a number of years I carried around an iPad mini (with cellular) in my front jeans pocket. It was my primary and only mobile device. It was somewhat more inconvenient than a smaller phone, but not by as much as one would expect it to be. Having its bigger screen was an advantage in many situations though.

I downsized to a large phone a year ago (partly because Apple neglected the iPad mini and I gave up waiting for a better version to come out).

comment 7y ago · link · parent

Do you know why is the upstream bug in "New (Open)" state, if it's fixed in currently released versions of iOS/macOS?

comment 7y ago · link · parent

It’s interesting for me to see a project made mostly by 1 person that happens to be employed by Google described as “by Google”. [1] Not that there’s no truth to it, just that the reality is much more nuanced than a simple phrase can capture.

[1] https://github.com/cuelang/cue/graphs/contributors

comment 7y ago · link · parent

> Oh and the escape key… long remapped to caps lock. If I really need caps lock, fn + caps lock key toggles it.

I've remapped escape to caps lock too, but how do you get fn + caps lock to toggle caps lock?

25.

Lies We Tell Kids (2008)(paulgraham.com ↗)

2 points · by shurcooL · 7y ago · discuss

comment 7y ago · link · parent

The “See Pro Display XDR in AR” feature on the website was a compelling demo of using AR for getting a better sense for a new product.

Looking forward to seeing more in-depth reviews and hands-on experiences about these.

comment 7y ago · link · parent

I didn’t know there’s a built-in dark theme. Thanks, I’ll use it.

By “Dark Mode support”, I was primarily referring to the behavior where an app automatically switches between light/dark theme based on the macOS system-wide Dark Mode setting. Having a dark theme is very close, but it requires the user to switch to it manually (and also requires knowing that it's possible to switch; case in point, I didn't even realize DevTools had its own separate theme).

comment 7y ago · link · parent

I’m still waiting for Dark Mode support in Chrome DevTools. It’s one of the last things I use that doesn’t support it yet, and it’s very jarring at night.

comment 7y ago · link · parent

> It is not sufficient security to only bind to 127.0.0.1 (the “loopback interface”)

What would be a better, more secure thing to do when you have multiple web servers on one machine behind a SSL-terminating reverse proxy?

comment 7y ago · link · parent

It loads okay in an incognito window for me. Are you sure logging in was mandatory? It should only be needed if you want to post to the mailing list.
12345
46