Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Thomas Costigliola
;> >>> >>> >>> Here's a more drastic example. I guess it spends most of its time >>> doing >>> > extended precision things. The Fibo routine is activated recursively >>> just >>> > 20 times or so. The result has over 20

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Thomas Costigliola
ively >> just >> > 20 times or so. The result has over 20 digits. >> >>> >> >>> ~$ ~/j701/bin/jconsole >> >>> Fibo =: 3 : 0"0NB. Compute large Fibonacci numbers like Fibo >> > 1000000 >> >>> if. y<5 do.

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Thomas Costigliola
CITG > >>> wrote: > >>>> Speaking about J, performance and Linux, is it true that Windows is > > significantly faster? Or is there something wrong with my installation? > > Also when runnning windows J under wine on my linux PC I get a better > > per

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread bill lam
ns (F y-1),F y >>> ((,~<:)y){0 1 1 2 3x >>> elseif. 0=2|y do. >>> 'b c'=.Fibo -:y >>> a=.c-b >>> d=.c+b >>> p=.b*a+c >>> q=.c*b+d >>> (q-p),q >>> elseif. do. >>> 'b c'=.Fibo -:>:y >

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Thomas Costigliola
;=.Fibo -:y > >a=.c-b > >d=.c+b > >p=.b*a+c > >q=.c*b+d > >(q-p),q > > elseif. do. > >'b c'=.Fibo -:>:y > >a=.c-b > >d=.c+b > >p=.b*a+c > >q=.c*b+d > >p,q-p > > end. > > ) > > 6!:2 '

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Ben Gorte - CITG
15, 2014 09:42 To: programm...@jsoftware.com Subject: Re: [Jprogramming] On benchmarking results from J programming styles FYI - 8s on my MacBookPro 13" Regards Rob Sent from my iPhone > On 15 Jan 2014, at 7:12 pm, Ben Gorte - CITG wrote: > > Thanks, this is great. After recompi

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Rob Hodgkinson
l@gmail.com] > Sent: Wednesday, January 15, 2014 04:10 > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] On benchmarking results from J programming styles > > I get similar result for Fibo that linux needed about 41s and this is > strange. I then recompiled the

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-15 Thread Ben Gorte - CITG
mming-boun...@forums.jsoftware.com [programming-boun...@forums.jsoftware.com] on behalf of bill lam [bbill@gmail.com] Sent: Wednesday, January 15, 2014 04:10 To: programm...@jsoftware.com Subject: Re: [Jprogramming] On benchmarking results from J programming styles I get similar result for Fibo

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-14 Thread bill lam
b+d >p,q-p > end. > ) > 6!:2 'z=.{:Fibo 100' > 41.3298 > > > ~$ wine /media/Windows/Documents\ and\ Settings/bgorte/j701/bin/jconsole.exe > .... > 6!:2 'z=.{:Fibo 100' > 15.5417 > > #":z NB. > 208

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-14 Thread Aai
/media/Windows/Documents\ and\ Settings/bgorte/j701/bin/jconsole.exe 6!:2 'z=.{:Fibo 100' 15.5417 #":z NB. 208988 ____________ From: programming-boun...@forums.jsoftware.com [programming-boun...@forums.jsoftware.com] on behalf

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-14 Thread Ben Gorte - CITG
in 32 > Installer: j701a_win.exe > InstallPath: z:/media/windows/documents and settings/bgorte/j701 >time'locs=:nudge"1 locs' > 1.09025e_5 >time'locs=:pfn"1 locs' > 5.56416e_6 > time'locs=:(pfn f.)"1 locs' > 2.88706e_6

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-14 Thread Michael Dykman
quot;1 locs' > 2.88706e_6 >time'locs=:pfns"1 locs' > 2.77585e_5 > > Regards, > Ben > ________ > From: programming-boun...@forums.jsoftware.com > [programming-boun...@forums.jsoftware.com] on behalf of Raul Miller > [r

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-14 Thread Ben Gorte - CITG
iller [rauldmil...@gmail.com] Sent: Monday, January 13, 2014 06:44 To: Programming forum Subject: Re: [Jprogramming] On benchmarking results from J programming styles That sounds about right. The big caution I would place on interpreting these results is: "This won't necessarily apply for games

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-13 Thread Pascal Jasmin
the pfns timings surprised me. pfns =: 3 : '({.,_1&+@({.@}.),{:)`(_1&+@{.,15"_,{:)@.(0&=@({.@}.)) y' On simple function tests where I take an implicit definition and just make it explicit by adding y at the end, I've gotten an under 10% slowdown. I would guess that you could see a comparable re

Re: [Jprogramming] On benchmarking results from J programming styles

2014-01-12 Thread Raul Miller
That sounds about right. The big caution I would place on interpreting these results is: "This won't necessarily apply for games implemented in J for Linux, where I intend to rely on the SDL and byte-per-pixel graphics layouts. Nonetheless, I retain the logic here, since it's representative of a r