Re: [Jprogramming] calling jj.dll

2013-06-22 Thread greg heil
to: programm...@jsoftware.com date: 22 June 2013 18:07 subject: Re: [Jprogramming] calling jj.dll Greg, >I did some minor changes to J6 jdll.ijs and copy it to j801 general/misc >addons.I tested it passed all of your tests for both 32 and 64-bit.Please see >if there are some other bugs. Thanks. -

Re: [Jprogramming] calling jj.dll

2013-06-22 Thread bill lam
ase. > > greg > ~krsnadas.org > > -- > > from: bill lam > to: programm...@jsoftware.com > date: 22 June 2013 15:04 > subject: Re: [Jprogramming] calling jj.dll > > >Does the original 32-bit J6 script work for all cases > including even/odd rank, box and

Re: [Jprogramming] calling jj.dll

2013-06-22 Thread bill lam
s.org > > -- > > from: bill lam > to: programm...@jsoftware.com > date: 22 June 2013 15:04 > subject: Re: [Jprogramming] calling jj.dll > > >Does the original 32-bit J6 script work for all cases > including even/odd rank, box and

Re: [Jprogramming] calling jj.dll

2013-06-22 Thread greg heil
certainly in my case. greg ~krsnadas.org -- from: bill lam to: programm...@jsoftware.com date: 22 June 2013 15:04 subject: Re: [Jprogramming] calling jj.dll >Does the original 32-bit J6 script work for all cases including even/odd rank, box and extended? If not, please report the bug with a

Re: [Jprogramming] calling jj.dll

2013-06-22 Thread bill lam
Does the original 32-bit J6 script work for all cases including even/odd rank, box and extended? If not, please report the bug with a simple example. Thanks. Сб, 22 июн 2013, greg heil писал(а): > >i am still trying to modify the J6 file ~system/examples/dll/jdll.ijs so it > >works on 64b arch

Re: [Jprogramming] calling jj.dll

2013-06-22 Thread greg heil
>i am still trying to modify the J6 file ~system/examples/dll/jdll.ijs so it >works on 64b architectures in j7 and j8, maybe generally. The results so far >are appended below. i do not have any standard (non-reversed) architectures to >work with, so there may be a problem outside of Intel too.

Re: [Jprogramming] calling jj.dll

2013-06-21 Thread Raul Miller
Oh, you are correct, I had forgotten about that. Thank you. I wish I could go back and edit my prior email to correct my error. Restated: on 32 bit J, when the rank of the array is even an extra 4 bytes of padding are added before the data. Thanks again, -- Raul On Fri, Jun 21, 2013 at 1:31

Re: [Jprogramming] calling jj.dll

2013-06-20 Thread neitzel
Hi Raul, >The underlying mechanism only makes sense when mixing structure >elements which have different sizes. I fail to understand this, probably because I lost track of the original context. (I.e., what is Greg trying to do?) >Still, if you can find any examples, it would be great to hear ab

Re: [Jprogramming] calling jj.dll

2013-06-20 Thread Raul Miller
if you can find any examples, it would be great to hear about them. > > Thanks, > > -- > Raul > > -- > > from: neit...@gaertner.de > to: programm...@jsoftware.com > date: 20 June 2013 13:59 > subject: Re: [Jprogramming] calling jj.dll > > GREG> 2)Is th

Re: [Jprogramming] calling jj.dll

2013-06-20 Thread greg heil
i think i am going to have to punt on eXtended. Maybe even boxed if padding is a problem. That would be sad as i know of no other effective way for ragged arrays. greg ~krsnadas.org -- from: Raul Miller to: Programming forum date: 20 June 2013 14:20 subject: Re: [Jprogramming] calling jj.dll

Re: [Jprogramming] calling jj.dll

2013-06-20 Thread Raul Miller
I do not think that you can find any examples of this. The underlying mechanism only makes sense when mixing structure elements which have different sizes. Still, if you can find any examples, it would be great to hear about them. Thanks, -- Raul On Thu, Jun 20, 2013 at 4:59 PM, wrote: > GR

Re: [Jprogramming] calling jj.dll

2013-06-20 Thread neitzel
GREG> 2)Is there a formula for header size depending on rank? RAUL> So, expressed in C, it's (7+rank)*sizeof I There may also be some padding after the s[] shape elements and before the data values following the header in order to have the data values properly aligned. (Think of "doubles" req

Re: [Jprogramming] calling jj.dll

2013-06-19 Thread Raul Miller
On Tue, Jun 18, 2013 at 9:07 AM, greg heil wrote: > 1)Is there a citation for the meaning of x vs i? http://www.jsoftware.com/help/user/call_procedure.htm > 2)Is there a formula for header size depending on rank? https://github.com/openj/core/blob/master/jtype.h#L41 says: typedef struct {I k,fl

Re: [Jprogramming] calling jj.dll

2013-06-18 Thread greg heil
2013 03:55 subject: Re: [Jprogramming] calling jj.dll It ought to be 2*28 (or 56) for J64. Note that this will change, though, based on the rank of the array. -- from: bill lam to: programm...@jsoftware.com date: 17 June 2013 21:00 subject: Re: [Jprogramming] calling jj.dll >Using "i

Re: [Jprogramming] calling jj.dll

2013-06-18 Thread Raul Miller
ripts also lose the ability to >> >handle boxed and extended types on j32. The script i modified seems to work >> >on j32, j64 and j6 to j8 losing boxing and extendeds on 64b machines only. >> >> greg >> ~krsnadas.org >> >> -- >> >> from: b

Re: [Jprogramming] calling jj.dll

2013-06-17 Thread bill lam
rsnadas.org > > -- > > from: bill lam > to: programm...@jsoftware.com > date: 17 June 2013 19:49 > subject: Re: [Jprogramming] calling jj.dll > > >Most of those "i" inside prototype signature shou

Re: [Jprogramming] calling jj.dll

2013-06-17 Thread greg heil
2, >j64 and j6 to j8 losing boxing and extendeds on 64b machines only. greg ~krsnadas.org -- from: bill lam to: programm...@jsoftware.com date: 17 June 2013 19:49 subject: Re: [Jprogramming] calling jj.dll >Most of those "i" inside prototype signature should changed to "x&q

Re: [Jprogramming] calling jj.dll

2013-06-17 Thread bill lam
Most of those "i" inside prototype signature should changed to "x", eg jinit=: 'j.dll JInit x' & cd cmd=. 'j.dll JGetM i x *c *x *x *x *x' Пн, 17 июн 2013, greg heil писал(а): > i modified, > > J6 examples/dll/jdll.ijs > > >as below, so it works in 64b J. However i did major punts on boxed an

Re: [Jprogramming] calling jj.dll

2013-06-17 Thread greg heil
i modified, J6 examples/dll/jdll.ijs >as below, so it works in 64b J. However i did major punts on boxed and >extended types. greg ~krsnadas.org --- NB. JDLL example NB. NB. This script gives examples of calling the J DLL from J. Similar NB. routines may be written in other languages that can

Re: [Jprogramming] calling jj.dll

2013-06-16 Thread Eric Iverson
You need to a Jinit call first to get a handle to a j instance. On Friday, June 14, 2013, greg heil wrote: > >i am hoping to use j.dll from ahk (autoHotKey) but am having problems > with even getting the dll to work in j7 or j8. i tried > > load 'dll files' > cmd=: 'i.9' > 'jj.dll JDo i *c' cd

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread bill lam
J dll call definitely works both 32 and 64-bits. I guess if you have gained enough experience with 32-bit J call then it will be trivial to do the same for 64-bit J. Пт, 14 июн 2013, greg heil писал(а): > Bill > > >i was expecting to find workable calls for 64b intel machines in j7 or j8 - > >w

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread greg heil
Bill >i was expecting to find workable calls for 64b intel machines in j7 or j8 - >which my server is... Are you saying such does not exist, or is incorrectly >documented, or? i did try running the example on the server but it failed with >a dialog box saying j.dll could not be found. >If i ha

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread bill lam
н 2013, greg heil писал(а): > Perhaps to be more precise/complete i used the second example in > > j64-801/addons/docs/help/user/calling_jdll.htm > > to wit > > load 'dll files' > 'jj.dll JDo i *c' cd <'ABC=: i.5' NB. define ABC > 'j

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread greg heil
got a crash. greg ~krsnadas.org -- from: bill lam to: programm...@jsoftware.com date: 14 June 2013 16:58 subject: Re: [Jprogramming] calling jj.dll >Your calling signaure is incorrect. You should install J6 to look for the

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread bill lam
find any "examples" directory in j7 or j8. > > i first tried >cmd=: '''abc'' 1!:2 <''t1.txt''' > given in an example i found at jsoftware.com, it also crashed j7 & j8. > > greg > ~krsnadas.org > > -- >

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread greg heil
com, it also crashed j7 & j8. greg ~krsnadas.org -- from: bill lam to: programm...@jsoftware.com date: 14 June 2013 16:25 subject: Re: [Jprogramming] calling jj.dll >Can you confirm it worked in J6? I suspect it will crash in J6 as well. Please >try follow the example as in J6 e

Re: [Jprogramming] calling jj.dll

2013-06-14 Thread bill lam
Can you confirm it worked in J6? I suspect it will crash in J6 as well. Please try follow the example as in J6 examples/dll/jdll.ijs Пт, 14 июн 2013, greg heil писал(а): > >i am hoping to use j.dll from ahk (autoHotKey) but am having problems with > >even getting the dll to work in j7 or j8. i

[Jprogramming] calling jj.dll

2013-06-14 Thread greg heil
>i am hoping to use j.dll from ahk (autoHotKey) but am having problems with >even getting the dll to work in j7 or j8. i tried load 'dll files' cmd=: 'i.9' 'jj.dll JDo i *c' cd and it crashed both j7 and j8 (assuming jj.dll exists, if not then just a >domain error). The example file for dll`s se