Re: [Jprogramming] C0 C1, and tacit modifier forks WAS: New in beta-r: old stuff

2021-09-30 Thread Elijah Stone
On Thu, 30 Sep 2021, Hauke Rehr wrote: On the fork page, vvv and nvv share a row, and that’s for a good reason. FWIW I added the NVV entry to that page, and I added it to the same row as VVV only because the latter said 'creates a fork' rather than explicitly showing the resulting verb (([x]

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread 'Pascal Jasmin' via Programming
can build from gerund  ntG =: (,'0')&;(<@:) seq =: {{}. , (ntG n),~"_ 1 u ,~"0 1 [`'' }}(`:6) +`-`* seq 3 3  +`-`* {{}. , (ntG n),~"_ 1 u ,~"0 1 [`'' }} 3 ┌─┬─┬─┬─┬─┬─┬─┬─┐ │+│┌─┬─┐│[│-│┌─┬─┐│[│*│┌─┬─┐│ │ ││0│3││ │ ││0│3││ │ ││0│3││ │ │└─┴─┘│ │ │└─┴─┘│ │ │└─┴─┘│ └─┴─┴─┴─┴─

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Elijah Stone
On Thu, 30 Sep 2021, Elijah Stone wrote: (For that to work, you need to write it as {{ ((,[`'',])/ |.m) `: 6 }}, without mention of y.) Another good reason to write it that way: the resultant verb is ambivalent. -- For inform

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Elijah Stone
On Thu, 30 Sep 2021, Hauke Rehr wrote: I think Michal wants the adverb variant In the original code snippet, the argument was '', so I assumed it didn't matter. Actually, I originally wrote it as an adverb, then realised it could be written more directly as a verb. However, it occurs to m

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Hauke Rehr
I forgot: it doesn’t /need/ to be an adverb: replace m by x, and you’ll get the same functionality with type 'seeq' returning <'verb' but I think adverb better fits the purpose. Am 30.09.21 um 23:59 schrieb Hauke Rehr: I think Michal wants the adverb variant seeq =. {{ ((,[`'',])/ |.m) `: 6 y}}

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Hauke Rehr
I think Michal wants the adverb variant seeq =. {{ ((,[`'',])/ |.m) `: 6 y}} so {{echo |. 'sinu',y}}`{{echo ,~y}}`{{echo y}} seeq 'state' etatsunis statestate state which obviously only works if his State object will not be changed by any but the last part. But when you have state, you want

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Elijah Stone
Why not define it yourself? seq =. {{ ((,[`'',])/ |.y) `: 6 ''}} seq {{echo 1}}`{{echo 2}}`{{echo 3}} 1 2 3 -E On Thu, 30 Sep 2021, Michal Wallace wrote: Today I discovered that `:0 executes the gerund in series from left to right. The execution order isn't specified in the docs (as f

Re: [Jprogramming] C0 C1, and tacit modifier forks WAS: New in beta-r: old stuff

2021-09-30 Thread Hauke Rehr
brainfuck is turing complete, we don’t need another language :) Am 30.09.21 um 22:27 schrieb Elijah Stone: On Thu, 30 Sep 2021, Hauke Rehr wrote: Thinking about AC made me wonder: don’t we need conjunction analogues to ~? (one for reflexive, another for passive) passive: (].C[.) reflexive:

Re: [Jprogramming] C0 C1, and tacit modifier forks WAS: New in beta-r: old stuff

2021-09-30 Thread Elijah Stone
On Thu, 30 Sep 2021, Hauke Rehr wrote: Thinking about AC made me wonder: don’t we need conjunction analogues to ~? (one for reflexive, another for passive) passive: (].C[.) reflexive: (]:C) NCC conj N C uCv Already there! :) -E

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Henry Rich
Gee, guys, I wasn't saying I would remove `:0, or even that I wanted to.  The language doesn't belong to me.  We only make incompatible changes when we realize something should never have been implemented or was wrongly implemented. It's nice to know there are applications for `:0 .  A suitabl

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Raoul Schorer
I'm not a pro developer in any way, but my job entails some data analysis. Executing multiple verbs on the same data is something I do whenever I'm extracting distinct feature vectors or summary stats from raw data. Also, same thing when working on trees Hsu-style. I'd be sad to see :0 go! Just my

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Michal Wallace
Huh. That's a strange thought to me. I execute a bunch of verbs on the same arguments **all the time**, especially when I'm working with input/output or mutable data: - parser combinators - virtual machines - terminal i/o Usually the argument in question is the empty string or some kind of state

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Henry Rich
I would vote to delete u`:0 rather than extend it.  Executing a bunch of verbs on the same arguments?  Not a very useful thing I think. Using [ to separate executions is The J Way.  Very efficient. Train yourself to get used to it. Newlines are even better.  Then you can put a comment on each

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Michal Wallace
That is unfortunate. Normally, I am perfectly comfortable with [ and @ to do function composition, but sometimes I really wish to convey the idea of a sequence, and it just doesn't feel like the same thing as function composition to me. (So I prefer newlines to [ or @ in these situations, but th

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Henry Rich
You cannot count on the order.  All you know is that each cell of the result corresponds to an AR in the gerund. To execute short sentences the usage sentencen [ ... [ sentence2 [ sentence1 can't be beat unless one of the sentences produces a modifier. Henry Rich On 9/30/2021 2:15 PM, Michal

[Jprogramming] J903-beta-s

2021-09-30 Thread Eric Iverson
J903-beta-s is available for windows/linux/macos. If you already run J903-beta, then upgrade is easy: load'pacman' 'upgrade'jpkg'jengine' If you have not yet installed J903-beta, time to get started! https://code.jsoftware.com/wiki/System/Installation/J903 Release notes: https://code

[Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Michal Wallace
Today I discovered that `:0 executes the gerund in series from left to right. The execution order isn't specified in the docs (as far as I can tell), so I wonder if it's an implementation detail subject to change, or if I can rely on this? Almost all of the cases where I want '..' as a statement

Re: [Jprogramming] C0 C1, and tacit modifier forks WAS: New in beta-r: old stuff

2021-09-30 Thread Hauke Rehr
my fault: I didn’t mean to show VVN as a fork I should have just said 'execute immediately' there Am 30.09.21 um 17:47 schrieb 'Pascal Jasmin' via Programming: first, this reply assumes that AC is changed to -> uA(Cv)   an option: (NorV)CA adv (NorV) C (uA) the exisiting CA should remain ->

Re: [Jprogramming] C0 C1, and tacit modifier forks WAS: New in beta-r: old stuff

2021-09-30 Thread 'Pascal Jasmin' via Programming
first, this reply assumes that AC is changed to -> uA(Cv) >  an option: (NorV)CA adv (NorV) C (uA) the exisiting CA should remain -> N(Cu)A but ACA provides this/your option N (]: C A) u  or  u (N (]: C A)) > AVV  -> uA V V I have proposed that AV -> VA AVV could stay if people like it, and

Re: [Jprogramming] C0 C1, and tacit modifier forks WAS: New in beta-r: old stuff

2021-09-30 Thread Hauke Rehr
Let me share some thoughts that came to my mind when pondering over all those trains. What do I mean by “all those”? I’d like the list to be complete with (#'nvac') +/@:^ 2 3 combinations I wouldn’t have done this because I thought back in the days when J used to have these trains, they may alre

Re: [Jprogramming] J903-beta-r

2021-09-30 Thread Henry Rich
No, we release when we think there are no major features to add.  It's been about once a year for a while, usually at the end of the year. Henry Rich On 9/30/2021 12:52 AM, Conor Hoekstra wrote: How long does J903-beta-xyz last for? Is there an official end date? On Wed, Sep 29, 2021 at 8:36