Re: [Jprogramming] @: and capped fork

2012-12-03 Thread Bo Jacoby
Alex Giannakopoulos wrote: it's the *spirit* that counts. 1361: CREDO IN SPIRITUM QUI LOCUTUS EST PER PROPHETAS AMEN - Bo Fra: Alex Giannakopoulos aeg...@blueyonder.co.uk Til: programm...@jsoftware.com Sendt: 12:37 mandag den 3. december 2012 Emne: Re:

Re: [Jprogramming] JHS meets MathJax

2012-12-03 Thread Stefano Lanzavecchia
I had heard about COM in Win8. Is it still being promoted as a development target? It's been tolerated in .Net for ages but always prefaced with phrases like legacy technology. COM's main drawback is that it has not caught on outside of Microsoft. For those of us interested in portable

Re: [Jprogramming] JHS meets MathJax

2012-12-03 Thread John Baker
Interesting. If this becomes well accepted COM may have broken out of its MS jail. On Mon, Dec 3, 2012 at 9:36 AM, Stefano Lanzavecchia s...@apl.it wrote: I had heard about COM in Win8. Is it still being promoted as a development target? It's been tolerated in .Net for ages but always

Re: [Jprogramming] Passing arbitrary data from JavaScript back to JHS

2012-12-03 Thread Eric Iverson
You probably want to look at JSON. This is a serialization of any JS object. Javascript has built in methods to serialize an object and to create an object. The encoding is pretty straight forward and it is easy to write equivalents in J. Note that for data there is direct correspondence between a

Re: [Jprogramming] Passing arbitrary data from JavaScript back to JHS

2012-12-03 Thread John Baker
I am using JSON to pass the grid data from JHS to Javascript. The verb griddatfrtd reads TAB delimited CSV style text and builds a JSON string for DHTMLX. What I am wondering is how to do the reverse. I can build the JSON on the JavaScript side but how do you post this back to JHS. jdoajax

Re: [Jprogramming] @: and capped fork

2012-12-03 Thread Alex Giannakopoulos
On 3 December 2012 15:59, Raul Miller rauldmil...@gmail.com wrote: That said, when I want to translate J into a language other people understand, Javascript is usually my first choice. Why does that not surprise me? :-) Incidentally, and if you have nothing better to do, how would you code

Re: [Jprogramming] @: and capped fork

2012-12-03 Thread Devon McCormick
I'm sure I don't understand the Javascript-specific nuances of your question, but is a J version much different than this? do_something0 a=. 'bee';'see' On Mon, Dec 3, 2012 at 1:09 PM, Alex Giannakopoulos aeg...@blueyonder.co.uk wrote: On 3 December 2012 15:59, Raul Miller

Re: [Jprogramming] @: and capped fork

2012-12-03 Thread Alex Giannakopoulos
Thanks Stefano, that's what I meant, viz. how can you access a structure within a variable, whether its a box or whatever, by a variable that is only defined within the context of the main variable, i.e. not an index, but a structure name. Same as you'd do with a struct in C. A property, or

Re: [Jprogramming] @: and capped fork

2012-12-03 Thread Raul Miller
There are several ways of translating that javascript code into J, I would have to know something about the larger context to know which of them I would pick. That said, one of the simplest would be: do_something 'bee' do_something 'see' Another variation would be: b_a_=: 'bee' s_a_=: 'see'

Re: [Jprogramming] Getting more than one value back from From or alternative approach

2012-12-03 Thread Ric Sherlock
I was wanting to get a feel for if I was on the right track but that is pretty easy to add that too if need be: 1j1#1 ((e3 e.1 {.f)+e3 e.1 f)}'.','@',:5 5$'X' . @ . . . . @ @ . . . X . @ . . @ . . . . . . . @ On Tue, Dec 4, 2012 at 6:49 PM, bob therriault bobtherria...@mac.comwrote: Yeah,

Re: [Jprogramming] Getting more than one value back from From or alternative approach

2012-12-03 Thread PackRat
Thank you, Ric and especially Bob! Bob Therriault wrote: Is there a reason that you would not be able to add the spaces at the end using iji # ? sqdata=. 'X@@.@..@@...@' e=.5 5 $ e3 { sqdata 1j1#1 e My original version was along your lines (that is, no spaces until the end)