News for hackers. Stuff that matters.
Re:Data Structures in Clojure: Hash Tables by vinkelhake on Tuesday February 04, 2014 @12:30PM (#7178877)
> On the machine this was implemented, insertion speed increased ~110x, compared with the non-hinted implementation.

That makes it sound like type hints are essentially mandatory for anything where performance matters.

Nice article! It would have been interesting to see how it fares against something like java.util.HashMap.

Re:Data Structures in Clojure: Hash Tables by chc on Tuesday February 04, 2014 @01:26PM (#7179281)
As the article suggests, rather than consider type hints mandatory, it's better just to check whether you need them with warn-on-reflection.
Re:Data Structures in Clojure: Hash Tables by zephjc on Tuesday February 04, 2014 @12:48PM (#7179027)
Yeah, the less runtime reflection you make it use, the better the speed gains (I'm glad type hints are optional though).
Re:Data Structures in Clojure: Hash Tables by DigitalJack on Tuesday February 04, 2014 @01:01PM (#7179119)
I only start type hinting if performance has proven to be a problem.
Re:Data Structures in Clojure: Hash Tables by cbp on Tuesday February 04, 2014 @01:26PM (#7179282)
If performance matters _and_ you're doing interop with java.