« first day (4147 days earlier)      last day (992 days later) » 
00:00 - 11:0011:00 - 00:00

11:00
@mathcat how many bytes do you have for the latest challenge?
the canvas element one?
No, the 69420 one
Oh, I thought you meant my latest challenge
No lol I mean the latest from the NP bot lol
I didn't manage to do it
11:03
in Pirates of the Seven Seas, 18 secs ago, by Ginger
hey what the hell happened here
There was a conversation on digital piracy
And it was moved to that room because it was off topic for here
it was simply too based
@lyxal You realise infinite lists are allowed, right?
yup, piracy is a totally normal thing to be discussing in a room for Crogramming Guzzles and Sode Eolf
11:05
@emanresuA how about an infinite list of lists?
o/ chinese class coming but actually i'll look at @Ginger 's stuff
@lyxal Nah, flattening is necessary
Can't blame me for trying to remove the ;f lol
I forgot I had my speakers turned up to test my ping sound and OH GOD LYXAL'S FRIDGE HAS BROKEN MY EARDRUMS
11:08
It does that sometimes
As i said, maybe, for each rule, make it a bullet point and under it give an example of violation
and explain
o/
@Ginger Why else do you think it gets nuked so often?
oh
anything to say about my challenge?
Why do you have plastic cups
why not glass cups
Why do you not have plastic cups
11:10
good point
haha gotchu there
@Ginger have a gray cup to match the plate colour scheme I have
I have blue, green, pink and gray plate
No yellow
As i said, maybe, for each rule, make it a bullet point and under it give an example of violation and an explanation @Ginger for your feedback
I'm addicted to CGCC no...
11:20
Addiction is only when you want to consume more and more of it daily.
I'd just say CGCC is a habit of mine.
@mathcat That's me, cuz I'm back again
oh well
@lyxal I meant more about the challenge
@lyxal oh no, yellow is my favorite color
11:33
lyxal's is #beedab
my favorite is of course #01abda
hey you know what I don't like? the fact that the enable desktop notification text only has a 2 pixel margin
also:
who's this "lyaxl" guy?
lyxal's dark twin
#c0ffee actually looks good
#05ab1e is too green
I like #f0f000
but #f0000d is good when you are hungry
i have inspiration for a new challenge
CMC: given a dictionary of words output all 3 letter or 6 letter words that only include letters in "abcdefolsg"
and change all o to 0 and l to 1 and s to 5 and g to 9
and i to 1 too, i can be too
both #bad and #badbad seems good
@Ginger I dunno
I dunno who lyaxl could be
seems like a gamer
11:46
@graffe hour hand rotates at 0.5 deg/min minute hand at 5 deg/min i.e. 12 times faster. now imagine a second clock with its hour hand where the first clock's minute hand is, then the second clock's minute hand will be 144 times the angle of the first clock's hour hand. but we want that to be the same angle modulo 360 deg, so 143 times the angle is an exact multiple of 360 deg i.e. 12 hours, so as they are coprime there are 143 such times in a 12 hour period.
@lyaxl you used my method
Nah, it's just what I already had on Arqade lol
and using site changes for different usernames isn't anything new either lol
oh ok
good
How do I delete one character of output in Python3?

For instance, I just ran

```python
print("Hello, World!")
```

But I want my STDOUT to say:

```
Hello, World
```
.

I will not accept answers that prints many newlines, but I will accept answers that clear the screen instead.

I am OK with modules, but I don't particularly flavor them.
12:09
one second
ok
one second is up
jk
Assuming the cursor is at the end of the line you want to erase, simply use: print("\x1b[1D\x1b[K")
0
Q: Sort my Cups︎︎︎︎︎︎︎︎︎︎

GingerSort my Cups I have a set of colored plastic cups. They come in four colors: green, yellow, pink, and blue. When I put them on my shelf, I like to stack them in a certain pattern. Your job is, given a list of any number of four distinct values (to represent the four cup colors), output a visual r...

@Ginger is there a reason you are not taking my advice?
for each rule, make it a bullet point and under it give an example of violation and an explanation @Ginger for your feedback
12:24
It'd be too much trouble to implement
and also unnecessary for this challenge
ok then, tbh i dont understand it, but idc
12:35
@Ginger how is it unnecceesssssary i suc at speelingggggg
12:50
unnecessary is a tough one
i find its a bit easier if you split it into un + necessary
also "definitely" = (define => definite => definitely)
technically i suck at typing it and i'm just a bit lazy to retype it
woah, does python 2 not have ++
and unnecessary is hard to type wrong
@thejonymyster sorry, but python3 doesn't have it either
wtf why lol
its so golfy they should add it
hmm
how often do you need ++?
12:57
here's a trequel program using the function-definition syntax I jut came up with:
DEFINE SAYHI WITH NAME
	SHOW "Hello, " + NAME
DONE
NAME IS INPUT WHERE PROMPT IS "What's your name? "
CALL SAYHI WHERE NAME IS NAME
can you CALL SAYHI WHERE NAME IS INPUT WHERE PROMPT IS "What's your name? "
yes
@thejonymyster how often do you need ++?
and r u learning python?
wait, that syntax is actuallt wrong
13:00
@NobodyNeedsNames so much it is like my lifeblood
no uh :P
it should be CALL SAYHI WITH NAME AS NAME
but tbh that's stupid and inconsistent
@NobodyNeedsNames i was just looking at a python answer that had i+=1
@thejonymyster example
@thejonymyster which
@NobodyNeedsNames i use js so... every loop :P
in python
...
b/c js has ++
13:01
i dont use python :P
plus, ++i++ is so confusing
o/ gotta go
@NobodyNeedsNames this :3
peace o/
also i do agree the ++i vs i++ thing confused the hell out of me
i google every tiem
fizzbuzz: DO IF NOT N%15 DO SHOW"FizzBuzz"ELSEIF NOT N%3 SHOW"Fizz"ELSEIF NOT N%5 SHOW"FizzBuzz"ELSE SHOW N DONE FOR N IN DO N+1 TO EACH N OF RANGE WHERE END IS 100 DONE DONE
what are those symbols?
13:15
?
%15? "? +1? 100? Those aren't letters are they? :P
sorry what
why have % when you can have MODULO
I'm not that evil
13:16
you can do
can i at least see what im doing if i use indents? :]
you can do this
too long to put in chat
jesus shit I said evil not insane
@Ginger how come its IF X DO SHOW but ELSEIF Y SHOW
where does the DO go
or does it need to be there at all
wait where's the buzz?
13:22
probably one of those "FizzBuzz"es is meant to be a "Buzz"
oh whoops
DO IF NOT N%15 DO SHOW"FizzBuzz"ELSEIF NOT N%3 DO SHOW"Fizz"ELSEIF NOT N%5 DO SHOW"Buzz"ELSE SHOW N DONE FOR N IN DO N+1 TO EACH N OF RANGE WHERE END IS 100 DONE DONE
there fixed it
can you make it all letteers no space all upper?
probably needs some spaces
... maybe
i think it might get confused by NOTN
spaces are needed
13:26
for sure
@lyxal are they raw or cooked?
yes
13:38
@lyxal ??
do you know how to search. aye
@PyGamer0 that's my answer to your question: yes.
oh yes
13:50
are they raw xor cooked could still be answered with yes
 
1 hour later…
15:17
> rSN to Flax to Vyxal 3 to Wellscripted
wow 2 of those are mine lol
@Seggan can you change "Flax" to all lowercase?
@PyGamer0 done
thanks
Any thoughts on this layout?
lgtm
^
@mathcat what are you trying to make
15:21
@mathcat The rightmost button clips off of my screen
@PyGamer0 An interactive evolution program
@Ginger lol i noticed that too
@mathcat nice
@RadvylfPrograms the "start evolution" button?
Yeah, and with dev tools open, all of the right panel is offscreen
15:22
@mathcat whats that
nvm
@RadvylfPrograms uff okay
@mathcat Ooh I love making stuff like that
I'll have to shrink the canvas then
I think the canvas isn't the problem
It's the layout itself, you need to use flex or grid or something to dynamically resize things
Otherwise you're just kicking the can down the canvas
yes, use flex
use flex for everything
15:23
I'll flex
my motto is "never stop flexing"
> use flax for everything
in Vyxal, 38 mins ago, by lyxal
because Myxal is Vyxal's cousin that's cooler and a tad bit better
im quoting that everywhere now
16:03
is there a challenge about maximizing the size of an error message
cause i found something pretty great
why is my editor being possesed by demons
@RadvylfPrograms can you send a screenshot?
16:23
@thejonymyster I definitely remember a challenge like that... trying to find it
@DLosc i know theres "output an error larger than source" but im thinking more like "largest number printable" but for errors instead of numbers :P
but please do tell me whatever you find :D
Hmm. There's this, which was closed as a dupe of Largest Number Printable.
aw what why is that a dupe lol
I now suspect I may have been conflating that with Slow Error Quine Maker, which is about feeding the error output back into the interpreter and trying to get the longest chain before it repeats.
drat
i probably was remembering that too
i found this fun js program: f=_=>eval(f=${f};f());f() dont run it in browser console or whatever
try it here
idk if this behavior is specific to this interpreter but its pretty great
havent tried on, say, tio yet
but an interpreter is an interpreter you cant say its only a half meaning it would count :P
16:42
hmm, someone doesn't like most of the answers to codegolf.stackexchange.com/q/248207 for some reason
there is an exact correlation between answers which are downvoted and answers which acknowledge copying from the OEIS
Of frick
I forgot people use monitors
That's my laptop screen
what
16:51
3:2 gang ftw
This is how it looks on my laptop
Even for 16:9, lots of laptops nowadays are 1080p, so assuming 1366×768 isn't really a good idea
ah okay
assuming any fixed resolution or aspect ratio really isn't a good idea
Yeah, but it's reasonable to assume something between 4:3 and 2:1 IMO, designing for things like square screens and mobile is way too annoying for a project where the focus is not on the UI
17:39
question idea: baudot ascii art. I have looked a bit, and it doesn't seem to duplicate anything. I don't feel like writing a sandbox, as it takes a bit of time to write a decent post, and I can't get immediate feedback. my idea is: write a program or function that converts it's input into an ascii art punch tape like this: pastebin.com/raw/SnGBbnwX what do you think?
I do, and will in the future, but now I just need a bit of quick feedback. I try to put my best foot forward, but I don't have nearly enough time right now to sandbox it..
yea I didn't fully read what you said
sorry
what drugs is replit on
18:43
@pxeger although strangely one of the non-downvoted answers acknowledges copying from an answer that acknowledges copying from OEIS
Downvoting answers that port code from OEIS seems kinda silly
I'd guess at least a third of answers to new questions are ports, I don't think there's really anything wrong with that, and downvoting ones that "admit" to it is just punishing people for being transparent
Like, not everyone's going to invent their own way to solve a challenge, and there's still work to be done in changing the syntax and looking for golfs in the ported-to language.
online encyclopedia of integer sequences?
And one feature of CGCC is that answers are almost like a catalog of solutions in different languages, so while trivial ports maybe don't deserve upvotes, downvoting them discourages one useful aspect of our site from existing
@smarnav yes
there's already a sentiment that once someone's solved a challenge in an answer or in a certain byte count it gatekeeps the competition (like people saying it's too hard to get in a python answer because of good python golfers when we welcome someone submitting a worse scoring answer afterwards)
I think it would be extremely harmful to also set the sentiment that once someone's come up with a particular idea nobody else is allowed to anymore - especially with many challenges where either there's only one possible approach that isn't extremely convoluted/roundabout, or all other approaches aren't possibly as competitive
19:08
where are the standard code golf runes for answers?
ᛟᛟᚹᛇ :P
I meant rules, but now that I think about it, a rune coding language would be interesting
what do you mean by "code golf rules"
i.e. standard loopholes and i/o defaults?
yes
I remember them being on some meta post...
19:16
a list of the most common things you'll want to know can be found at
and a comprehensive list of all the rules (including partially incorrect ones, annoyingly) should be constructible by looking at
19:59
0
A: Sandbox for Proposed Challenges

smarnavGenerate a Baudot punched tape segment Write a program or a function that takes a string as its input, and generates ascii art that looks like a roll of punched tape. Example * * ** * ** * ............. * * * * * * * *** * * hello worldcl rf ¯ is Unic...

 
2 hours later…
21:35
OTL i posted a weird challenge idea i had (into the sandbox) but it was way too detailed and strange so i simplified it until it became something more manageable but then i looked at it and it had just become "count permutations"
@DLosc Looks like Pip's the LYAL?
@emanresuA I'm planning on it :)
Trying to boil the language down into a crash course for chat, I've realized just how much there is to it. My other languages tend to be fairly simple (either by design or because I lose interest before they're fully fleshed out).
...
i just realized Pip's not Pyth
Or, rather:
Pip
Isn't
Pyth
They certainly have some superficial similarities: Python-based ASCII golfing languages that use an imperative paradigm.
derivative lang named pnp (pnp's not pip)
21:45
PNP was the original name I thought of (PNP's Not Python/Perl/PHP), before I realized I could tweak it to PIP and that would be pronounceable.
If anyone makes a language called PNP I call the rights to NPN
It would be doped
Get it
Then I call rights to TRANSISTOR
22:03
CMC: Given a 2D array (or equivalent) of integers, return an array with the same dimensions that contains a single 1 in the upper left corner and 0s everywhere else.
thats oddly specific, did you find this solution by accident :P
I'm golfing this. I think that transformation might be helpful, but I'm having trouble thinking of a simple way to do it in BQN.
ah i see, interesting
Found a 7-byte solution in Pip, incidentally
@DLosc rSN: x~(n=1;x$y~y$z~n=0
22:13
the 1 in the corner really is what makes this tricky to do golfily
@DLosc js, a shameful 45 bytes x=>{x=x.map(w=>w.fill(0));x[0][0]=1;return x}
unless theres some way to grab the transformed value of x after x.map(w=>w.fill(0))[0][0]=1 im stumped
@thejonymyster return x is unnecessary
as you're modifying x by reference
oh, i didnt know that worked like that in this context
sweet -9 :]
x=>(x=x.map(w=>w.fill(0)),x[0][0]=1,x) also works btw
oh interesting
x=>((x=x.map(w=>w.fill(0)))[0][0]=1,x) too
22:26
does it?
that seems like itd set x to 1
weird
how does htat evaluate?
oh i just caught the
extra parenthesis... ahaa
@Wezl'lo-ol' Again, returning x is unnecessary
putting you at 34, nice golf
true but I like returning x :P
g=x=>x.map((w,i)=>w.map((a,b)=>!i&&!b)) with true for 1 and false for 0 :P
if only js had builtins for all the gates
ignore my weird var choices
22:33
(fill by (multidimensional) coordinates -> all false)
lol thats basically what i was doing :P
(kind of?)
Vyxal has better builtins ;)
been fiddling with this in python and i think the best python can do is 52 bytes: def f(a):x=[[0]*len(a)]*len(a[0]);x[0][0]=1;return x
att
att
apl 8 ⍴⍴1↑⍨≢∘,
hot damn i cant believe that works
22:46
jq, map(map(0))|.[0][0]=1
att
att
@att wait it can be just 4 1↑⍨⍴
What does that do?
att
att
take (shape of input) elements from 1, filling with 0s
Ooh a bunch of HTTP-related RFCs just got released, like 9110 (HTTP stuff), 9112-9114 which are for HTTP/1.1, /2, and /3
att
att
the 8byter flattened to do in 1d before reshaping but it also works with >1 dimension
22:57
@DLosc CMC: this with arbitrary dimensions
the apl one already works IIUC
att
att
yeah it should
sed, IO in (one-line) JSON, s/[0-9]/0/g;s/0/1/
att
att
@DLosc looks like the apl maps pretty easily to bqn 1↑˜≢
23:17
@emanresuA something something eval, regex replace, string repeat...
@DLosc Scala 3: _.zipWithIndex.map{(r,i)=>r.indices.map{j=>1-1.min(i*j)}}
@DLosc in verbose charcoal it would be Map(q, Map(i, Not(Or(k, m)))) demo with human readable output
23:43
making a builtin that switches a character to its "alternate". i have lowercase<=>uppercase, open bracket <=> close bracket,
cmp: which is better to also include: period<=>comma, colon<=>semicolon? or period<=>colon, comma<=>semicolon?
oh shoot a lang is about to be learned for great good :D
What's the LYAL today?
pip! i think
Pip (@DLosc it's starting soon)
dlosc your sticks
00:00 - 11:0011:00 - 00:00

« first day (4147 days earlier)      last day (992 days later) »