« first day (1211 days earlier)      last day (564 days later) » 

00:32
So I found this Haskell answer on SO that did cartesian product and got this (seemingly working) Scala code
def cartProdMulti(left: VList, right: VList)(using Context): VList =
    // Based off of stackoverflow.com/a/20516638
    // TODO generalize to a finite list of infinite lists
    val lhs = makeIterable(left)
    val rhs = makeIterable(right)

    val prodIt = lhs.iterator.map(l => rhs.iterator.map(r => VList(l, r)))

    val touched = mut.ListBuffer.empty[Iterator[VAny]]

    def gen(): LazyList[VAny] =
      touched.filterInPlace(_.hasNext)
      val diag = touched.map(_.next()).to(LazyList)
Could you have a look over it and see if it's the same behavior?
will do when i have the chance later
I tested both your version and the Haskell port on VList.from(LazyList.iterate(VNum(1))(_ + 1)) and VList("A", "B") and got the same results
@lyxal :thumbs_up:
that does look much nicer though
It is shorter :P
No idea if it's more or less efficient though
ysthakur pushed a commit to Vyxal/v3-momentum-branch-2: Add Haskell-y version of cart prod for later
00:43
Btw that's been some pretty quick work on your part lyxal, I just git pulled 60 commits today
01:26
Half of those are struggling to make the tests work :p
 
4 hours later…
05:00
7
Q: Negate a number

PyRulezYou are to accept, on standard input, one number. You will then output the negation of that number. Your code will do nothing else. You may accept various formats if you wish (like "one" or ("uno+2.4e10i"). You may also output it how ever you wish. Note that these formats mush have existed somewh...

that's an interesting challenge
without going into stupidly long string encodings, the best I've come up with so far is
(9 8$"¯t"WṠt)(8 9$"¯t"∑
at 23 bytes
(50 2*↵12345:JL²↵:LLL--+)(255₈$"¯t"∑ for 36 bytes :p
 
2 hours later…
07:20
@lyxal just btw, the v3 site doesn't look great on mobile
07:42
@TheThonnu it was a joke :p. I meant use the python 3 compiler for scala.
@TheThonnu it's a bit better if you use horizontal view
08:05
@TheThonnu dw I know
You don't think I would have experienced it by now given that a lot of my code golf interactions are in mobile? :p
No clue how to fix it
 
4 hours later…
11:55
@lyxal let me rewrite it :p
gotta love new mobile chat not working with pinch-to-zoom
@Ginger you can if you want :p
12:11
@lyxal i saw those commits lol
@Ginger could you make the sidebar a burer menu on mobile?
The gold thing has a default layout thing right?
We can simply use emdia queries to have it put everything in a single column instead of two columns like it currently is
Burger
2
Oh my god
I hate mobile
@user did you mean to make cartProdMulti the main cartesian product function?
or use both functions?
12:38
b u r g e r
!!/status
@Ginger I am communicating with aliens from a distant planet.
!!/status tingly
B-b-bot s-s-s-status: O-o-o-onwinye
Uptime: ***notices buldge*** 49 d-d-days, 1-1-1-13:37:47.512906
Wunnying s-s-s-since: 2-2-2023-06-22T23:01:47.465663
Ewwows ♥(。U ω U。) ***screeches*** since ***screeches*** stawtup: 24
holy hell
almost 50 days of uptime
!!/status tingly
12:40
B-b-bot status: O-o-o-onwinye
Uptime: 4-4-4-49 d-d-days, 13:39:00.510404
Wunnying since: 2-2-2-2023-06-22T23:01:47.465663
Ewwows since stawtup: ( 。ᵘ ᵕ ᵘ 。) ***boops your nose*** 24
anyway, if I were to redesign the site I would be removing the whole tab thing
nobody asked for a tabbed interpreter and nobody needs a tabbed interpreter
all it does is cause responsiveness issues
why is there a cookie clicker...?
@Ginger no
tabs are staying
12:44
2 mins ago, by The Thonnu
why is there a cookie clicker...?
Feb 15 at 18:54, by Steffan
Maybe we should add a whole cookie clicker game when you run cookie
because cookie is a crucial part of vyxal history
@Ginger I asked
Feb 11 at 20:42, by Steffan
What if on the new vyxal 3 interpreter, we could have a new like "tabs" layout where you can move the inputs and output and stuff wherever you want and make a nice layout
Feb 11 at 21:48, by lyxal
@Steffan we can do that
I'm telling you it's not a good idea
we can have cookies without tabs
all it does is make mobile hard to use
how about no tabs on mobile, yes tabs on computer
that's even more work
I quite like being able to have the string compression tab as a tab
12:48
why do you want tabs so badly
and having the choice to reorganise the page as I wish
and having the idioms as a tab too
I really do think that's just you
ooh and a test cases tab too
but okay, I guess I can make a mobile version of the site
also why is Lumenispire not part of the main interpreter
language agnosticness
+ it means that v2 can also make use of it nicely
which reminds me that I need to one day add the export to luminespire button I keep meaning to add
13:04
Lyxal pushed a commit to Vyxal/v3-momentum-branch-2: Implement ȧbsolute difference | Add unsafe cartesian product
Lyxal pushed a commit to Vyxal/v3-momentum-branch-2: Add tests for ȧ + switch to FuncHelpers.fill
github-actions[bot] pushed a commit to Vyxal/v3-momentum-branch-2: Refresh element and/or trigraph docs from recent commit
Lyxal pushed a commit to Vyxal/v3-momentum-branch-2: Add the #[#] to the lists
Lyxal pushed a commit to Vyxal/v3-momentum-branch-2: Merge branch 'v3-momentum-branch-2' of github.com/Vyxal/Vyxal into v3-momentum-branch-2
13:23
@lyxal The current implementation can be the main cartesian product function, yeah. I was planning on generalizing it to work on a list of lists but that can be done later
@Ginger I wanted to say burger menu
@Ginger Wait why
The tabs are so cool
You can set up the interpreter how you like it
If Steffan was pingable I'd ping them to come defend tabs
@naffetS I will ping you instead :p
@Ginger This is a good point, but it's not that hard to make a separate mobile design, is it?
I mean, even just making the tabs forced to be in one column on mobile would work
+ making the side bar hideable
oh and making it so that there's no fixed height
+ disabling moving tabs on mobile
Something like that kinda
The tabs layout also has the advantages of being unique among a sea of TIO styled pages and also allowing the option for user defined tabs to be a possibility
Extendibility! 😎
13:39
ysthakur closed issue #82 (this isn't working) in Vyxal/Sandbox
I was gonna say those comments looked awfully similar to the spam messages I've seen in charcoal lately and then I saw who left them :p
13:55
ysthakur pushed a commit to Vyxal/v3-momentum-branch-2: Make FuncHelpers#vectorise behave like v2
 
3 hours later…
16:29
ysthakur pushed a commit to Vyxal/v3-momentum-branch-2: Move reduce() to ListHelpers
ysthakur pushed a commit to Vyxal/v3-momentum-branch-2: Scalafix rule to discourage unnecessary _ match
ysthakur pushed a commit to Vyxal/v3-momentum-branch-2: refactor: Use pattern-matching function literal in impl for Ẇ
ysthakur pushed a commit to Vyxal/v3-momentum-branch-2: Remove unnecessary scalafix suppression for null

« first day (1211 days earlier)      last day (564 days later) »