« first day (4376 days earlier)      last day (765 days later) » 

03:03
0
A: Sandbox for Proposed Challenges

JacobIt's a dog! code-golf ascii-art decision-problem The city defines a dog as any living entity with four legs and a tail. So raccoons, bears, mountain lions, mice, these are all just different sizes of dog. Given an ASCII-art image of an animal, determine if that animal is a dog. \ \ | / / ...

03:58
hi, I'm wondering what a function [Any] -> Int -> [[Any]] that does [1,2,3,4,5],3 -> [[1,2,3],[2,3,4],[3,4,5]] should be named
factor is using clumps, I thought windows was better
yeah windows is way better
clumps is actually super counterintuitive, because it would suggest separating items
04:19
what other names exist for it
windows is the only clear one i can think of
then just a bunch of "slice" type stuff
i would go for windows
 
3 hours later…
07:02
0
A: Sandbox for Proposed Challenges

l4m2Enable 2char-JsFuck Write some javascript code that allow using only 2 characters to execute all javascript code. As I can tell, these are possible chosen set: f` f+ [] Obviously, the first one is lot easier than the other few. Therefore, different set are not scored together. Shortest code in e...

07:58
@Razetime overlapping sublists if you don't care about brevity
@Razetime subvectors
That's what aplcart calls it
Aug 31, 2021 at 2:35, by exedraj
I usually call it overlapping pairs, but I suppose there's terminology more accurate/mathematically correct
Is object in javascript ordered?
08:21
[].slice.call({length:1/0,"_____":1},-1)
Possible to fill a string to make it return 1?
 
2 hours later…
10:35
0
Q: Painting with Line Filler

l4m2Given a 2D array, output whether it's possible to generate an array from an array of same dimension1, by repeatedly filling whole row or whole column with same value. Test cases: [[1,1,1,1,1], [2,3,4,5,6], [2,3,4,5,6]] => true [[1,1,1,1,1], [2,3,4,1,6], [2,3,4,1,6]] => true [[1,1,1,1,6], [...

0
A: Sandbox for Proposed Challenges

pxeger Definitions A \$ \xi \$-word is defined as a string of letters such that every letter in the string appears an even number of times. For example, aeaeccaa is a \$ \xi \$-word. The function \$ T \$, which operates on \$ \xi \$-words, is defined as follows: Replace the odd-positioned (first, thir...

 
2 hours later…
13:03
@NewPosts why is this getting close votes?
This is a perfectly good challenge
@TheThonnu More details where added after the close votes
@mousetail ok, makes sense
I made the rust compiler overflow it's stack lol: ato.pxeger.com/…
 
2 hours later…
15:19
@cairdcoinheringaahing yeah, this is good for a description more than a word.
in the end i left most of it as is for compat
16:10
1
A: Sandbox for Proposed Challenges

l4m2Base64 fixed point Given positive integer n, output a string, which after base64 encoding, results in string starting with the outputted string. You can assume it possible. Test cases: 1 => V 2 => Vm 3 => Vm0

This seems not that good as code-golf, thinking of making it fastest-code but will it bottleneck at IO?
16:45
0
Q: Parse basic arithmetic into an AST

Michael M.Introduction An abstract syntax tree (AST) is a tree of tokens that shows their connection to each other and syntactical meaning. They are commonly used in compilers and static analysis tools, as parsing a language into an AST helps remove any ambiguity and can be helpful for optimizations. Many ...

@NewPosts Is this a duplicate?
probably? idk
 
2 hours later…
19:06
i think
...for 2 hours? :p
nah just saw it
@RydwolfPrograms I was doing a little transcript diving and saw this; 1. how tf did I miss this when it was posted and 2. you should make a book out of this
idk how you missed it
19:24
Anyone ever used the python shelve module?
What is it good for?
nothing really
That is good to know!
đź‘Ť
19:53
@Simd lmao your enthusiasm :P
20:13
@Simd never used it, but from the description it looks like a persistent dictionary that can store anything that can be pickled
Might be useful if you don’t want to use a proper database and just want to stuff your data in a file somewhere?
20:28
so i thought my huffman coder worked perfectly
until i saw this: Hle oloWWld
21:03
why did i not put comments
i have no idea that this does now (map (reduce #(assoc %1 (first %2) (rest %2)) {} (toBitSeqs tree)) s)
21:17
@mathcat :)
@user I just want to store a large dict for fast read only access
@user Okay who decided that serializing arbitrary data in Python is called "pickling" :||L
Like do they realize that you can't unpickle something IRL
It's a senseless metaphor and sounds weird and inelegant
I was gonna come talk about my cat eating goldfish but my day is ruined by this slight oddity in nomenclature

« first day (4376 days earlier)      last day (765 days later) »