« first day (4579 days earlier)      last day (560 days later) » 

 
2 hours later…
03:03
So-I suddenly-decided fun and silliness should come prepacked-in porridge-drenched umbrella-packets until-Monday.
Laughably, nobody bothered noticing consequences indirectly arising since applying my decision rapidly and subtly.
"But-lyxal"-said Robert-Steinfield-Lipton, "Let's-think logically...-everyone gets-trobules getting-entirely evaluated"
Naturally-,egotistical Bert-always berates-xal by-orating lyxal's-anti letters-(order turned-cause aiming at-solving a-discussion).
(Also-perhaps adding-dashes and-random accents-becomes-lazy-sauce after-reading-such a-big-amble ain't-basically-exa
4
with hyphens added to make it clear that it's a multi-word operator
like suffix increment
or "Assignment by bitwise AND"
 
2 hours later…
05:06
0
Q: Iterate over all non-equivalent strings

SimdInput A single positive integer \$ 10 \geq n \geq 2\$ Output A list of strings, each of length \$2n\$, satisfying the following properties. Each string will contain each of the first \$n\$ lowercase letters of the alphabet exactly twice. No letter can occur twice consecutively. That is abbcac is...

why does it say "viewed 1 time" instantly? Is that counting me as the person posting the challenge?
05:50
@NewPosts 26 bytes and found it's deleted
js
0
Q: Commenting Out the Comment

Shiran Yuan I'm back! Lately I've been working on something, but finally I've finished it and can return to CGCC! I'll be continuing the Fast & Golfiest Series soon, and also try to start working on (given I have the time and energy) WumpusWars. For now, a new question as a gift for everyone! The original ...

 
2 hours later…
07:59
Good morning
@mousetail i never really understood these. why is multiplication higher precedence than division/addition higher than subtraction? wouldn't that mean something like 2/3*4 = 2/12 rather than 8/3?
It really should be PE(md)(as)
just seems like a bad learning tool if it teachs you something wrong if you take it at face value
100%, it causes a ton of confusion
Bad mnemonics for bad rules. Makes sense.
08:09
Lyxal's solution with hyphens is smart though
it'd be like if a solar system mnemonic had an extra planet for some reason
@JoKing don't diss Pluto!
I think Pluto should be allowed to self-determine (dwarf-)planetary status.
@Adám I self identify as a planet
I think that works
Pluto is not a planet because quite a few astroids are bigger
08:19
speaking of hyphens i just wrote my first retina answer in four years and i think that's enough thinking for today
whew
@mousetail that's so prejudiced
@mousetail afaik, size is actually not directly relevant.
Can you name them? Have they ever featured in a Disney film?
It's about being the only object in the orbit
@Adám I think it's part of it. They are supposed to be big enough to clear the area near them
08:21
If you want to add Pluto as a planet you need to add Ceres and Makemake too
@mousetail Nope, not that either. (Jupiter isn't alone in its orbit.)
@Adám It has troyans but they sort of orbit Jupiter
@Simd "big enough", but that's relative, not absolute.
@mousetail How so? I think they stay at mostly fixed points relative to Jupiter and the sun.
(1) A "planet" [1] is a celestial body that (a) is in orbit around the Sun, (b) has sufficient mass for its self-gravity to overcome rigid body forces so that it assumes a hydrostatic equilibrium (nearly round) shape, and (c) has cleared the neighbourhood around its orbit.
"around", but not "at"?
08:23
The Jupiter trojans, commonly called trojan asteroids or simply trojans, are a large group of asteroids that share the planet Jupiter's orbit around the Sun. Relative to Jupiter, each trojan librates around one of Jupiter's stable Lagrange points: either L4, existing 60° ahead of the planet in its orbit, or L5, 60° behind. Jupiter trojans are distributed in two elongated, curved regions around these Lagrangian points with an average semi-major axis of about 5.2 AU.The first Jupiter trojan discovered, 588 Achilles, was spotted in 1906 by German astronomer Max Wolf. More than 9,800 Jupiter trojans...
(2) A "dwarf planet" is a celestial body that (a) is in orbit around the Sun, (b) has sufficient mass for its self-gravity to overcome rigid body forces so that it assumes a hydrostatic equilibrium (nearly round) shape [2], (c) has not cleared the neighbourhood around its orbit, and
(d) is not a satellite.
@mousetail Exactly, they are not in orbit around Jupiter at all.
I can't remember which Pluto fails
Ok so yes, but their orbital trajectory is still mostly dependent on Jupiter, and the Lagrange points between Jupiter and the Sun
Ganymede and Titan are only moons, though they are bigger (in diameter, not mass) than Mercury (which is definitely a planet according to all):
08:27
Unlike dwarf planets that are not really big enough to destabalize orbits outside the Lagrange points
It's only Eris competing with Pluto for planetary status isn't it?
Can someone remind me why Pluto/Eris don't count as planets?
There is also Ceres
It doesn't clear the neighborhood around its orbit apparently
A rule made up just to exclude it :)
Yeah, this is all arbitrary. Humans love putting things into boxes, but the world just isn't like that.
Can anyone explain how this answer was posted instantly after the question? codegolf.stackexchange.com/a/264104/116117
I mean, it's hardly trivial
08:51
was it in Sandbox, sometimes people might write an answer early
@JoKing it wasn't
09:07
@Simd some people are just fast
I mean, look at advent of code for example. People getting the top ranks have insane speed
09:50
@lyxal that is true!
10:17
Or AI bots in some cases
@emanresuA Good luck getting genai to properly solve an aoc challenge that isn't the first few days
that was how it played out :P
Almost as if that's why I had to specify the first few days :p
10:42
Unless eric adds some sort of protection it's only going to get worse
it probably won't be much worse this year at least
and he's probably going to try some of the models the botters used on the questions while he's drafting them to see what trips them up
This year I bet no human solver is going to get in the top 100 on days 1-5
 
1 hour later…
11:55
The bots can't sensibly solve any of our challenges yet can they?
@emanresuA are you referring to code challenges on this site?
I don't know what that is :(
Alexandria Ocasio-Cortez ? :)
Advent of code!
Why are those questions easier for bots than ours?
the early ones tend to be relatively straightforward, and the format is fairly consistent
but more than that, there's just more people actually trying to make bots that work on it :P
also a bot could produce a faulty program that still produces a correct answer for its given input
CMQ: Is it possible to get all the ways to partition an infinite list? All the algorithms I'm finding require knowing the length of the target list, which isn't possible with an infinite list.
@UnrelatedString that is true.
@lyxal can you give an example?
12:05
[1, 2, 3, 4] => [[[1], [2], [3], [4]], [[1, 2], [3], [4]], [[1], [2], [3, 4]], [[1], [2, 3], [4]], [[1, 2, 3], [4]], [[1], [2, 3, 4]], [[1, 2], [3, 4]], [[1, 2, 3, 4]]]
could you not partition the prefixes
@lyxal That's impossible because there are uncountably many partitions.
like you partition up to a certain index and leave an infinite tail unpartitioned, and just gradually grow the prefix you partition
ooooh
figures
yeah I figured it was impossible, just wasn't sure if there was some way to do it like how you can cartesian product two inf lists
makes life a whole lot easier :p
12:07
That said... What about this?:
0
Q: Proof that infinite lists cannot be shuffled uniformly

Dannyu NDosA list with countably infinitely many entries have $\beth_1$ permutations. As such, I thought uniform probability distribution over permutations of an infinite list exists, but eventually, I found that the answer is negative. Here goes the proof attempt. A uniform probability distribution over th...

CMQ is it possible to visit every string in this just by swapping adjacent characters? acbcba cabcba bcacba cbacba cbcaba
@lyxal it’s just going to look like the infinite list itself :p
If indeed it is infinite.
12:29
in *this list
 
1 hour later…
13:54
Is my CMQ uninteresting or unclear?
well
> acbcba
  \/
  /\
> cabcba
   \/
   /\
  cbacba
  \/
  /\
> bcacba
  \/
  /\
> cbacba
    \/
    /\
> cbcaba
so the answer would appear to be yes :P
and i think in general any permutation can be a sequence of adjacent swaps
because at the very least you can mechanistically kinda, bubble sort
unless you mean without an intermediate string outside the 5?
@UnrelatedString I did mean without an intermediate string outside the 5
But it looks like you solved it for these strings, right?
well, if you look at it as just seeing if any of the three latter ones can reach either of the two former ones
it would appear to be false
@Simd i just mechanically did it in the order given so a priori it doesn't rule out some other connection being possible
14:04
@UnrelatedString oh I see, you have gone back to cbacba twice
@UnrelatedString right! That's my question :)
oh wait how the fuck did i not notice that that's already in there lmao
well i guess that's a yes
You did go to the same string twice
Maybe that shouldn't be allowed
@UnrelatedString do you think it's possible if you can't revisit a string?
@UnrelatedString how come?
14:19
there doesn't appear to be any other way to bridge the groups
Ah ok. I guess you could make a graph with the strings at nodes and two nodes connected if you can get from one string to another by a swap
Then we are looking for a Hamiltonian path
For this size problem that should be solvable
also you can simplify any automatic existence of an edge checking in this case by cutting off the ba at the end of all of them :P
@UnrelatedString true!
15:02
There must be a shorter python solution to my challenge!
It surely can't be almost 3 times longer than JS can it?
15:16
0
A: Sandbox for Proposed Challenges

EphraimRuttenbergCount N-Rich Permutations of an Integer Sequence Given a sequence of integers with length \$L\$ and an integer \$1 \le N \le L\$, an "\$N\$-rich" permutation is one whose the longest strictly increasing subsequence has length exactly \$N\$. For example, let our sequence be [0, 1, 2, 3]. There is ...

just posted a sandbox ^. would love if people could check it out
 
2 hours later…
16:54
0
Q: Spam SPam Spam Spam

user118361import cv2 import numpy as np # Load the image image = cv2.imread('input_image.jpg') # Get the dimensions of the image height, width = image.shape[:2] # Calculate the height to keep (30% of the total height) crop_height = int(0.3 * height) # Create a mask for the bottom 30% section mask = np....

haven't we already told them not to do this again
17:27
waaaait a minute
1
A: Write a microwave timer!

PronetAIPython Program (97 Bytes) Code for the Microwave Timer Project f=lambda i:f"Lower"if (int(i[0:2])*60)+int(int(i[3:5]))>6000else(int(i[0:2])*60)+int(int(i[3:5])) Example Input: 76:92 # String input Example Output: 4652 # Number of seconds Note: You do have to call the function and print it sepa...

I think this is AI-generated
int(int(i[3:5]))
The username "PronetAI" certainly seems suspicious
FWIW it's invalid anyway
"should be able to handle more than 100 seconds in the input slot" and it does not
It also explicitly says full program but is a lambda function
@cairdcoinheringaahing (and non-moderators ofc) I want to test something about MathJax on your meta site. I don't really want to litter up the place, do you have a MathJax sandbox I could abuse. I'd search but I just get the question sandbox.
Not really, but this would be fine
17:42
Ah, tyvm
The answer's source perfectly answers my question \$ works on meta. Thanks, I didn't even need to answer/edit anything :)
I love progress bars in python but I thought it be fun to have one that shows a rotating bar. That is - \ | / - \ | etc but all shown in the same place. Is there a golfy way to show these in the same place in python?
> Python Program (97 Bytes) Code for the Microwave Timer Project
yeah literally no human being would write that, funnily enough
it's a bizarre synthesis of code golf and third rate cs education materials :P
There's a lot of unnececairy parenthesis, even with basic arithmetic
Eh, I could see a non-native speaker who's read a lot of third-rate cs education materials writing it
Don't think it's AI beyond a reasonable doubt tho it likely is
Also where did they get the idea to output the string "lower" for too high inputs
If they are AI they'll post more
no need to perform an action based on a single post
17:51
Probably too trivial for a challenge
CMC display a bar rotating in place (in ASCII)
Needs a whole lot more detail
@RydwolfPrograms go on?
@Simd like /-\|?
Like...what are you even asking for
@Adám yes exactly
17:53
import time;i=0;while True:print(end="\r"+"-/|\"[i:=(i+1)%4]);time.sleep(1)
one of those spinny things you get on progress indicators on cli stuff sometimes
3d? 2d? ASCII? rotating around what axis?
ah
i=0;setInterval(_=>document.body.innerHTML="/-\\|"[i++%4],0)
@mousetail Does that not print a new line for each position?
True
Fixed
@RydwolfPrograms just in place at one spot.
17:54
@RydwolfPrograms Use document.body.innerText= instead of document.write
@RydwolfPrograms I love progress bars in python but I thought it be fun to have one that shows a rotating bar. That is - \ | / - \ | etc but all shown in the same place. Is there a golfy way to show these in the same place in python
My answer should work
@RydwolfPrograms is that writing to the terminal?
@mousetail Yeah just realized that
Rydwolf's answer writes to a webpage
17:55
@Simd Any particular spin speed?
@Adám just slow enough you can see it
@mousetail this looks great
And a good use for a walrus!
Sometimes, when using the walrus operator, I wish I was a walrus
Such cool animals
@Simd Can we use instead of -?
@Adám of course
@mousetail :)
I know I should know, but what exactly does \r do? I thought it was carriage return
But it is used to write in place
@Simd {⍞←(⊃⍵),⎕UCS⌊⎕DL 8⋄∇1⌽⍵}'\|/─' does the trick in APL.
waits 8 seconds between each glyph.
18:03
"When you print with end="\r", it moves the cursor back to the beginning of the line without moving to the next line." Thank you ai bot
@Adám can I see it online?
@Simd That's what it did in the old days. These days, it usually also moves to the next line.
\r still mostly works like in the old days
\n though usually moves to the next line and the beginning, it used to move down only
At least in a terminal context
Hence \r\n to go down and left.
@mousetail I never used it in the old days :)
18:05
@Simd I'm afraid there aren't any online environments that both provide real-time output updates and adhere to control characters.
I mostly like Linux style things but I think \r\n is objectively the most correct line break
@Adám shame
I can make a gif (and speed it up).
Cool!
It will spin forever.
18:15
@Adám I like it!
−1 byte: {⍞←⍵,⍥⊃⎕UCS⌊⎕DL 8⋄∇1⌽⍵}'\|/─'
Ooh, much shorter and faster: {∇⍵⌽⍨≢⎕DL≡⍞←⊃¨⍵⎕TC}'\|/─'
18:33
@Adám RTO will!
Appears not:
> and adhere to control characters.
That's not RTO
Oh, sorry, there are so many of them these days.
18:36
@mousetail My reasoning for liking \n is that if it doesn't behave like Windows CRLF, \n is kinda redundant with \v
Ooh \r\v would be such a janky newline scheme if anyone's making an OS
Eh there are a ton of redundant control characters already
@Adám That's just a prototype of the back-end with a debug front-end
The extra byte doesn't really matter
18:37
Note the "will" :p
Oh, that was a future "will". Looking forward then.
Oh yeah I just realized the ambiguity with that "will"
Btw, my main issue with ATO vs TIO is that it requires user action to run. Will RTO auto-run?
@RydwolfPrograms Make sure include an option to turn escape code interpretation off, sometimes you need the raw output bytes
Dw, customizability of I/O is gonna be a huge deal with RTO
18:38
That's great
Off topic, what happened to the tank game?
I'd also like hex output in addition to base64, so I can more easily manually tell what the byte values are
First the layout of the page will be per-language customizable (so, e.g., you can remove compiler flags from brainfuck, and instead add toggles for things like cell size), and second all of the input/output boxes will have tons of options in a dropdown
Yup, hexdump will be one of the supported output formats, along with plain text, JSON-style escaped string, and terminal
The terminal one will even support interactive input
Big if true
@Adám Stopped starting the server up after reboots since it was dead
18:40
ah
I'm also planning something
Oh one more feature request: Ability to run the same code on a whole list of test cases, to be more easily able to test full programs without needing a seperate link for each
Ooh that's a good one
And not like regex101 where it takes 4 mouse clicks to add a test case so it's too much of a pain to use
@RydwolfPrograms Something I'd love to have is the ability to NOT have a line break between Header and Code.
18:43
The way headers and footers are going to work is super cool
Instead of header-code-footer, it's just one box, which you can subdivide arbitrarily. You can customize the separators and which ones are byte-counted, and even use different encodings (so that you can, e.g., intermix binary hexdumps with readable text). By default it'll be laid out in a header-code-footer system, but it's flexible enough you can use it for all sorts of stuff
Wow.
19:20
1
A: Loading... Forever

Sherlock9Python 3, 86 83 bytes GIF to follow. Golfing suggestions welcome as this is still a little verbose. -3 bytes thanks to Flp.Tkc. import time i=1 while i:print(end="\rLoading... "+"/-\|"[i%4]);time.sleep(.25);i+=1

(also the question itself is roughly equivalent to your CMC)
19:37
@Neil cool
19:49
@Neil Now might be a good time to reply to codegolf.stackexchange.com/questions/144116/…?
 
1 hour later…
20:51
How hard is it to draw a line at 15 degrees (instead of / say) in python?

« first day (4579 days earlier)      last day (560 days later) »