Re: [Jprogramming] ArrayFire addon

2022-01-30 Thread 'Mike Day' via Programming
One glitch: man_jaf_ ‘benchmarks’ ... motive 4000NB. takes sev seconds ... mptime 4000 |domain error: mptime mptime turns out to be dyadic Mike Sent from my iPad > On 28 Jan 2022, at 21:51, Eric Iverson wrote: > > Mike, > FIxed. Update and please try again. > > On Fri, Jan

Re: [Jprogramming] ArrayFire addon

2022-01-30 Thread 'Mike Day' via Programming
Sorry, iPad spell-checker rendered “mptime” as “motive”! M Sent from my iPad > On 30 Jan 2022, at 10:49, 'Mike Day' via Programming > wrote: > > One glitch: > man_jaf_ ‘benchmarks’ > ... > motive 4000NB. takes sev seconds > ... > > mptime 4000 > |domain error: mptime > > mptime

[Jprogramming] arrayfire

2022-01-30 Thread Eric Iverson
The arrayfire addon updated with minor fixes and changes. Note that the mp_bench.ijs script has been renamed to be matmul.ijs. It might be stable enough now to start looking at what it can do for performance. This is especially true if you have a higher end nvidia card. --

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread R.E. Boss
I copied the first chapter of the book A Journey to Core Python (in https://drive.google.com/file/d/1p1uIANh-LFniNNRqjDeeWWd4_-ddEZmz/view?usp=sharing) and have the question: do we want that J is competitive with Python? If the answer is yes, the next question is: what is the to do list to be

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread Michail L. Liarmakopoulos
Hello all, I find any parallels between python and J pretty interesting, being a person with some python experience and an interest of the applications of both python and J in mathematical modelling, analytics, computational math and perhaps computational physics too. If you'd like to bring some

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread Elijah Stone
On Sun, 30 Jan 2022, Michail L. Liarmakopoulos wrote: There is also out there an amazing python library for symbolic calculations (like the ones you can do with Mathematica or WolframAlpha: symbolic evaluation of definite and indefinite integrals, symbolic solutions of diff. equations, symbolic

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread Michail L. Liarmakopoulos
Hello Elijah, Yes, I believe you're right. I don't have much experience with them yet though, so I cannot compare. Best, --- Michail L. Liarmakopoulos, MSc On Sun, Jan 30, 2022, 21:04 Elijah Stone wrote: > On Sun, 30 Jan 2022, Michail L. Liarmakopoulos wrote: > > > There is also out there an

Re: [Jprogramming] arrayfire

2022-01-30 Thread 'Mike Day' via Programming
So ...bench/matmul.ijs now has mpx, which now calls mptime, and returns benchmarks for f64 and f32. It’s fairly obvious what’s meant, but I’m getting two comments comparing J and AF results, but they don’t state which of f36 or f64 applies. I’m copy-typing, again, so typos rule: J and AF r

Re: [Jprogramming] arrayfire

2022-01-30 Thread 'Pascal Jasmin' via Programming
The fp64 resuts match J in all 3 arrayfire backends for me.  The fp32 differ on all 3 backends.  I think AMD gpus also match with fp64. On Sunday, January 30, 2022, 05:33:08 p.m. EST, 'Mike Day' via Programming wrote: So ...bench/matmul.ijs now has mpx,  which now calls mptime, and r

Re: [Jprogramming] arrayfire

2022-01-30 Thread 'Mike Day' via Programming
My point was just that it’s not made explicitly clear which comment applies to which of fp32 or fp64. Easy enough to fix, of course. Thanks, Mike Sent from my iPad > On 30 Jan 2022, at 22:49, 'Pascal Jasmin' via Programming > wrote: > > The fp64 resuts match J in all 3 arrayfire backends f

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread Ric Sherlock
Yes, I've been thinking that a Dataframes equivalent in J would be useful. Most things are already possible with J's arrays, but conceptually DataFrames are well understood by many now, and they make it easy to work with datasets as named fields. I've spent a reasonable amount of time working with

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread Elijah Stone
https://code.jsoftware.com/wiki/Essays/Inverted_Table, perhaps? That said, I think a great strength of j is that data are _not_ explicitly tabular. The associations are defined in an ad-hoc manner as needed by the programmer. This is also an essential difference between the array paradigm an

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-01-30 Thread Ric Sherlock
Yes from a data structure point of view, inverted tables get you a lot of the way (note they're also available in the 'general/misc' addon - load 'general/misc/inverted' ) and I've used them to good effect in my 'data/struct' addon (https://github.com/tikkanz/data_struct). I agree that J's arrays a

Re: [Jprogramming] arrayfire

2022-01-30 Thread Ric Sherlock
The start-up experience is now much more informative & welcoming. Nice! On my laptop (4 cores) with WSL using the cpu backend to run the matmul benchmark, it looks as though the point at which jaf outperforms native J matrix multiplication is about 150x150 On Mon, Jan 31, 2022 at 7:14 AM Eric Ive