Java vs K
April 27th, 2007I 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.