Re: [Jprogramming] Symbols in J (was: J and APL symbols)

2013-04-09 Thread Ian Clark
Paul -- that was one of my first feelings watching this thread. Thanks to my mundane experience of training materials involving both APL and J, I was drawn into the problem of productively typing J code with APL comments. This drove me to produce these tools: An APL to J Phrasebook http://www.j

Re: [Jprogramming] Eigen values in J - example

2013-04-09 Thread Michal D.
Thanks a lot, Igor, for the example and all the work you put into the library. Both methods (1) and (2) chug along for a few minutes but end up spitting out a result that looks reasonable. Cheers, Mike On Tue, Apr 9, 2013 at 12:51 AM, Igor Zhuravlov wrote: > On 8 апреля 2013 22:53:13 Michal

Re: [Jprogramming] Fwd: Re: J and APL symbols

2013-04-09 Thread Alan Stebbens
On 04/09/2013 04:18 PM, Alan Stebbens wrote: Similarly, the alternative J input method might have allow one to enter "i", which could be a simple variable by itself, the start of a longer variable name, or the beginning of a J symbol: i. -> iota, i: -> steps. Entering "!" would show auto-completi

[Jprogramming] Fwd: Re: J and APL symbols

2013-04-09 Thread Alan Stebbens
No, it won't cancel "any" (by which I mean "all") of the advantage. But yes, it will lose SOME. It's a tradeoff. ... It seems reasonable that the people motivated to have a non-ASCII input and presentation mode for J should develop a working prototype, or work with someone who has the skills t

Re: [Jprogramming] J to C/C++

2013-04-09 Thread Thomas Costigliola
You could try to approach it from the other side. If it is not too difficult to describe your function yourself in C, you could write a small piece of C code, run your AD algorithm on it and then call that C code from J. Calling C code and passing arrays between J and C from J is very easy using th

Re: [Jprogramming] J and APL symbols

2013-04-09 Thread Raul Miller
On Tue, Apr 9, 2013 at 5:48 PM, Steven Taylor wrote: > I'm curious to see what Greg cooks up. I am in VS most days, so I'm bound > to check it out. ... > Do the lessons of html, css, js, jsv, json apply here? It's nice being > able to send an email with some code, and it'll just work. I have ne

Re: [Jprogramming] J and APL symbols

2013-04-09 Thread Greg Borota
Given that this feature has generated quite some interest I will give it higher priority. At the expense of syntax coloring/context-sensitive intellisense, for the initial stage. Something to play with, pretty dumb but illustrating the concept, just to get a feel. On Tue, Apr 9, 2013 at 4:48 PM,

Re: [Jprogramming] J to C/C++

2013-04-09 Thread bcubed
Hi Devon Unfortunately the AutoDif algorithm requires almost complete integration of the code that I am considering. This has to do with the nature of autodifferentiation. It requires access to the code for the equations to apply the chain rule (forwards and backwards in my case). Passing paramete

Re: [Jprogramming] J and APL symbols

2013-04-09 Thread Steven Taylor
just want to point out that I'm Steven Taylor, not Stephen Taylor. I've met Stephen once. He was the editor of Vector magazine in the UK... so, I don't want to create any heat for Stephen. ;-) "APL character set actually *enhances* the unification of similar notions" I hope so. I remember a c

Re: [Jprogramming] J and APL symbols

2013-04-09 Thread Greg Borota
Amen brother :-) On Tue, Apr 9, 2013 at 12:55 PM, Skip Cave wrote: > Stephen, > > I agree that making libraries and argument conventions more accessible > would take a significant step toward smoothing the J learning curve. > However, there is just something elegant about Iverson's notation tha

Re: [Jprogramming] J and APL symbols

2013-04-09 Thread Skip Cave
Stephen, I agree that making libraries and argument conventions more accessible would take a significant step toward smoothing the J learning curve. However, there is just something elegant about Iverson's notation that attracts people, eases the learning curve, and keeps diehard programmers using

Re: [Jprogramming] Eigen values in J

2013-04-09 Thread Devon McCormick
Hi - did you see something like this from Igor Z? load 'math/mt' geevlnn=: {.@ggevlnn_mt_@(,:(idmat_mt_@c_mt_)) geevlnn i.2 2 _0.561553 3.56155 geevlnn p: i.4 4 104.336 _4.54479 1.02295 _1.81419 I don't know what's a canonical matrix to use for eigenvalue demonstration, so these wil

Re: [Jprogramming] nutikabe - where's the error?

2013-04-09 Thread Devon McCormick
Also, there's a 2x2 of black cells starting at (3,2). On Mon, Apr 8, 2013 at 9:34 PM, Linda Alvord wrote: > Thanks Roger. When I get the result that works, I won't send it out. At > least I learned how to make the image available. Linda > > -Originat l Message- > From: programming-boun

Re: [Jprogramming] Eigen values in J - mt addon fixed

2013-04-09 Thread Devon McCormick
Thanks - I had a good idea what it was from the name and usage. Thanks for putting this package together. It's good to have a portable J-based solution. On Mon, Apr 8, 2013 at 11:27 PM, Igor Zhuravlov wrote: > On 8 апреля 2013 11:51:05 Devon McCormick wrote: > > I attempted to use one of the

Re: [Jprogramming] J Symbols

2013-04-09 Thread Skip Cave
If we want to keep the idea that a single-glyph version of J could be used as a *written notation* as well as a computer-entered programming language, coloring the characters will probably not work. I wouldn't want to be changing pen colors while writing J formulas on paper, or changing chalk color

Re: [Jprogramming] J Symbols

2013-04-09 Thread William Tanksley, Jr
neville holmes wrote: > Provide an option whereby J. primitives can be displayed > as the base J character but in (say) red, and J: primitives > can be displayed in (say) green. Humans don't process color with the same circuits that process text; so where color reinforces what the text says it's

Re: [Jprogramming] J and APL symbols

2013-04-09 Thread Steven Taylor
I still think making the libraries + argument conventions more navigable would be a more productive and better received application of the VS IDE. I did enjoy seeing Mark Simpsons APL to J mappings. Visually things like square root and not made more sense. With this symbol variation approach I'd

Re: [Jprogramming] J to C/C++

2013-04-09 Thread Devon McCormick
There will be such a utility when you write it. A more practical approach may be to call the J DLL from within your C++ code but I've not done this myself. On Tue, Apr 9, 2013 at 9:37 AM, bcubed wrote: > Hi forum > Is there any utility or function in J to translate J code to C/C++? I have > a

Re: [Jprogramming] PInvoke Binaries

2013-04-09 Thread Greg Borota
Thanks for letting us know. I don't have a 64 bit XP machine (those are pretty rare anyway, I think), but they do work with Vista/Windows7 64 bit. On Tue, Apr 9, 2013 at 3:42 AM, bill lam wrote: > I tested the binaries work fine a 32-bit windows xp. May be the 64-bit > windows xp is not suppor

[Jprogramming] J to C/C++

2013-04-09 Thread bcubed
Hi forum Is there any utility or function in J to translate J code to C/C++? I have a project in which I would like write most of the code in J but then integrate this into code on Auto Differentiation which is written in C++. I know that Matlab has this functionality but haven't encountered it in

Re: [Jprogramming] PInvoke Binaries

2013-04-09 Thread bill lam
I tested the binaries work fine a 32-bit windows xp. May be the 64-bit windows xp is not supported, but that will not be serious problem for me. On Fri, Apr 5, 2013 at 12:03 AM, Greg Borota wrote: > Strange message, never seen that before. > > I see that in Visual Studio one can target Itanium

Re: [Jprogramming] Eigen values in J - example

2013-04-09 Thread Igor Zhuravlov
On 8 апреля 2013 22:53:13 Michal D. wrote: > I haven't been able to sort through the mt code to decipher how to call the > routines with a single input matrix. It looks like quite a substantial > amount of important work. load'math/mt' NB. generate random symmetric 4x4-matrix to play with

[Jprogramming] J Symbols

2013-04-09 Thread neville holmes
I'm not as convertible as Skip Cave. I don't think that overlapping with the APL character set is a very good idea. How about this for another approach: Provide an option whereby J. primitives can be displayed as the base J character but in (say) red, and J: primitives can be displayed in (say)