Live data from Hacker News

FizzleFade

fabiensanglard.net

181–182 of 182 posts

Re: FizzleFade

#181
post #68

Earlier quoted context omitted.

> In fact, if I see someone using binary operators in languages such as Java,JS,Ruby etc... I'll immediately consider it bad code, regardless of context - it's just not the right tool for the level of abstraction in these languages. Clojure is written in java (and clojure). It uses bit operations to implement Software Transactional Memory and persistent collections. Is it a bad code? You seem to think a programmer sh…

I don't know enough about Clojure, but I think you are saying that Clojure itself is using bit operations behind the hood - of course it's ok for a language implementation to use bit operations. But if any of your Java code for applications or libraries used bit operations, I'll call it bad code.

But if a standard library implementation is allowed to do something why can't I?

Re: FizzleFade

#182
post #116

An alternative approach that works for every resolution: http://antirez.com/news/113

This is a good post, kudos on writing it up so quickly! In fact, the first thing I thought of when I read this post on HN was, "Well why not use a pseudorandom permutation instead of a pseudorandom function, this way we efficiently fill all pixels without first checking if they're red?" Being that a feistel network is a pseudorandom permutation, this fulfills the need (and in my opinion, even more elegantly than a LF…

>This is a good post, kudos on writing it up so quickly!

Wait... what? It took him 25 years! ;)

Post reply on HN