However, "m 10" takes ages to compute compared to what is done in
other languages. What would be the best way to code this benchmark?

What do you mean, ages? How long, exactly?

  fn2 =: {. (|[EMAIL PROTECTED] , }.) ]
  6!:2 't10=.>./ <:([EMAIL PROTECTED] #@(fn2^:(<_))@:>:@A. i.) 10'
83.2398
  t10
38

83 seconds compares to, say, best of Perl (66) but that's 83 on my machine vs 66 seconds on their machine. What does it tell you? Also, they say "first 30 permutatuons" and in test file those permuataions are listed in some strange order which I do not have any motivation to decode. It's not lexicographic, that is for sure. Probably, some of the various "least change".

I'm surprised not to see J entries in the Shootout benchmark. J would
rock in terms of number of lines :)

Those contests are run by bunch of 14 year olds. It would make it easier if they could just lay them out on a table and measure them, but it is difficult to do online, hence contests.
We are bunch of old geezers here. We do not care who wins.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to