HNHacker News
TopNewBestAskShowJobs

darkgray

23 karma · joined October 19, 2012

submissionscomments
darkgray··on Show HN: Putt.day a daily mini golf game
There's a new course every day (like Wordle), so we were talking about yesterday's. It's still accessible from the archive / calendar button in the menu!

I'm pretty sure Mr Dev Man messed with the power levels after I played, though, because it absolutely wasn't doable when I first tried. Surely.

darkgray··on Show HN: Putt.day a daily mini golf game
Prove you can get in the hole in just 6 putts, damn you.
darkgray··on Some Assembly Required: An approachable introduction to assembly
It's a bit more involved than that.

  mul rcx, rax       ; multiply our result by our base, save into rcx
This should probably be using rbx, since that's the designated base, not rax, which is the exponent.

In the explanation just above, there's a 2*8 step missing, while this one is incorrect:

  4. result = 16 * 2, result is now 16
Since 2*16 is not 16.
darkgray··on Some Assembly Required: An approachable introduction to assembly
Pardon, but the assembly code on the "Loop de Loop" chapter currently seems broken. "rax" is acting as all three variables somehow.
darkgray··on Go performance from version 1.2 to 1.18
Me too. I have a project suffering pretty badly from the performance hit taken when a regexp doesn't start with a fixed string. Matching against `[ab]cd` is up to 9x slower than against `ab[cd]`.
darkgray··on U.S. Websites Go Dark in Europe as GDPR Data Rules Kick In
Japanese forum giant 5ch (formerly 2ch) has also decided to IP block all of EU in order to "comply" with GDPR, as of a few days ago.

I've been hoping it wouldn't spread, since it's depressing to be confined to a little internet bubble in this day and age. Guess I'll be needing a VPN.

darkgray··on Toward Go 1.3
The far left and right sides are clickable to "turn the page", so to speak. It's an invisible area, though, so it's not very easy to deduce from just looking at the webpage.
darkgray··on Keyboard innovation is making them worse
While it doesn't remove the gymnastics requirement, a relatively nice alternative to webpage pgup/pgdn is shift-space/space.
darkgray··on Golang heap corruption during garbage collection
I always thought Goo could be a name that sticks.
darkgray··on Ruby is too slow for programming competitions
I'd agree it's dubious, but I was mostly commenting on the "correctness" of the code. It'd work on Go 1.1, so it's technically "correct". Sometimes. :)
darkgray··on Ruby is too slow for programming competitions
Go 1.1 made int default to int64, so it may depend on how up-to-date your particular version is. God knows what the blog poster uses, though.
darkgray··on Commanding your text editor
ST2 can also delete entire words: Ctrl+Del (ahead) Ctrl+Backspace (behind)

Ctrl+Del even works in Notepad, if that's your thing.