Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread 'Jim Russell' via Programming
Never mind, now I've got it; spxhtml and spxlatex are undocumented since they are jhs only, and they are executed from within the NB. statements in the .ijs script being executed, but not the copy displayed by the script in the edit statement. Thanks Kenneth and Erick. Sorry Raul, I was unabl

Re: [Jprogramming] J and data structures

2019-11-19 Thread 'Rob Hodgkinson' via Programming
Devon, my previous reply also brought to mind a very good example you request below … In kdb+ the “table” datatype is built atop the “dictionary” data type… a table may be perceived as a list of dictionaries (Key value pairs) that are Columns/Values. I’ll send you a paper offline that shows th

Re: [Jprogramming] J and data structures

2019-11-19 Thread 'Rob Hodgkinson' via Programming
OK thanks Raul. Fast append is no issue, appends can be very fast as you suggest. The issue is to maintain an ordering attribute that is fast/custom for each use case (in my case an incoming order). Linked Lists work very effectively, although having said that I would not try to write a fast

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread 'Jim Russell' via Programming
That's the lab that confused me. Spxhtml and spxlatex are in NB. comments, and changing the arguments (in those comment lines, in the script display) does nothing to change the outputs. Perhaps there is another copy of the script that is running. Are the NB. Lines being run/interpreted? > On No

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread Raul Miller
Ah, nice -- thank you. (Once I remembered to use osx command key instead of control key.) Thanks again, -- Raul On Tue, Nov 19, 2019 at 5:16 PM Eric Iverson wrote: > > The spx.ijs script demos spx facilities and is specific to JHS. > > The script to load the JHS 'simple project manager and re

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread Eric Iverson
The spx.ijs script demos spx facilities and is specific to JHS. The script to load the JHS 'simple project manager and related tools' is: ~addons/ide/jhs/sp.ijs After the load, display sphelp and spxhelp for basic docs. Many of the ideas of spx were merged into the latest version of labs. That i

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread Raul Miller
Yeah, I tried that example, also: load '~addons/ide/jhs/spx/spx.ijs' |value error: script Thanks, -- Raul On Tue, Nov 19, 2019 at 4:58 PM 'Jim Russell' via Programming wrote: > > As I recall, you need to add one more directory level to /spx.ijs for the > help script. I'll check if I can r

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread 'Jim Russell' via Programming
As I recall, you need to add one more directory level to /spx.ijs for the help script. I'll check if I can reach my Mac mini at home. > On Nov 19, 2019, at 4:42 PM, Raul Miller wrote: > > http://www.jsoftware.com/pipermail/general/2017-May/037187.html says: > > "Note that spx, although devel

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread Raul Miller
http://www.jsoftware.com/pipermail/general/2017-May/037187.html says: "Note that spx, although develped orginally in JHS, can be used the same way in Jqt (ctrl+j advance) and in jconsole." But it's not clear to me how to load spx under jqt. For example: load '~addons/ide/jhs/spx' |interface

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread 'Kenneth Lettow' via Programming
Also see, http://www.jsoftware.com/pipermail/general/2017-May/037187.html On Tue, Nov 19, 2019 at 3:48 PM 'Jim Russell' via Programming < programm...@jsoftware.com> wrote: > Any users? (It's neat!) Any hints what's happening under the covers where > comments in spx.ijs refer to spxhtml and spxla

Re: [Jprogramming] SPX (in JHS)

2019-11-19 Thread 'Kenneth Lettow' via Programming
Hi Jim, I use it often, it is what is "under the hood" when you are running JD tutorials using jdrt. If you fire up a JHS instance, there is actually a tour of spx under "tour -> spx". It explains spxhtml and spxlatex in the lab. On Tue, Nov 19, 2019 at 3:48 PM 'Jim Russell' via Programming

Re: [Jprogramming] J and data structures

2019-11-19 Thread Raul Miller
Fast append can be implemented on an array language without linked lists -- the mechanism involves leaving some empty memory at the end of arrays and using that for append when there's only one reference to the array and that reference is being updated. For multi-key indexing, what you would do i

Re: [Jprogramming] J and data structures

2019-11-19 Thread 'Rob Hodgkinson' via Programming
I disagree on this point Devon, linked lists are a very powerful data structure and can be “overlaid” atop dynamic arrays to maintain a desired index order. Without such a structure the only practical way is to append and (re)sort to maintain an array in a suitable form. An example of this is t

[Jprogramming] SPX (in JHS)

2019-11-19 Thread 'Jim Russell' via Programming
Any users? (It's neat!) Any hints what's happening under the covers where comments in spx.ijs refer to spxhtml and spxlatex (lines 48-57)? -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] J and data structures

2019-11-19 Thread Raul Miller
Yes, for J, you'd probably do something like (#/.~ trigrams), for a batch of extracted trigrams. (Or something a bit more complicated, if you allowed wildcard placeholders in your trigrams.) And, if you had multiple batches, for example, from : labels1=: ~.trigrams1 sums1=: #/.~trigrams1 labels2=

Re: [Jprogramming] 901-beta-q

2019-11-19 Thread 'Jim Russell' via Programming
Perhaps not for betas, but the standard way updates are done for iOS/Mac App Store updates? (I guess add ons would remain a special case?) > On Nov 19, 2019, at 11:39 AM, Raul Miller wrote: > > I keep hoping that this will become something like an entry in j's > package manager. --

Re: [Jprogramming] J and data structures

2019-11-19 Thread 'Jim Russell' via Programming
I used dictionary objects in Visual Basic (Access) to report similarity in text strings based on trigram usage. The keys were the distinct 3-letter combinations; the values were the incremented hit counts. It was both efficient and effective. But I think there is a better array approach in J.

Re: [Jprogramming] 901-beta-q

2019-11-19 Thread Eric Iverson
As je_update is already standard in current pacman, I assume you mean a visible part of gui front ends to pacman. This is now possible and I expect we will move to that. On Tue, Nov 19, 2019 at 11:39 AM Raul Miller wrote: > I keep hoping that this will become something like an entry in j's > pac

Re: [Jprogramming] 901-beta-q

2019-11-19 Thread Raul Miller
I keep hoping that this will become something like an entry in j's package manager. Thanks, -- Raul On Mon, Nov 18, 2019 at 6:51 PM Eric Iverson wrote: > > I repeat the beta update instructions here (as I probably should have done > for each release). This will get easier down the road and now

Re: [Jprogramming] J and data structures

2019-11-19 Thread Louis de Forcrand
A simple use case which resembles the German-English dictionary is to implement variable-value bindings in a small interpreter. I've run into this many times in what I've been doing lately. Cheers, Louis > On 18 Nov 2019, at 19:38, Raul Miller wrote: > > Dictionaries might provide a useful op

Re: [Jprogramming] 901-beta-q

2019-11-19 Thread 'Mike Day' via Programming
Thanks, Eric. Cheers, Mike Sent from my iPad > On 18 Nov 2019, at 23:51, Eric Iverson wrote: > > I repeat the beta update instructions here (as I probably should have done > for each release). This will get easier down the road and now that we've > sorted out a few issues. > > *** > If JVERSI