News for hackers. Stuff that matters.

RealNeatoDude

Re:Goodbye, Object Oriented Programming (2016) on Friday April 27, 2018 @03:55PM (#16943789)
This article is about OO+[bad language design/patterns].

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

Re:How to Design a Scalable Rate Limiting Algorithm on Tuesday December 19, 2017 @02:16PM (#15963148)
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?

Re:Street Fighter II's AI Engine on Tuesday April 18, 2017 @01:24PM (#14140808)
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.

Re:Announcing the first SHA-1 collision on Friday February 24, 2017 @12:40PM (#13725751)
> 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?