The Tarpit

A room for discussing esolangs and brainstorming new esolang i...
Apr 19, 2020 13:32
@petStorm No, I just sometimes check every chat room of cgcc because I'm bored
 
Apr 19, 2020 08:58
Ok, apparently they can. I just accidentally separated them with commas instead of semicolons
Apr 19, 2020 08:57
Can functions have more than 3 arguments in K?
Apr 18, 2020 18:15
Does K have the concept of conjunctions in J? Or do adverbs simply work all the time?
Apr 18, 2020 12:06
Let's say I have a 4-D array, and want to add a matrix to all its elements (producing a 6D array) (I admit this is not a very useful thing though)
Apr 18, 2020 12:02
Does K have a rank conjunction (dyadic " in J)? If no, how can it reproduce the behavior?
 

 The APL Orchard

apl.chat ― Learn, teach, ask, code, golf, & discuss usage. See ...
Apr 15, 2020 19:49
tbh I find J's parsing rules quite neat (idk apl though)
Apr 15, 2020 19:39
Afaik J for example does not evaluate until it sees the thing on the left
Aug 9, 2019 14:06
But I still can't make sure if looking at 3 elements is sufficient
Aug 9, 2019 14:04
Well, actually I don't treat higher order functions as different parts of speech, instead there are "code blocks" which are basically gerunds in j and functions can take them as arguments and do stuff with them
Aug 9, 2019 14:03
oh
Aug 9, 2019 14:03
is dop an irrelevant function?
Aug 9, 2019 14:00
Hello, I'm currently working on a language which is very similar to J, but I'm lost at one thing: I don't have precedence change for higher order functions (conjunctions and adverbs), do I still need to look at the top 4 elements of the stack or is only looking at 3 sufficient?
Oct 28, 2018 08:33
even though i dont know about conjunctions yet
Oct 28, 2018 08:33
thanks
Oct 28, 2018 08:33
hmm
Oct 28, 2018 08:32
hey, they told me to ask my question about J to here, so i am asking here. my question is:

why can we not define a function/verb with more than 2 arguments in J (or can we and i dont know?)
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Aug 10, 2019 05:04
user202729, I know about the IOI, what about it?
Nov 24, 2018 17:45
n=2,x=3,y=6; answer = 5 ([3,3],[4,4],[5,5],[6,6],[3,6]) there may be lists i missed
Nov 24, 2018 17:44
i think i generated a test case, but im not sure if i missed something
Nov 24, 2018 17:42
unrelated to the challenge, i would like to know how to solve it efficiently
Nov 24, 2018 17:42
do you know how to solve it in fast time
Nov 24, 2018 17:37
the subtask i hardcoded was 1<=n<=5 and 1<=x<=y<=10
Nov 24, 2018 17:36
and i recall an example testcase with y= 10^9 or greater than that
Nov 24, 2018 17:36
because it wanted the output modulo 10^9 +7
Nov 24, 2018 17:35
the restriction on the input must have been big
Nov 24, 2018 17:35
i am trying to say
Nov 24, 2018 17:35
i do not recall exactly but it wanted the number modulo 10^9 + 7 so it must be big
Nov 24, 2018 17:31
rip i forgot codegolf terminology while i was not here
Nov 24, 2018 17:24
can you guys help me with my new question on sandbox
Oct 28, 2018 08:31
thanks
Oct 28, 2018 08:29
my question is, why can we not define a function/verb with more than 2 arguments in J (or can we and i dont know?)
Oct 28, 2018 08:28
i have a question about the j language and had nowhere else to ask it but here because SO has so few j questions but there are quite a bit J golfers.
Oct 28, 2018 08:27
hello
Oct 7, 2018 18:00
hmm
Oct 7, 2018 17:58
why did i get 100 rep on here, so and chess
Oct 7, 2018 17:39
ok, ill do my homework while waiting for other solutions
Oct 7, 2018 17:36
done
Oct 7, 2018 17:34
yes, only canonical forms will be used
Oct 7, 2018 17:34
hmm
Oct 7, 2018 17:33
that is why 11 and 100 both represent 3, but 100 is more correct
Oct 7, 2018 17:32
i do not think i know what canonical form means
Oct 7, 2018 17:30
ok, i'll reedit it to include the link
Oct 7, 2018 17:29
i had linked
Oct 7, 2018 17:29
so if a program outputs something different for 11 and 3 for 100 is a true program, but if it outputs 3 to 11 but does not output 3 to 100, it is not correct
Oct 7, 2018 17:28
yeah but the second one is more correct
Oct 7, 2018 17:27
i'll be doing my physics homework, but the computer will be open, so i'll probably see any suggestions in like 2-3 mins
Oct 7, 2018 17:26
ill move to main if noone says something
Oct 7, 2018 16:55
also, idea: ppcg discord server