News for hackers. Stuff that matters.
Re:Widefinder 2 with Clojure by jwr on Wednesday December 16, 2009 @03:28AM (#998350)
This is an excellent article, as opposed to many shallow blog posts written after five minutes of trying a new language.

It also shows, unfortunately, that fast Lisp code isn't always pretty to look at.

Re:Widefinder 2 with Clojure by ato on Wednesday December 16, 2009 @05:11AM (#998483)
Thanks. Yeah, fast anything code tends to be not very pretty to look at and I'm not a very experienced lisper. But fortunately in most real-world programs the part that is performance critical tends to be very small compared to the rest of the program.
Re:Widefinder 2 with Clojure by jwr on Wednesday December 16, 2009 @10:12AM (#998904)
Oh, I didn't mean it as a criticism -- I'm afraid it has to be that way. My Common Lisp code that has been optimized looks similar (sprinkled with type declarations in various places).
Re:Widefinder 2 with Clojure by Raphael_Amiard on Wednesday December 16, 2009 @05:45AM (#998512)
Well being a seasonned clojurist, i almost never dug into such low level optimizations, but nonetheless , i find his code ok and very readable.

The only function sacrificing some level of readability (and wich i still find quite easy to read) is the new split function.

I think it is very much a question of being accustomed to the particular style of code lisps enforce. On this topic, the only grip i've got with his functions on the style side is, lots of java interop wich lenghtens the whole thing quite a bit, and big bulky functions that would benefit being cutted in several pieces.