Re: [Jprogramming] Question about the internal working of J

2022-07-24 Thread Raul Miller
On Sun, Jul 24, 2022 at 2:39 AM Elijah Stone wrote: > On Sun, 24 Jul 2022, Raul Miller wrote: > > space/time tradeoff > > There should not be a significant time penalty for blocking, compared with > fully eager iteration. For the example of +/ 1 + i.100 ? certainly. But if that's as far as thing

Re: [Jprogramming] Print every digit in jconsole.sh?

2022-07-24 Thread Don Guinn
_50,\":*/ 1 + i.450x 17333687331126326593447131461045793996778112652090 51015569207509555333001683436750604675088290438710 61458112845184240978586185838063016502083472961813 51667570171918700422280962237272230663528084038062 31236934267413503661010150883822049497092973901163 67937661650237308

Re: [Jprogramming] Print every digit in jconsole.sh?

2022-07-24 Thread chris burke
Additional suggestions: 1. load'general/misc/format' xfmt */ 1 + i.450x 2. (in jqt) textview */ 1 + i.450x On Sat, Jul 23, 2022 at 10:12 PM Gilles Kirouac wrote: > > To see the full list of digits, use the standard utility foldpara. > > $a=: ": */ 1 + i.450x > 1001 > 100 foldpara

Re: [Jprogramming] Question about the internal working of J

2022-07-24 Thread Henry Rich
For the record, i. 100 does not allocate space for 100 numbers.  It creates a virtual noun whose data is an infix of a permanent list of ascending integers. Henry Rich On 7/24/2022 12:38 AM, Raul Miller wrote: Currently i.100 allocates and populates space for 100 integers. The interpreter wo

Re: [Jprogramming] Print every digit in jconsole.sh?

2022-07-24 Thread Raul Miller
And, I guess, someone should mention that !450x gives the same value as */1+i.450x -- Raul On Sun, Jul 24, 2022 at 9:46 AM chris burke wrote: > > Additional suggestions: > > 1. > load'general/misc/format' > xfmt */ 1 + i.450x > > 2. (in jqt) > textview */ 1 + i.450x > > On Sat, Jul 23, 20

[Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread John Baker
Some time ago I recall seeing a J snippet that directly loaded an .ijs from GitHub. I couldn't find it browsing the wiki. This would make an excellent extension to the standard load. If would be super handy to do stuff like: load 'https://github.com/bakerjd99/jacks/blob/master/ipynbfrjod/ipynb.i

Re: [Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread 'robert therriault' via Programming
Is this what you may have remembered John? https://code.jsoftware.com/wiki/Addons/Developers_Guide Cheers, bob > On Jul 24, 2022, at 13:35, John Baker wrote: > > Some time ago I recall seeing a J snippet that directly loaded an .ijs > from GitHub. > > I couldn't find it browsing the wiki. >

Re: [Jprogramming] Question about the internal working of J

2022-07-24 Thread 'Pascal Jasmin' via Programming
i'll note,  lr=: 3 : '5!:5 <''y''' lr i.100 i.100 dyadic $ also "does nothing" until some future time. On Sunday, July 24, 2022 at 11:17:12 a.m. EDT, Henry Rich wrote: For the record, i. 100 does not allocate space for 100 numbers.  It creates a virtual noun whose data is an infi

Re: [Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread Brian Schott
John, If you are thinking in this manner, you might look at the example at https://github.com/zerowords/tgsjo The README.md file has a section "Setup" which shows the user's process. On Sun, Jul 24, 2022 at 5:57 PM 'robert therriault' via Programming < programm...@jsoftware.com> wrote: > Is this

Re: [Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread 'Rob Hodgkinson' via Programming
Good documentation @Bob, thanks …and @Brian, very neat implementation and documentation Brian. I particularly enjoyed clicking your Avatar image and viewing your chart “Contributions in the past year”, well done !! :-) > On 25 Jul 2022, at 9:28 am, Brian Schott wrote: > > John, > If you ar

Re: [Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread John Baker
Thanks, I’ve set up addons in the past and will setup a private one for some of the scripts in my GitHub jacks repository. I still think a direct load would be useful extension to standard load. analyzethedatanotthedrivel.org > On Jul 24, 2022, at 5:51 PM, 'Rob Hodgkinson' via Programming >

Re: [Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread 'robert therriault' via Programming
Hi John, I think that the load will work as long as you do an install first. At least that is what it looks like on this link. https://code.jsoftware.com/wiki/Pacman#github Cheers, bob > On Jul 24, 2022, at 17:13, John Baker wrote: > > Thanks, > > I’ve set up addons in the past and will se

Re: [Jprogramming] Directly loading J scripts from GitHub

2022-07-24 Thread Raul Miller
I think what John was suggesting was support for loading that did not save the files locally. That holds a curious attraction, but -- for now at least -- is perhaps best limited to contexts like the j playground. (There's a potential problem with loading and running code from arbitrary locations