Re: [Jprogramming] dsl for spreadsheet like input selectors

2014-08-18 Thread 'Pascal Jasmin' via Programming
glad you enjoyed, the conjunctions also let you cut down on parens to banish even more of them:    bea=: 1 : ';/ m'    ba=: 1 : '< m'    wa=: 1 : ';: m' 'total quantity'ba 4 2 ba} (([: +/&.:> 1 1 to 3 1 { ]) 4 1 ba} ]) 'rice beans eggs'wa 1 0 to 3 0 } 1 2 3 bea 1 1 to 3 1} 'foods qty'wa 0 0

Re: [Jprogramming] dsl for spreadsheet like input selectors

2014-08-18 Thread Joe Bogner
Pascal, thanks for sharing. It reminds me of sc in some ways. I doubt I'd use it for this purpose but it was fun to play with and it seems like an easier syntax for ammend ]s=:5 3 $ <'' ]s=:(<'foods')(0 0 to 0 0) } s ]s=:(<'qty')(0 1 to 0 1) } s ]s=:(<"0@+&1@i.3) (1 1 to 3 1) } s ]s=:('rice';'bean

Re: [Jprogramming] dsl for spreadsheet like input selectors

2014-08-18 Thread 'Pascal Jasmin' via Programming
sorry, mistyped to2   to2 =: [: <"1 [: ,."0/&>/ [ +&.> [: i.@:>:&.> -~ - Original Message - From: Brian Schott To: Programming forum Cc: Sent: Monday, August 18, 2014 5:32:43 PM Subject: Re: [Jprogramming] dsl for spreadsheet like input selectors I am not getting good results with to

Re: [Jprogramming] dsl for spreadsheet like input selectors

2014-08-18 Thread Brian Schott
I am not getting good results with to2. I am playing with the following. CP=: {@(,&<) cross =: [: CP &>/< @:i.@>:"0 0 1 -.~&(,&cross) 2 3 ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ │0 2│0 3│1 0│1 1│1 2│1 3│2 0│2 1│2 2│2 3│ └───┴───┴───┴───┴───┴───┴───┴───┴───┴───┘ On Mon, Aug 18, 2014 at

[Jprogramming] dsl for spreadsheet like input selectors

2014-08-18 Thread 'Pascal Jasmin' via Programming
spreadsheets have a range selection syntax like A1:C3&F4~B2  which means the block range from A1 to C3 with the cell F4 added, and the cell B2 removed. Ignoring the letter conversions, here are some useful J functions for building a list of selectors (can be used with both { and }).  Conjunction

Re: [Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread bill lam
Sorry. You are correct. The following comment appears in j engine source. I guess this was written more than a decade ago when 64-bit COM was uncommon. But by now, there is not so much incentive to support 64-bit COM. //! 64 bit problems - com and dll interface is 32 bit - needs test and thought

Re: [Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread bill lam
The subject said JDLLServer which should be available in all versions of J engines. You need to run the batch file included to register the COM server. If you use the AIO installer, this will be done for you. Пн, 18 авг 2014, John Baker написал(а): > I curious as to what version of j64 you are us

Re: [Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread seb_foren
I curious as to what version of j64 you are using. Are the COM servers still embedded in j8.02? Yes, they are. :) On Mon, Aug 18, 2014 at 7:55 AM, bill lam wrote: I'm not an expert on C#, but it seems that int is always 4-byte whether on 32 or 64 bit, so that you propably need int64[]

Re: [Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread seb_foren
Thanks for your reply. I'm not an expert on C#, but it seems that int is always 4-byte whether on 32 or 64 bit, so that you propably need int64[] for J64. Yes, that right. Integers like int or Int32 have a size of 32 bit, but that is not the problem here. Already the _j.GetB always returns box

Re: [Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread John Baker
I curious as to what version of j64 you are using. Are the COM servers still embedded in j8.02? On Mon, Aug 18, 2014 at 7:55 AM, bill lam wrote: > I'm not an expert on C#, but it seems that int is always 4-byte whether on > 32 or 64 bit, so that you propably need int64[] for J64. > On Aug 18, 2

Re: [Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread bill lam
I'm not an expert on C#, but it seems that int is always 4-byte whether on 32 or 64 bit, so that you propably need int64[] for J64. On Aug 18, 2014 8:16 PM, wrote: > I have an issue with the 64-bit JDLLServer in relation to 64 integers. It > seems that JDLLServer handles only the lower 32 bits of

[Jprogramming] 64/32 bit issue with JDLLServer .NET

2014-08-18 Thread seb_foren
I have an issue with the 64-bit JDLLServer in relation to 64 integers. It seems that JDLLServer handles only the lower 32 bits of a 64 bit value. The following test demonstrates this issue: Test (C#): var value = 1000 + ((Int64)1 << 32); _j.Do(String.Format("a =: {0}", value)); Assert.AreEqual(