Re: [Jprogramming] [Beginner] How to make a function using list pattern matching deterministic

2022-10-14 Thread Razetime
oh, whoops, sorry bout that. I did not check what the email autocompleted to. On 10/14/22, Jan-Pieter Jacobs wrote: > I think you intended to send this to a different forum/mailinglist… It's > for sure no J ;). > > Cheers, > Jan-Pieter > > On Fri, 14 Oct 20

[Jprogramming] [Beginner] How to make a function using list pattern matching deterministic

2022-10-14 Thread Razetime
Currently I have these two predicates in my program that I think I can make deterministic. :- pred entry(list(string)::in, list(int)::out) is det. entry(Dirs, Out) :- map((pred(X::in, [L,R]::out) is det :- split(X, 1, L, R)), Dirs, Spl), foldl2((pred([T, B]::in, D::in, Ds::out,

[Jprogramming] Definition of whitespace in x".y (Numbers)

2022-09-29 Thread Razetime
NuVoc indicates that numbers are separated by whitespace, but it seems that ". does not recognize them as such. why? _".'1',LF,'2' _ _".'1',LF,'2' _ -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Hilbert Curve error

2022-07-31 Thread Razetime
On this rosetta code page for the Hilbert Curve , I tried running the code, but I get an error: iter=: (, 1 , +@|.) @: (,~ 0j_1 ,~ 0j_1*|.) hilbert=: {{0j1+(%{:) +/\0,iter ^: y ''}} require 'plot' plot hilbert 5 |value error: iter | 0j1+(%{:)+/\0,

Re: [Jprogramming] NYCJUG: Thinking in an Array Language

2022-07-13 Thread Razetime
Hi, I wrote the original essay. The ngn/k version is much better for the K array model, and it's intended as a nice and short description of the algorithm for nested lists. Your translation looks correct, and you might get a one-to-one translation with boxed arrays and table. J doesn't really encou

Re: [Jprogramming] Standalone Window Driver Script

2022-05-09 Thread Razetime
Thank you all for your helpful comments. This link is for conversion from j602 to J8 standalone from 2015, but it > may have some useful information. > https://code.jsoftware.com/wiki/Guides/J8_Standalone robert therriault: Thanks. I will check this out and see if I can get a standalone executabl

Re: [Jprogramming] Standalone Window Driver Script

2022-05-08 Thread Razetime
> -- > > Raul > > > > On Sun, May 8, 2022 at 1:05 PM bill lam wrote: > > > > > > Running jqt under jconsole had been recommitted for several years > > already. > > > > > > On Mon, 9 May 2022 at 12:40 AM Razetime > wrote: > > >

Re: [Jprogramming] Standalone Window Driver Script

2022-05-08 Thread Razetime
t; wd itself is defined in addons/ide/qt/qt.ijs. > > To use wd in jconsole, you need to have the QT environment available. > > To learn more, start here > > https://code.jsoftware.com/wiki/Guides/Qt_IDE > > ~ Gilles > > Le 2022-05-08 à 10:33, Razetime a é

[Jprogramming] Standalone Window Driver Script

2022-05-08 Thread Razetime
error: wd | wd'pc editmdemo;pn "Editm Demo"' |[-51] /home/razetime/Documents/Code/fun/esoteric-editor/components/GUIC/gui.ijs I assume I need some import here, but I've been unable to find any imports required for using wd on the wik

Re: [Jprogramming] bug: _. and logical operations

2022-05-06 Thread Razetime
Although this does not seem like intended behaviour, it is worth mentioning that NuVoc explicitly states that _. is not recommended for use in J computations. On Fri, May 6, 2022 at 4:30 PM wrote: > Hello, > > > > _. does not mix well with lo

Re: [Jprogramming] sparse array with boxed elements?

2022-04-25 Thread Razetime
The J playground is very nice. I had a problem with the labs, however: To advance the lab, select menu Help|Studio|Advance or the corresponding shortcut. However, the actual menu to advance the labs is under Labs|Advance Labs. On Tue, Apr 26, 2022 at 1:03 AM Elijah Stone wrote: > I would interpr

Re: [Jprogramming] Is j turing-complete without parentheses?

2022-02-11 Thread Razetime
FRACTRAN takes a list of fractions and an integer as input. You can see more details on this wiki page: https://esolangs.org/wiki/Fractran 78r55 5r3 1r5 11r2 5r7 and 1096135733 should give:328842888196762472689573703 On Sat, Feb 12, 2022 at 6:47 AM Raul Miller wrote: > On Fri, Feb 11, 2022 at