Better HN
topnewbestaskshowjobs
Log inSign up

RealNeatoDude

13 karma · joined Feb 24, 2017 (9y ago) · 4 submissions

Submissions

comment 8y ago · link · parent

This article is about OO+[bad language design/patterns].

You can do OO without sharing state with your parent(s).

comment 8y ago · link · parent

Excellent article! One question though:

> A better approach is to use a “set-then-get” mindset, relying on atomic operators that implement locks in a very performant fashion, allowing you to quickly increment and check counter values without letting the atomic operations get in the way.

Can you elaborate on this? Why is it more performant? And what are the trade-offs vs. get-then-set?

comment 9y ago · link · parent

It's funny how much SF slang hints at you and your opponent being lackluster AI scripts:

- Downloaded: when you've identified your opponents patterns and know what they're going to do next. Ex. they always jump after they jab.

- Conditioning: when you've trained your opponent to react the same way consistently to something you do. Ex. they always jump when you throw a fireball because you've let them do it successfully.

- "time to guess": situations where, if executed correctly, your opponent must choose one defense from many defenses randomly. Ex. your jump trajectory is such that whether you end up on the left or right side of your opponent is determined by a pixel.

A phrase that novice players say a lot is "HOW DID HE KNOW?" because they're in shock that their opponent is "guessing" right every time when really their opponent just knows what the novice is going to do in every situation. What's impressive is that "every situation" is really the more skilled player abstracting over similar situations. Ex. they recognize kick->jump = punch->jump for their particular opponent. I don't think an AI will be able to make complicated abstractions like that on an offline game console for a while.

comment 9y ago · link · parent

> Google has advocated the deprecation of SHA-1 for many years, particularly when it comes to signing TLS certificates.

Why? Was it in anticipation of this attack specifically?