1 USING: sequences kernel math specialized-arrays fry ;
5 ! Phil Dawes's performance problem
7 : count-ones ( int-array -- n ) [ 1 = ] count ; inline
9 : make-int-array ( -- int-array )
10 120000 [ 255 bitand ] int-array{ } map-as ; inline
12 : dawes-benchmark ( -- )
13 200 make-int-array '[ _ count-ones ] replicate drop ;