Better HN
topnewbestaskshowjobs
Log inSign up

darkgray

23 karma · joined Oct 19, 2012 (14y ago) · 12 submissions

Submissions

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

Prove you can get in the hole in just 6 putts, damn you.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Pardon, but the assembly code on the "Loop de Loop" chapter currently seems broken. "rax" is acting as all three variables somehow.

comment 4y ago · link · parent

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]`.

comment 8y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

While it doesn't remove the gymnastics requirement, a relatively nice alternative to webpage pgup/pgdn is shift-space/space.

comment 13y ago · link · parent

I always thought Goo could be a name that sticks.

comment 13y ago · link · parent

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. :)

comment 13y ago · link · parent

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.

comment 14y ago · link · parent

ST2 can also delete entire words: Ctrl+Del (ahead) Ctrl+Backspace (behind)

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