Re: [Jprogramming] calling a dll that prints to console from jqt

2015-09-21 Thread bill lam
under linux, one can open a terminal and run jqt from there. Not sure about windows. On Tue, Sep 22, 2015 at 1:30 PM, 'Pascal Jasmin' via Programming wrote: > is there a way to obtain console output that is made from a dll call in jqt? > > (in jconsole the dll prints fine. Just nothing happens i

[Jprogramming] calling a dll that prints to console from jqt

2015-09-21 Thread 'Pascal Jasmin' via Programming
is there a way to obtain console output that is made from a dll call in jqt? (in jconsole the dll prints fine. Just nothing happens in qt) I guess a workaround is to spawn jconsole with the dll call, and get the output that way? can printf help? ---

Re: [Jprogramming] dll error passing pointer to integer

2015-09-21 Thread bill lam
Yes, harmless to quote lib even if it contains no spaces. Вт, 22 сен 2015, jprogramming написал(а): > if lib contains space > '"lib" af_get_device_count > i *i'&cd > thanks bill, that was it. > > '"D:/Program Files/ArrayFire/v3/lib/afcpu.dll" af_get_device_count i *i'&cd > <,n=. 1 > > I as

Re: [Jprogramming] dll error passing pointer to integer

2015-09-21 Thread 'Pascal Jasmin' via Programming
if lib contains space '"lib" af_get_device_count > i *i'&cd To: 'Pascal Jasmin' via Programming Cc: Sent: Monday, September 21, 2015 10:20 PM Subject: Re: [Jprogramming] dll error passing pointer to integer assume type of af_err is int and type of size_t is long > n *c *c *c *c : void de

[Jprogramming] viewmat problems in JHS

2015-09-21 Thread Linda A Alvord
JVERSION Engine: j804/2015-09-19 10:06:31 Library: 8.04.13 Platform: Win 32 Installer: J804 install InstallPath: c:/users/user/j804 This will crash in JHS but not in jqt: load 'viewmat' ]GRB=:|.1 0 2({"1) 255*#:i.8 GRB viewmat i.8 Linda --

Re: [Jprogramming] dll error passing pointer to integer

2015-09-21 Thread bill lam
assume type of af_err is int and type of size_t is long > n *c *c *c *c : void deviceInfo(char *d_name, char *d_platform, char > *d_toolkit, char *d_compute) > i *c *c *c *c : af_erraf_device_info(char* d_name, char* d_platform, > char *d_toolkit, char* d_compute) > i *i : af_

Re: [Jprogramming] odometer7

2015-09-21 Thread Linda A Alvord
How about these verbs in simple J: f=: 13 :'y#:i. */y' g=: 13 :'(4 $. $.)1$~y' Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of David Lambert Sent: Sunday, September 20, 2015 8:54 AM To: programming Sub

Re: [Jprogramming] FW: December issue of Journal of J

2015-09-21 Thread Devon McCormick
I urge everyone to support this effort. Having an online journal with a history could prove valuable for promoting the language and having your article published could help you! On Mon, Sep 21, 2015 at 12:30 PM, mikel paternain wrote: > > > > > Dear friends. > We are preparing the December issu

Re: [Jprogramming] dll error passing pointer to integer

2015-09-21 Thread Raul Miller
Compiler can choose whatever integer type it deems appropriate to hold an enum. So it's going to depend on what compiler built the dll. -- Raul On Mon, Sep 21, 2015 at 3:04 PM, 'Pascal Jasmin' via Programming wrote: > its a 64bit dll, posting code I have so far (though doesn't work) > > requi

[Jprogramming] dll error passing pointer to integer

2015-09-21 Thread 'Pascal Jasmin' via Programming
its a 64bit dll, posting code I have so far (though doesn't work) require 'dll' pD_z_ =: 1!:2&2 cocurrent 'af' pD 'Arrayfire libpath set to: ' ;libAFpath =: IFWIN pick '';'D:\Program Files\ArrayFire\v3\lib' libAFmainlib =: libAFpath , (IFIOS + (;: 'Win Linux Android Darwin') i. /"1 cdparse

[Jprogramming] FW: December issue of Journal of J

2015-09-21 Thread mikel paternain
Dear friends. We are preparing the December issue of JoJ. , Send materials (letters, papers, etc.) before November 31. Thanks in advance. Mikel --

Re: [Jprogramming] Arrayfire (OpenCl/Cuda Blas Boost)

2015-09-21 Thread 'Pascal Jasmin' via Programming
some of their chosen benchmarks http://arrayfire.com/benchmarking-parallel-vector-libraries/ Taking reduce as an example, J is faster than all of them for small vector sizes. about 10gbps on my system, but maxes out there. 330 timespacex '+/ a' [a=. ? 1e5 $ 1000 9.93823e_5 2176 330 timespace