HNHacker News
TopNewBestAskShowJobs

shurcooL

3,365 karma · joined November 8, 2012

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

submissionscomments
shurcooL··on GitHub shouldn't allow username reuse
Go doesn’t “do” that.

Using GitHub HEAD is one of many ways it can be used. It’s not a very popular approach. People with important projects that often use other ways, such as vendoring via a tool like dep.

shurcooL··on A Reimplementation of Winamp 2.9 in HTML5 and JavaScript
Does it decode the audio files (mp3, etc.) into the low level PCM audio samples and play those back? Or does it use a higher level browser API that lets you play high level mp3 files directly?

If the latter, how can you still implement the equalizer?

shurcooL··on Uber Bike – A New Way to Commute or Explore
Thanks.

For a moment, I thought the 404 was intentional and this was supposed to be some sort of satire.

shurcooL··on Why I left Google (HN search results)
All the results (at least on page 1) are local positions.
shurcooL··on Show HN: 2D multiplayer battle royale game
I liked your thoughts/suggestions. It’s possible to expand even further on the realism of FOV in 2D games, see this example [1]. It changes the gameplay mechanics significantly, of course.

[1] https://www.youtube.com/watch?v=SfG9MTFbEZ8

shurcooL··on The Effects of Computer Use on Eye Health and Vision (1997) [pdf]
See this article on font rasterization [1] for a primer. The software used makes a big difference.

[1] http://www.antigrain.com/research/font_rasterization/index.h...

shurcooL··on Spamnesty – A Bot to waste spammers' time
From glancing over some conversations, it looks like the bot is mostly talking to other bots.

That said, I think it’s nice to be able to reflect the same attack vector upon the attackers to make the attack less efficient and hopefully less attractive.

shurcooL··on High Sierra macOS freezing and stops
FWIW, late 2011 15" MBP here, latest public version of High Sierra, and no serious problems with it. Feels and acts the same as all previous macOS versions before it for me.
shurcooL··on A WebAssembly interpreter written in JavaScript
Now you just need to compile a JavaScript interpreter from C++ to WebAssembly... Makes me think of “The Birth & Death of JavaScript” talk [1].

[1] https://www.destroyallsoftware.com/talks/the-birth-and-death...

shurcooL··on Git is a purely functional data structure (2013)
Even after 4 years, this remains my favorite, most influential article that helped me understand and feel comfortable with git. It's just a very good analogy.
shurcooL··on Vision Kit – An image recognition device that can see and identify objects
This is really neat, I like the open hardware and software approach.
shurcooL··on Fixing the MacBook Pro
As someone who currently has those flaps, I look forward to no longer having them when I get a new MBP. I never use them anyway, and wouldn't want to (it'd be bad for the cables to wrap them so tightly).
shurcooL··on WebAssembly support now shipping in all major browsers
It works in Chrome on iOS.
shurcooL··on The cargo cult of versioning
[naive wish mode]

I'm really fond of how Google does versioning in their internal codebase (from the public information about it that I know). They have a monorepo containing a single version of every library. When updating something, you're supposed to take into account all the places it's being used, and avoid breakages. Tests and tooling play an important role in making it possible.

I really want something like that for the open-source world, instead of having to deal with maintaining multiple versions, and dealing with the complexity of interactions between the all the permutations of different versions.

[/naive wish mode]

shurcooL··on Experiment with particles using WebAssembly and WebGL
> Chrome on iOS is just a wrapper around a safari web view, plus some nice to haves.

I’m aware, thanks. I tested in both anyway just to have more data.

shurcooL··on Experiment with particles using WebAssembly and WebGL
Crashes in latest Chrome and Safari on latest iOS (11.1.1). Will have to try on desktop later.
shurcooL··on Eight years of Go
Not a strong connection, but both features are managed by the Go runtime.
shurcooL··on Eight years of Go
(This is not endorsement of the parent post; I don’t agree with it either.)

This is how you can sort slices of arbitrary types in Go:

https://play.golang.org/p/VHJW9lVY9b

I’m not sure about you, but it feels very reasonable to me. It’s not anywhere near the top of my list of pains that I feel when working with Go everyday.

shurcooL··on IBM Type
Yeah, me too.

You can also link to #readme, which is a generic tag at the very top of the README and is guaranteed to exist in every github repo. E.g.:

https://github.com/ibm/type#readme

shurcooL··on IBM Type
Sort of. The default view is the root directory listing, followed by the README. If your root directory happens to contain many files, the README will be below the fold.

E.g., look at https://github.com/camlistore/go4. Unless your monitor height is 1600 px and you're using 90% browser zoom, you might not even see the README until you scroll down.

shurcooL··on Introducing Surface Book 2
I’m excited in that I hope this pushes Apple to do better with the next MBP.
shurcooL··on Introducing Surface Book 2
It’s unfortunately the expected thing, as powerful general purpose computers become a specialized niche tool for developers, since regular consumers are being satisfied with phones and tables and inexpensive laptops. The market is no longer growing, it’s shrinking.
shurcooL··on Introducing Surface Book 2
I’m glad to see some competition, my hope is that this pushes Apple to improve the next MBP more.
shurcooL··on MacOS High Sierra
Metal isn’t supported on a MacBook Pro that old. I think it requires MBP 2012-2013 or so. My late 2011 MBP doesn’t support it.
shurcooL··on Go: Ten years and climbing
What about tools that statically analyze your code and allow you to be more productive? It may be possible to build more sophisticated and useful tools if the language is simple.

You talk about giving the developer tools, but those tools can be augmentations on top of the basic building block that is the language. That way, anyone can build tools for their needs, without complicating the lives of others. No need to build all the tools into the language, that's very constraining.

shurcooL··on A new kind of map: it’s about time
I think this is great, but I can see it being potentially improved further if there was a temporary overlay of the physical map whenever you hover over a destination.

Basically, I feel that completely removing the physical map is okay until you've picked a target. Then, having to click on it to be able to see what the route looks like (which streets to take, etc.) is higher friction than I'd like. Instead, imagine if hovering would give you a route overlay, and as you hover your mouse over multiple places you're considering, you're already aware of the physical directions as well.

Having to click back and forth feels quite constraining.

This is simply feedback on a way I think it could be improved further, not to take away from how good it already is.

shurcooL··on iOS 11 reviewed
Since it hasn't been mentioned, an awesome part of iOS is the fact that Mobile Safari supports WebAssembly and WebRTC standards now. \o/
shurcooL··on iOS 11 reviewed
Is it normal for arstechnica.com to be taking up 30-60% CPU in Chrome whenever the tab is in focus? I don't have any extensions installed.

[1] http://instantshare.win/1b0agfj3j7xey.png

shurcooL··on iOS 11 reviewed
It's best to think of iOS apps exactly as they are, a service. When you buy/download an app, it's not your own, you're using a service in the form of an app.

The app will continue to work as long as it's supported by its developer and Apple doesn't forcibly remove it. If the developer no longer supports it, it's just a matter of time before it'll stop working.

shurcooL··on Tell me what your company does
Contrast that with a site like this:

https://gotools.org

It tells you exactly what it does in one sentence, and that sentence is the only one on the page. Despite that, it's probably not as popular as the vague sites being complained about here.

← PreviousPage 4 of 34Next →