HNHacker News
TopNewBestAskShowJobs

dmitshur

3,726 karma · joined November 8, 2012

I pursue insight, then make things simpler and better. I enjoy writing correct, high-quality Go code. Minimalist.

https://dmitri.shuralyov.com/about

submissionscomments
dmitshur··on Why I still blog after 15 years
Thanks for making and sharing that project. A feature request, if I may: please consider adding support for https://www.jsonfeed.org/. Thank you.
dmitshur··on The biggest CRT ever made: Sony's PVM-4300
I had that model too, acquired back when university classrooms were ditching them in favor of their first slimmer LCDs. I let it go during a move, and have missed it ever since.
dmitshur··on [dead]
It seems a bit unusual that there is an event for when someone creates or updates a wiki page, but no event for when someone deletes a wiki page. So if you want some automation that notifies you about page deletions, it can't be done via the GitHub API.
dmitshur··on macOS Sequoia Preview
I wonder if it’ll do anything about duplicate notifications. As a basic example, the Weather app exists both on iOS (and iPadOS) and macOS, so if it’s enabled, would you get duplicate notifications on macOS?
dmitshur··on L(O*62).ONG: Make your URL longer
long → short

https://looooooooooooooooooooooooooooooooooooooooooooooooooo...

dmitshur··on Apple introduces M4 chip
I don't think they included it in the video, but https://www.apple.com/ipad-pro/specs/ says it's 8 GB of RAM in 256/512 GB models, 16 GB RAM in 1/2 TB ones.
dmitshur··on Add Depth of Field to Screenshots
Yes, I was trying it on a device with a touchscreen (an iPhone) and found that it was possible to pan with the usual touch gesture (moving two fingers together).
dmitshur··on Tips on how to structure your home directory (2023)
os.UserConfigDir was added in Go 1.13, which explains why it wasn’t used earlier.
dmitshur··on Add Depth of Field to Screenshots
Indeed. Panning as well.
dmitshur··on Looking into the Stadia Controller Bluetooth Mode Website
Not having Windows as a dependency was almost like optimizing for future proofing and longevity, ironically. If Stadia were to last longer, so could the games that were made available on it. The game launcher experience was fully in their control to innovate on.

GeForce Now has Windows and various game stores as hard dependencies, which feels like in theory optimizing for the short term and limits how smooth the user experience can be made. But in practice it works fine, and the reduced overhead for individual games maybe is better at least for medium term too.

dmitshur··on They're Made Out of Meat (1991)
There's a short story along these lines I remember reading somewhere, but I could never find it again. It describes the experience of someone whose brain is separated from their body but kept connected to it via a remote connection. Over time there are various experiments or different situations, like going into a cave to experience higher latency, maybe controlling multiple bodies at once, replacing the biological brain with an equivalent simulated one, and some others. I wish I could remember more of the details...

Any chance it's one of the ones you mentioned above, or another someone recognizes? I was able to find that the phrase "brain in a vat" refers to this genre as a whole, but haven't yet found the particular version that I faintly recall reading.

dmitshur··on Apple's Pro Display XDR takes Thunderbolt 3 to its limit
Do you have ideas for how to test it and find out definitively in person? I haven't found a way to confirm one way or another.

The Graphics/Displays page in System Information unfortunately says nothing about colors, only resolution (https://github.com/shurcooL/home/assets/1924134/af4b19a3-b85...).

When looking at a 16-bit PNG of a white to black gradient, I'm not able to visually spot any banding even when zooming in. It's fairly easy to spot steps when looking at a 8-bit PNG version of the same gradient. But the same happens on the built-in display despite it supposedly having only 8-bit color ("support for millions of colors").

dmitshur··on Metric Time
Neat.

I think it was sometime between 10 and 20 years ago, I was curious to see what a clock that shows fractional time in years would look like: https://dmitri.shuralyov.com/projects/shuryear-clock/. I found looking at it occasionally reminds how even a year worth of time can pass fairly quickly.

dmitshur··on "Full Self-Driving" doesn't imply autonomy, Tesla engineer says
This makes me think of a recent experience I can relate to. I got a new iPhone that has a feature called, and I quote, an "Always-On display." According to https://support.apple.com/en-us/HT213435:

  Always-On display goes dark when you don't need it
 
  To save battery life, the display is completely dark when:
 
  • Your iPhone is lying face down
  • Your iPhone is in your pocket or bag
  • [...]
These seem reasonable to me, at least they haven't caused any noticeable problems. But it goes on, including:

  • You haven't used your iPhone for a while
    (your iPhone learns your activity patterns
    and turns the display off and on accordingly,
    including if you set up an alarm or sleep schedule)
This one's kinda infuriating. Every now and then, it's dark when I look at it, and I try to repeatedly "teach" it that I'm not asleep and it shouldn't have gone dark, or give up and try to ignore that it's not doing what I expected from it.

What makes it frustrating more than anything is the feature's name: "Always-On display." If not for that, I think its actual best-effort behavior is fairly reasonable.

dmitshur··on Publishing my first game using PICO-8
Off-topic, but I can't help but wonder when x.com will start serving web pages instead of just redirecting to twitter.com. If ever.
dmitshur··on Mac Mouse Fix
This tool exists to make scrolling on other mouse devices feel more like it does on the Magic Mouse. Since you already have that, you don't need the tool.
dmitshur··on Rejected GitHub profile achievements
Along these lines:

"The Art Critic": posted a screenshot of a diff containing a suggested code change instead of sending a PR

I've actually done something like this exactly once when I was much newer to GitHub and git (and probably wanted to save some of my time).

dmitshur··on Ask HN: Could you share your personal blog here?
https://dmitri.shuralyov.com/blog

If only I directed more of my writing activity to blog posts, not just commit messages¹ and issues².

[1] https://github.com/shurcooL/home/commit/bb504a4ef0d7c552d363...

[2] https://github.com/shurcooL/home/pull/32, https://github.com/shurcooL/home/issues/26

dmitshur··on SlowDownAndWasteMemory()
“WTF is Web Template Framework“
dmitshur··on Apple Vision Pro: Apple’s first spatial computer
Did anyone catch if they said anything about WebXR being available on it? Not seeing it so far, but hopefully eventually…
dmitshur··on Ask HN: What's your favorite GPT powered tool?
https://www.you-tldr.com/ is one I’ve been coming back to, though I don’t yet use these tools much. This particular one is handy for when I want to find out what a video with a click-baity title/thumbnail is actually about, without having to start to watch it. It lets me satisfy that curiosity with a quick a paragraph summary instead.
dmitshur··on Ask HN: Most interesting tech you built for just yourself?
I made a personal website [1] that aggregates my notifications from GitHub and Gerrit in one stream. It updates in real-time without me needing to refresh the page.

It also hosts a small set of personal Go packages. For this, it implements a git server, module proxy protocol, issue tracker and change tracker. At some point, I want to differentiate the code review UI with nice-to-haves specific to Go, but haven’t gotten there yet.

I’m playing around with compiling the whole thing (written in Go, of course) to WebAssembly that runs client-side, along with server-side rendering for the initial page load. This is mostly to make iteration easier and faster for me.

It also lets people leave comments or reactions to blog posts and such by signing in via a URL rather than username+password.

[1] https://dmitri.shuralyov.com

dmitshur··on Show HN: AI explanations for other people’s code
I consider its answer to https://whatdoesthiscodedo.com/g/4e2be8f as fairly good.
dmitshur··on Apple, please don’t take all of the buttons away
It seems to read okay if the word "but" is removed, maybe that's the typo.
dmitshur··on Enabling Bluetooth connections on Stadia Controllers
There’s something about the thought of playing Cyberpunk 2077 on the last day, right until the moment the plug is pulled by a large corp.
dmitshur··on How is Japanese web design different?
> I'm glad HN kept the same design since 2007.

As someone who enjoys and prefers high-density of information, I generally agree.

I do, however, wish HN would add support for @media (prefers-color-scheme: dark). By now it's one of the few sites that are still unpleasantly bright to look at when in a dark environment. (When I don't forget, I visit https://darkhn.herokuapp.com/ instead, which helps but can't be used to upvote/comment.)

dmitshur··on Google is shutting down Stadia
> they should have worked on something that could stream directly to youtube gaming

This is actually one of the two supported streaming modes, see https://support.google.com/stadia/answer/9825342?hl=en.

dmitshur··on Go 1.19 Beta 1 is released
The go1.19beta1 binary (which you would use to try Go 1.19 Beta 1) should be placed in the usual place where 'go install' places them. If you’re using Go’s defaults, it’s likely $HOME/go/bin, unless you’ve set either GOPATH or GOBIN env vars to point somewhere else.
dmitshur··on Ask HN: Favourite open source game?
Not open content, but OpenLara is a fun open source project to follow - https://github.com/XProger/OpenLara
dmitshur··on GraphQL Is a Trap?
Not parent, but my biggest challenge is some v3 APIs are not there in v4 yet. For example, activity and notifications (https://docs.github.com/en/rest/activity/notifications) is something I'm still looking forward to, but forced to keep using REST until it becomes available via GraphQL.

The pagination point is described well in nearby comments. It only applies when attempting to paginate across more than 1 dimension at once, like "get all pages of comments in an issue, and all pages of reactions for each comment".

← PreviousPage 2 of 6Next →