Re: [Jprogramming] C# Interop and loading other modules/packages

2014-08-07 Thread seb_foren
Yeah, that was it. Thank you :) -- Originalnachricht -- Von: "bill lam" An: "Programming forum" Gesendet: 07.08.2014 03:23:29 Betreff: Re: [Jprogramming] C# Interop and loading other modules/packages You probably forgot to load the profile first. This is documented in jwiki, search

Re: [Jprogramming] J and .Net

2014-08-07 Thread bill lam
I don't think this is possible because .Net use it own calling convention. However it may work using another interface (not 15!:0) if j were built using .net framework. (just speculation) Пт, 08 авг 2014, Raul Miller написал(а): > Does anyone know how to call .Net methods from a windows implement

[Jprogramming] J and .Net

2014-08-07 Thread Raul Miller
Does anyone know how to call .Net methods from a windows implementation of J, using the 15!: interface? Thanks, -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Escaping quotes in the table control

2014-08-07 Thread chris burke
If you have " characters in the data, you should delimit with DEL, see the beginning of http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Command%20Reference e.g. from the qtdemo script: wd 'set listbox items ',;DEL,each ({."1 TITLES),each DEL On Thu, Aug 7, 2014 at 8:18 PM, Henry Rich wro

[Jprogramming] Escaping quotes in the table control

2014-08-07 Thread Henry Rich
I am trying to use the table control in JQT. It works fine when my data doesn't contain " characters. My fields contain spaces, so I applied dquote to them as the docs suggested. This encloses the field in "" and doubles any " characters in the fields. It seems that QT doesn't recognize ""

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Henry Rich
dissect runs the sentence twice, once as you give it and again in the highly instrumented form needed for dissection (I do this just to make sure they produce the same results). When the sentence has a side effect, it happens twice. Maybe there should be an option to suppress this? Also, per

Re: [Jprogramming] parsing abuse, verb to conjunction

2014-08-07 Thread 'Pascal Jasmin' via Programming
> Are you sure [: is a better combiner than @: ? The reason I am nearly sure is that in u@:v any adverbs applied to v also apply to u in such a way that it would seem compliacated to undo/avoid.  It can still be applied to all with ([: u v)a .  But the option of ([: u  v a) remains. So with my

Re: [Jprogramming] parsing abuse, verb to conjunction

2014-08-07 Thread Jose Mario Quintana
Pascal wrote: " '* %' eval * % " Yes, one can write an explicit adverb (eval) to evaluate strings. One can even write a fixed tacit adverb to evaluate strings; Dan’s anonymous evoke (ae) is such an adverb but (even with some limitations) it is complicated [0]. This was the motivation for impl

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Linda Alvord
Henry, I found this a little surprising. There are two copies of the viewmat. load '~addons/debug/dissect/dissect.ijs' (change as necessary) load 'viewmat' at2=: 13 :'([:{:"1 *.) j./"1 y' dissect 'viewmat at2"0 /~i:4' Linda -Original Message- From: programming-boun...@forums.jsoftware.

[Jprogramming] Jsoftware Conference 2014 proceedings

2014-08-07 Thread mikel paternain
Dear friends, Journal of J will publish Jsoftware conference proceedings in a special August issue. We are now preparing this special issue. Please send your contributions as soon as possible. Thanks. JoJ www.journalofj.com

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Henry Rich
Hm, I'll have to fix that before the students find out... Henry Rich On 8/7/2014 4:34 PM, Dan Bron wrote: Heh, try dissect 'dissect ''i.10'' ' - Original Message --- Subject: Re: [Jprogramming] Announcement: Graphical sentence debugger for J From: Henry Rich Date:

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Dan Bron
Heh, try dissect 'dissect ''i.10'' ' - Original Message --- Subject: Re: [Jprogramming] Announcement: Graphical sentence debugger for J From: Henry Rich Date: Thu, 07 Aug 2014 15:26:02 -0400 To: programm...@jsoftware.com dissect is not yet integrated into the IDE

Re: [Jprogramming] Where in J802 are: grid and winapi?

2014-08-07 Thread Henry Rich
Sorry, somehow I deleted that before reading it. Thanks. Henry Rich On 8/7/2014 3:23 PM, chris burke wrote: What about grid? Didn't you like my answer? http://www.jsoftware.com/pipermail/programming/2014-August/038767.html On Thu, Aug 7, 2014 at 12:12 PM, Henry Rich wrote: What about g

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Henry Rich
dissect is not yet integrated into the IDE (because I just released it yesterday and haven't talked to Chris about it). It has a Wiki page and will no doubt get mentioned more in the docs, if it is any good. Henry Rich On 8/7/2014 11:38 AM, Murray Eisenberg wrote: Apparently my question and

Re: [Jprogramming] Where in J802 are: grid and winapi?

2014-08-07 Thread chris burke
>What about grid? Didn't you like my answer? http://www.jsoftware.com/pipermail/programming/2014-August/038767.html On Thu, Aug 7, 2014 at 12:12 PM, Henry Rich wrote: > What about grid? > > Henry Rich > > > On 8/7/2014 10:49 AM, bill lam wrote: > >> The winapi addon is 32-bit only, so that it

Re: [Jprogramming] Where in J802 are: grid and winapi?

2014-08-07 Thread Henry Rich
What about grid? Henry Rich On 8/7/2014 10:49 AM, bill lam wrote: The winapi addon is 32-bit only, so that it won't work for 64-bit. It is much better to google the window api in msdn sites where contain the full official documentation. Чт, 07 авг 2014, Henry Rich написал(а): Trying to move t

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread greg heil
>Beauty only takes you so far though... i used some ts methodology to try and >further my understanding. >though my forked version would seem to be faster on the Collatz function than >Rogers: cg=: -:`(>:++:)`1:@.(1&=+2&|) NB. ts = 1.09799e_5 1216 cr=: -:`(>:@(3&*))`1:@.(1&= + 2&|) NB. ts

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread chris burke
> Aha, one can edit ~user/config/folders.cfg (via the jqt Edit menu) to alter the Find in Files options. > Is that documented somewhere? Yes. The second entry in FiF is labelled "In folder:", and folders are documented in wiki page http://www.jsoftware.com/jwiki/Guides/Folders%20and%20Projects.

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread 'Pascal Jasmin' via Programming
Package manager will often have descriptions of every addon it knows about. There could be a wikipage that lists them all along with any links to usage help pages, and perhaps links to addons/packages that are not part of the distribution. - Original Message - From: Murray Eisenberg T

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Murray Eisenberg
Apparently my question and its purpose was misunderstood. I was not asking what the load statement should be, since as I indicated I was able to find dissect.ijs by using an OS X search. Rather, my question was how to find dissect from within the running J system, e.g., from jqt. And the purpo

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread Murray Eisenberg
Aha, one can edit ~user/config/folders.cfg (via the jqt Edit menu) to alter the Find in Files options. Is that documented somewhere? On 6 Aug 2014 15:01:15 -0600, Don Guinn wrote: > Go to Edit/Configure/Folders. There you can add whatever additional > directories you like. I added "System ~i

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread bill lam
I beiefly tested it works on android, but android does not support right mouse click, so that you may want to search for alternatives. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-07 Thread John Baker
This is a bery slick bit of work Henry. I am in the process learning how to grok your displays. If anything else it's a clear demonstration that the j 8.02 wd facilties are ready for the big leagues. On Wed, Aug 6, 2014 at 8:13 PM, Tom Arneson wrote: > It works for me. I loaded it by: > >

Re: [Jprogramming] Where in J802 are: grid and winapi?

2014-08-07 Thread bill lam
The winapi addon is 32-bit only, so that it won't work for 64-bit. It is much better to google the window api in msdn sites where contain the full official documentation. Чт, 07 авг 2014, Henry Rich написал(а): > Trying to move things to J802, I can't find winapi.ijs and the grid addon. > I have l

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread 'Pascal Jasmin' via Programming
There may in fact be something to that Raul, however, it does not appear to extend to an external adverb that matches the pattern. iabA =: 1 : '(m*[)+ (-.m)*]' iabA3 =: 1 : '[: m} ,:' iabA4 =: 1 : (':'; ' m} x ,: y') c20 =: 3 : 0   a =. 2 | y   b =. 2 + 6 * y   c =. y a iabA4  b   (_1 &

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Joe Bogner
My mistake. I think that should have been c1 =: 3 : '3!:0 (2 | y) [ (2 | y) } y ,: (2 + 6 * y)' c1 T 1 The hunt continues On Thu, Aug 7, 2014 at 10:10 AM, Joe Bogner wrote: > It appears to be due to the boolean list special code: > > c1 =: 3 : '3!:0 (2 | y) ] (2 | y) } y ,: (2 + 6 * y)' > >

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Devon McCormick
Note that re-using one of the internal names gives a slight improvement in space and a corresponding one in time: c3=: 3 : 0 a=. 2|y c=. 2+6*y c=. a } y ,: c (_1 & (33 b.)) c ) 100 ts 'c2 a' 0.0196169 2.62189e7 100 ts 'c3 a' 0.0170517 1.78303e7 Though I would normally rate these ti

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Joe Bogner
It appears to be due to the boolean list special code: c1 =: 3 : '3!:0 (2 | y) ] (2 | y) } y ,: (2 + 6 * y)' c2 =: 3 : 0 a =: 2 | y b =: 2 + 6 * y c =: a } y ,: b 3!:0 a ) c1 T 4 c2 T 1 On Thu, Aug 7, 2014 at 9:24 AM, Raul Miller wrote: > That was my original impression. > > B

Re: [Jprogramming] Power for the powerless

2014-08-07 Thread Linda Alvord
But the answer is incorrect. I'm missed the =:=: (-:1p1)^4 6.08807 NB.(sin y) = -/ (y ^ i) % ! i=. 1 + 2 * i. n NB.(cos y) = -/ (y ^ i) % ! i=. 2 * i. n sin2=: 13 :'-/(y^i)% ! i=. 1+2 *i. x' 4 sin2 -:1p1 0.999843 (-:1p1)^4 6.08807 NB.(sin y) = -/ (y ^ i) % ! i=.

Re: [Jprogramming] Power for the powerless

2014-08-07 Thread Joe Bogner
The first sin definition is psuedo code: (sin y) = -/ (y ^ i) % ! i=. 1 + 2 * i. n You need to use the full definition from the paper... My suggestion is to create a new script from the collected definitions section ... DP=: 40 round=: DP&$: : (4 : 0) b %~ <.1r2+y*b=. 10x^x ) pi=: DP&$: : (

Re: [Jprogramming] Where in J802 are: grid and winapi?

2014-08-07 Thread chris burke
Both are out of date and not available in J802. We don't plan to resurrect winapi, as the windows API is well enough documented elsewhere. For grid, the table control should handle most uses, e.g. see the Package Manager. Extensions such as the hierarchical and multi-dimensional grids are planned

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Raul Miller
That was my original impression. But then I looked at the right hand side of the expression: Why is it labelled x,y,:z and why does the text mention the case c}x,y,...,:z? It might be that this was originally a more ambitious project and that Roger got interrupted before he finished it. Anyways

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Brian Schott
This is a hair brained idea, but could it be that in c1 the left hand component is being treated as a part of the amend, but in c2 the c part is split out and not part of the amend? -- (B=) -- For information about J forums see

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread 'Pascal Jasmin' via Programming
   timespacex 'c1 T' 0.0547916 6.81632e7    timespacex 'c2 T' 0.0286093 2.62189e7 There is 1/3 space. What is amazing is that it seems like any change at all to your 4 liner (c1) makes its timings equal to the other approach. that includes changing b and c lines to  b =. y ,: 2 + 6 * y c =

[Jprogramming] Where in J802 are: grid and winapi?

2014-08-07 Thread Henry Rich
Trying to move things to J802, I can't find winapi.ijs and the grid addon. I have looked in the addons and the base library without success. Where are they? Henry Rich -- For information about J forums see http://www.jsoftwar

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Henry Rich
'boolean' here means that 3!:0 returns 1; the values are restricted to {0,1}. Details at http://www.jsoftware.com/jwiki/Vocabulary/SpecialCombinations#Assignments_In_Place_.28AIP.29 Henry Rich On 8/7/2014 8:42 AM, Raul Miller wrote: I think http://jsoftware.com/help/release/iamend.htm might

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Raul Miller
I think http://jsoftware.com/help/release/iamend.htm might be relevant. Note also that in this case I'm not sure if "boolean" really means "non-negative integer". (If I understand properly: in George Boole's arithmetic these were equivalent, and some of the details here suggest that that original

Re: [Jprogramming] Power for the powerless

2014-08-07 Thread Raul Miller
You might try replacing =:=: with =: Thanks, -- Raul On Thu, Aug 7, 2014 at 5:58 AM, Linda Alvord wrote: > Roger, I havejust begun to read this thread and I went to your article and > I > can't seem to implement the definition of sin2 using the Taylor's series. > > > f=: 13 :'(*: 2 o.

Re: [Jprogramming] unexpected explicit vs tacit benchmark

2014-08-07 Thread Devon McCormick
The timings for the three versions are virtually identical on my machine: (100) 6!:2 'tob64 a' 0.0588601 (100) 6!:2 'tobase64 a' 0.0594434 (100) 6!:2 'tb64 a' 0.0568209 On Wed, Aug 6, 2014 at 2:38 PM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > One theory I ha

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread R.E. Boss
Observe this 20 ts 'c2 T' 0.017945407 26218880 c2 =: 3 : 0 a =: 2 | y b =: 2 + 6 * y c =: a } y ,: b (_1 & (33 b.)) c ) 20 ts 'c2 T' 0.017914281 16780928 20 ts 'c1 T' 0.033379607 68163200 Using global defines, memory drops further to 1/4 of c1 R.E. Boss (Add you

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread R.E. Boss
Also the memory is less than half ts 'c2 T' 0.025803916 26218880 ts 'c1 T' 0.043909495 68163200 R.E. Boss (Add your info to http://www.jsoftware.com/jwiki/Community/Demographics ) > -Original Message- > From: programming-boun...@forums.jsoftware.com [mailto:programming- > boun.

Re: [Jprogramming] Memoizing (Project Euler problem 14)

2014-08-07 Thread Roger Stokes
Dear All, I've come across a puzzle and would be glad if someone could explain it. In a few words, I have a variation of collatzv which is a one-liner (c1 below) and the very same verb spread over several lines (c2 below). The second is nearly twice as fast as the first. How come? The timings

Re: [Jprogramming] Power for the powerless

2014-08-07 Thread Linda Alvord
Roger, I havejust begun to read this thread and I went to your article and I can't seem to implement the definition of sin2 using the Taylor's series. f=: 13 :'(*: 2 o. y)+*:1 o. y' 0j50 ": 50 f 1 1.00 sin=:1 o. ] cos=:2 o. ] g=: 13 :