Conversation started Dec 3, 2021 at 11:10.
Dec 3, 2021 11:10
i am adding common jelly diagraphs as a single glyph in flax
which ones?
generate all permutations
Powerset
Split into chunks each of length 2
thats it for now
yeah okay I can see how that'd be a good idea
besides I can't exactly say "don't do that" seeing as how 2 of those are single byte stuff in Vyxal
probably 3 if I understand the first correctly
itertools.permutations?
looks like it
so yeah we got all 3 as one byte
Dec 3, 2021 11:15
ok i am going on the right track
but i doubt one dyad
> Find up till, find numbers ranging from 1 to x in y.
iⱮ in jelly
what's the jelly equivalent?
oh nvm
@lyxal ^
@PyGamer0 that just looks like [y.find(v) for v in x]
which is kinda useful and might make for a good one-byter
oh cool
> 71 iⱮ
its used 71 times
because the description of is "Map a link over its right argument."
and i is "Find the first index of element y in list x, or 0."
Dec 3, 2021 11:19
@lyxal yeah i saw those descriptions
do the quicks map a single atom?
like does use a single atom or a link?
links
they use links
all of them?
as many as they need
most only need one link
Dec 3, 2021 11:23
@Fmbalbuena that can just be PKα
@PyGamer0 for example HH$€maps HH$ to each item in a list
the HH$ is a single unit
and HH$€ becomes a single unit itself
isnt the $ another quick?
it is
quicks are just postfix operators
Dec 3, 2021 11:25
jelly evals them during parsing?
it does grouping during parsing
it's like APL's operators
@PyGamer0 quick question: do you know how vyxal modifiers work?
ah
well I was going to say quicks are modifiers but they go after atoms
wait i think i know a modifier in vyxal
its the subscript equal sign right?
yeah, that's a modifier
Dec 3, 2021 11:28
it maps the next 2 commands to the top
right?
sorta
it applies them to the same stack
but the point is that it takes the next 2 commands
now here's the thing: it can also take other subscript equal signs
₌₌+-* is perfectly valid, and applies ₌+- and * to the same stack
wat wow
do you see how binds it's commands together?
and do you see how it can be treated as a single command?
Dec 3, 2021 11:31
yes
that's what quicks do
they bind their commands together
and are treated as a single command
so in the case of HH$€, the $ takes the last two commands (H and H) and treats them as a single command
and then takes the HH$ command and maps it to its argument
and different quicks bind different amount of commands together
Dec 3, 2021 11:33
and the commands are atoms?
commands = atoms?
almost
commands are atoms or groups of other commands
oh
does vyxal have a single byter (or a diagraph) for Reverse every other element
no
3 bytes: ⁽Ṙẇ
is a modifier that takes the next command and returns it as a lambda
pops two items and, when given a function and a value, maps the function to every second item
lambdas are functions which are immediately pushed to the stack?
correct
it's as if you wrote stack.append(lambda x: "code")
where you replace "code" with whatever you want the lambda to do
Dec 3, 2021 11:44
lol i already have 23 revisions of flax.md
dang that's more revisions than the vyxal style guide
which has had 21 revisions lol
some of the revisions is just adding a single command
lol
 
Conversation ended Dec 3, 2021 at 11:46.