« first day (386 days earlier)      last day (1082 days later) » 

12:00 AM
how do the types work?
 
@Wezl learn vyxal so you can win at code golf
@Wezl there's numbers, strings, lists/generators and functions
 
12:22 AM
I think I've made vectorisation great again
 
 
8 hours later…
8:32 AM
how to subtract two element in list like [2,1] to 2-1
@lyxal ^
 
÷- is one way
⁽-ḭ is another
÷- is "push every item of the top of stack onto the stack and subtract"
⁽-ḭ is "reduce right by function subtraction"
@Wasif
 
thx
also how to execute a block of code n times
 
8:55 AM
For loop
 
oh range then a loop?
 
What's the "global array"
 
@Wasif No, simply number than loop
@Ausername the global array is an array accessible from anywhere - whether it be in a function/lambda or in main execution flow
Think of it as a register in the form of a stack
 
@lyxal Ok, thanks!
 
No worries I'm happy to help
@Wasif 3(...) repeats the code 3 times
Because the for loop auto casts numbers to ranges, just like maps/filters/etc
 
9:04 AM
also how to invert the sign of a number?
like -1 to 1 and 1 to -1
 
N
Also, I'll be unavailable for the next 2 hours
o/
 
bye @lyxal
good night
 
@lyxal 7-9pm Australia time, so I'm guessing dinner?
 
Yes! I have completed 5 vyxal answers in 30 day period! (I hope now bounties are eligible)
 
Nice! I'm still working on number 1.
 
9:12 AM
@Ausername go on
we believe in you
 
@Wasif Thanks
How do I push to a list on the stack?
 
@Ausername push to a list?
not stack?
 
@Wasif Nvm, worked out a different way to do i
 
then you have J builitin to do so
 
9:53 AM
code to clear global array?
Also @lyxal Your compressed Hello, World! example outputs something else entirely.
 
10:38 AM
It's awful I knoow
 
10:58 AM
It's coming, I might have to wait a while to award it.
@Razetime get in here we've got a 5 answer bounty to award
 
11:15 AM
@Ausername yes
 
11:31 AM
@Ausername 1+, `<char>`\<char>
 
@lyxal Thanks!
 
No worries
You've probably noticed the bounty :p
 
Yes.
Working on another one.
 
@lyxal yeye
 
Well it doesn't matter now does it.
 
11:56 AM
 
12:08 PM
Hey y'all should check the two new tips and upvote them
Because I need more rep because I'm giving it away
 
I gave you a silver badge yesterday.
(On my question-voting spree to get electorate)
 
Thanks you
 
12:26 PM
Lol FYI I can't award the bounty until I award the 3 ones I currently have going
You might be waiting a week for the 100 from me
 
Ok.
 
1:01 PM
 
Stack mechanics (such as swapping, rotating and implicit input) could probably help shorten some of these
But with that,
24 hours ago, by lyxal
2 days ago, by Lyxal
2 days ago, by Lyxal
yesterday, by Lyxal
24 hours ago, by Lyxal
Okay so quick heads up, I'm going to be unavailable for the next 8 or 9 hours due to sleep
24 hours ago, by lyxal
2 days ago, by Lyxal
2 days ago, by Lyxal
yesterday, by Lyxal
24 hours ago, by Lyxal
If anyone has any questions, I'll make sure to answer them as soon as possible
o/ for now
 
Bye
 
 
4 hours later…
5:24 PM
@lyxal Ė (reciprocal) seems to wrap its elements when vectorizing: e.g.: ⟨1|2⟩Ė outputs ⟨⟨1⟩|⟨0.5⟩⟩
is this some intended behavior i'm not familiar with or a bug
also imagine not having a favicon
smh
 
5:39 PM
non-vectorizing inequality doesn't work: Try it Online!
 
6:05 PM
rotating ranges doesn't work because they are generators: Try it Online!
is there any particular reason ranges are generators rather than just being lists?
does vyxal have operators / "quicks" (higher level functions)
or do you have to push functions to the stack and then use like map/reduce/whatever
i know about maplambda but like
 
 
3 hours later…
9:05 PM
Lyxal will wake up in an hour or so.
 
 
1 hour later…
10:17 PM
 

« first day (386 days earlier)      last day (1082 days later) »