« first day (4604 days earlier)      last day (536 days later) » 

 
3 hours later…
03:44
@noodleman the corruption is coming into full force! :p
03:54
y'all ever just create an object in a method in an if statement, forget to return it, have return null; after the if statement, go to scroll to another function and then realise "oh hey wait I should probably return that"?
or is that just a lyxal moment(tm)?
04:10
well I am not sure if I've done that exact thing but I'm sure I've done both similar and worse :P
04:27
CMC write code that takes in a positive integer n and outputs the same as itertools.product(range(4), repeat=n)
where Jelly version 2?
@UnrelatedString also, vyxal 3 (work in progress)
 
3 hours later…
07:21
What's the smallest proven n s.t. BB(n)>TREE(3)?
08:10
@MTN I meant without using itertools
@lyxαl does this effectively use itertools?
@UnrelatedString bonkers :)
Why don't you like itertools?
08:21
@Simd maybe maybe not
I don't remember how it's implemented under the hood
Not that you'd be able to use it in python anyway without importing itertools for the other things it's used for :p
That's only for default list objects
If you give it a lazylist, it does it without itertools
So depends on what you give it. And given that a ranges are converted to LLs, it's using the non itertools definition
f=lambda n:n and[[*j,i]for i in range(4)for j in f(n-1)]or[[]] should work
@Simd Are we allowed to return a multi-dimensional array or must it be a simple list?
@Simd APL, 5 bytes: ,⍳4⍴⎕ Try it online! — remove , if returning a multi-dimensional array is OK.
08:32
@mousetail I know how to do it with itertools so it's not interesting to me
@Bubbler nice!
@Adám a simple list
@mousetail cool
The recursive version is 3 bytes shorter than Bubbler's modular arithmetic based one
08:47
CMC: Output all legal moves at the start of a chess game (white) using default notation.
damn thats good i came here to post a cmc but that one is already neat
is there anywhere we can find a list of such moves so we dont have to do the research ourselves :P
It's basically pawn moves a2-h2 and 4 knight moves.
ah right
@mathscat Regenerate, 18 bytes: [a-h][34]|N[acfh]3
09:05
cool lang
right? i love regenerate :D
 
3 hours later…
12:18
@l4m2 sir this is a Wendy's
you may want to ask in Math.SE instead :p
12:51
anyone here used numpy? I'd like to know how performant something is
specifically, flattening a 3d array of bytes and converting it to a list
pretty sure numpy has several flatten built-ins, so I believe it's good for the job.
performant, you goofy.
ah me goofy
ditch python use c
@mathscat Vyxal, 1 byte: ¤
@mathscat no
12:56
the king can't move and isn't in check so it's stalemate, meaning there's no valid moves
C might actually be the worst possible lang for what I'm trying to do
the numpy thing is only a small part of it, but I'd like to make sure it doesn't take stupidly long
since this flatten-and-listify operation will be called a lot and I'd like to know whether I should run it in a worker or not to avoid blocking the main loop
@lyxαl playing 4d chess while I'm still wondering how that knight thing moves.
@Ginger stackoverflow.com/a/23540029/9363594 could be of interest
and all DDG results say that numpy is fast in general
seems like you should be fine
apparently
as a human small language model I can't give a comprehensive overview of your problem
cool
I think it's fast enough for my purposes
What exactly is your purpose, may I ask?
13:05
confirms it should be fast enough
although it does say to be careful about avoiding memory leaks
you're not going to get me that easy
a valiant effort, though
@lyxαl im done
I opened this in a background tab, did some other stuff, thought I looked up the video myself to check the views and clicked on it.
> new mexico state bar association
13:55
@Ginger That should be instant right?
The memory representation should be the same
Unless it's stored *-major where * isn't the right dimension
(what is the equivalent to row-major/column-major for more than 2d arrays?)
14:32
@mathscat This is about code-golf, if a Turing machine with n states outputs more than TREE(3) 1's then n is an upper bound
I meant that no upper bound has been found yet (I think, not sure about that)
@RydwolfPrograms in theory, but idk how numpy does the listification
Numpy's C internally right?
yes
0
A: Sandbox for Proposed Challenges

l4m2BB⁻¹(TREE(3)) Construct a Turing machine with tape alphabet {0, 1} that, starting on a tape filled with 0, it halts with at least TREE(3) 1's. Least states wins. Notes As math scat mentioned, this is asked in math stackexchange, but such a question may fit better here LOL

14:44
@mathscat Such thing
bruh.
CMC Given two strings A and B with edit (Levenshtein) distance 2k, count how many stringsr there are with edit distance k to both A and B
@Simd Is k given?
15:20
Sorry for disrupting(?) conversation, but:
gigachad whoever made that
;-;
15:32
@PetəíŕdTheLinuxWizard Spam: ad
?????
that's not spam
So what's this
It's an announcement
They just liked a website, I'm quite sure that's fine.
15:34
^
spam has no intrinsic value whatsoever
Not really relevant to this chat room though
I don't see how it's not an ad
sure, but we can tolerate a bit of off-topic
after all, winter bash was a big part of se
@l4m2 according to Wiktionary, an "advertisement" is "A commercial solicitation designed to sell some commodity, service or similar"
and I'm pretty sure he wasn't trying to sell us something
especially seeing as he has no affiliation with the site
15:37
Wiki says Advertising is the practice and techniques employed to bring attention to a product or service.
That is neither a product nor a service.
Wiktionary says A public notice.
and I'm pretty sure that site isn't a product or a service
look, what are you trying to do here? do you have a personal vendetta against Winter Bash or Peter?
I didn't flag or similar but it just look like an ad
and we are telling you that it's not, so you don't need to worry about it
16:24
CMC: print the string \0\x1f;Zx\x97µÔóđİŎ, where \0, \x1f, and \x97 are replaced with the characters with ascii values 0, 31, 151 respectively. (Significance: first 12 of A061251)
just to be clear, the comma at the end is not part of the string.
16:48
0
A: "Hello, World!"

The Empty String Photographer􏿾 (U+0001 and U+10FFFE), 158 bytes 1-1>11<1>1111<11>11<1>1<1>1<11>1<11>111<11>1<11>111<11>1<1111>11<1>1<11>1111<1>111111<1>1<1>1<111>1<11>1<1111>1<111>11<1>11<11>1<11>111<11>11<1>1111<1>1111<1􏿾 Ends with the character U+10FFFE, but since this language has only 13 builtins (including that chara...

 
1 hour later…
17:57
Anyone wanna bet rep on how many compile errors this rough draft Rust program is about to spit out?
I'm going to say 40
Oh wait I'm having to wait for crates.io to update over a 3G hotspot this'll be a while
Oh cool --offline is a thing
Okay I was wrong, 86 errors lol

« first day (4604 days earlier)      last day (536 days later) »