« first day (183 days earlier)      last day (1592 days later) » 

06:44
@Lyxal how do I access the list of flags for the Vyxal intepreter?
Also How do I close a mapping lambda ƛ
;
ƛ...;
like every other non-bracket structure
from there down are flags and a kinda description of flags
I'll just send a pull request after I get what they do
okey doke
06:46
I'll make a h flag for help
J prints the top of stack joined by newlines at end of execution
L is J but vertical join
s sums the top at end of execution
M makes maps use range [1, n] for mapping on integers
m makes maps use range [0, n) for mapping on integers (I think)
v makes the input file use vyxal encoding
(that's so i can claim sbcs lol)
c outputs the compiled code
so ƛS;Ĵ takes range 1..n and concatenates it as strings, correct?
no, [0, n-1]
crap, actually it's over the range [0, n]
Ok then use the M flag
yep
06:54
how to make a single char string?
\<char>
@Razetime and just when I'm out of votes
hahaaaa
@Razetime your 4 byter is supposed to be 8+ij/
and even still, / ain't integer division
so 8+ij/I
07:06
I thought \ was integer division
But actually, 8+ij∖
Wrong backslash
what
you have two backslashes in the codepage?!
`∖ !- \`
That's one too many hhhhh
One's more slantier
\∖
the slantier one is int div
07:07
bruhhhhh
lol
did you not test it first?
seemed fine actually
a simple repl session shows otherwise
>>> 8+ij\
12
⟨20|10⟩
>>> 8+ij\
97
⟨105|10⟩
>>> 8+ij\
12
⟨20|10⟩
>>> 8+ij/
12
⟨2⟩
>>> 8+ij/
100
⟨10.8⟩
>>> 8+ij/I
100
⟨10⟩
>>> 8+ij∖
12
⟨2⟩
bad habits #1: I copied the \ character from there
so it worked
and Iosevka uses the same glyph for both \ and ∖
note that the codepage will be changed with the release of v1.0.0
07:15
ok
08:19
And now for a little lesson on type cohesion
There are three types: numbers, strings and lists
If you add a number to a number you get a number
But if you add a number to a string you get a string
Adding two strings gives a concatenation
And adding with lists performs vectorising
Number minus number is a number
But number minus string is still a string
A string minus a number is the same as above
And subtracting with lists still performs vectorising
When you subtract a string from string it does replacement
And when you multiply instead it does zipping
Any string multiplied by a number is a string
And multiplication with lists performs vectorising
A number x a number is a number
So is number over number (how interesting)
Dividing strings by numbers splits them into lengthened chunks
And division with lists still performs vectorising
When you take a string and divide it by another string it splits
It'd be stupid if the result was still a string.
Now I know that you're saying "Lyxal, why did you have to make everything rhyme". And ngl, I kinda don't know why. But the one thing that I do know is:
Anything done with lists performs vectorising
That's all. You may go now
But the joke is that's how types actually work lol
 
2 hours later…
10:07
@Lyxal good stuff, should be a separate tutorial page
Funny thing is that that's what I was gonna do

« first day (183 days earlier)      last day (1592 days later) »