Java vs K

April 27th, 2007

I spend some time tinkering with array-processing languages (think APL). They're so nice & smooth when it comes to stats and multidimensional calculations.
A nice video, showing how to solve Birthday problem in both Java and K (best of  breed, core of KDB).
It's all about counting probability of two people in a room having a same birthday date. 37 lines in Java and 44 symbols in J (a 17 chars solution is proposed in mailing list).
J is an open-source K analogue, just in case.

RSS feed | Trackback URI

1 Comment »

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post