« first day (4658 days earlier)      last day (482 days later) » 

01:07
0
Q: Restricted Meta-Cat

noodle manYour challenge, should you choose to accept it, is to write a program in a language of your choice that, when given a string (limited to printable ASCII) as input, outputs a new program in the same language that outputs that string without using any characters from that string in the code. But th...

 
3 hours later…
04:13
type spam can be used to sequence individual prints, but that still only makes (=) tie, since the prints need end=. — Unrelated String 18 mins ago
i cannot stop trying to think of some way to get past that
because the type spam is already such a weird damn trick that i refuse to believe i can't actually use it
actually wait newlines aren't printable ascii so it's completely irrelevant anyways lol
 
6 hours later…
10:21
0
Q: It's Just Simple Math!

I.T DelinquentTask Your boss is on another crusade for 'efficiency.' He wants to encourage the use of numbers with fewer syllables, so that they're easier to discuss in meetings. If you want to take some time off work, you're boss would prefer you take 9 days instead of 7. You're boss would prefer a credit car...

I wonder why we have awk answers but no perl ones any more
@NewPosts imo "syllable" is not clearly defined
10:51
My butter is long thank you very much
@lyxal I sense a distinct shortage of butter
why would you even suggest NMP has short butter?
@lyxal I have literally no idea what that refers to!
11:19
short butter is what you spread on short bread
11:33
@NewPosts What about million, billion, ...?
how many syllables do they have?
Text to number challenges are always very hard to define objectively
maybe a cap at one thousand could work
but the challenge doesn't seem very interesting in general
12:07
Someone want to post the sandbox stock comment?
 
2 hours later…
14:03
0
A: Sandbox for Proposed Challenges

math scatHow many twisted corners? Your challenge is to output the number of twisted corners given a 3x3 Rubik's Cube scramble. For the purpose of this challenge, twisted corners are defined as corners where the colour of the top/bottom face (usually white or yellow) is not facing the top/bottom. A scramb...

Its counterpart, how many flipped edges is actually a key step in the zz speedcubing method.
whereas the former isn't useful for speedcubing but rather for rubik's cube theory.
0
A: Sandbox for Proposed Challenges

Party ArkChallenge - Find the nearest "well known" fraction Find the nearest useful, well-known fraction for any decimal. Here I'm defining well-known fractions as 1/2s - everyone can get on board with halves 1/3s - similarly easy to picture 1/4s - slicing up a pizza for greedy people 1/5s - at the edge ...

14:50
0
A: Sandbox for Proposed Challenges

97.100.97.109Make Code Printing X without X code-golf code-generation The challenge is simple: write a program which takes in some string \$n\$ consisting of only uppercase and lowercase letters, and outputs the code for a program (in the same language) which takes in no input and outputs \$n\$. However, the ...

15:04
I guess he decided it was either long enough that it had been abandoned, or that the addition of a scoring metric made it distinct enough that it was a separate challenge
@noodleman
At least I know it's not a case of inadvertent duplication because noodle man commented on my sandbox submission
15:45
@97.100.97.109 oh crap i totally forgot about that i’m sorry
i wasn’t trying to copy yours but i realize totally i did (albeit accidentally)
when i thought of posted it i posed it as a CMC in the CGCC discord, i’m surprised nobody noticed my mistake
if i posted it in the sandbox before posting i would’ve noticed that it was a dupe, that was a total oversight
can i give you a bounty or something?
16:10
@97.100.97.109 actually I asked this as a CMC a couple of weeks ago...
16:48
@noodleman It's fine, lol, I just wanted to know that happened -- I don't need anything from you :)
It's funny that three people came up with the same challenge idea within a few weeks of each other
alright then
also i think the version you originally posted was impossible in most langs lol
@SandboxPosts I would be interested in seeing if this challenge is too similar -- it's the same idea, except without the scoring metric and by forbidding substrings instead of character sets
(As an attempt to fix the issue mentioned above)
oh interesting
i’m still not sure it’s possible though
say the input is “lambda”
then do print("\'lamb\141')
(Since both stdin/stdout and function input/output are valid code golf solution methods)
“lambda print exec”
16:58
print('lambd\141 print exec'), since that doesn't contain lambda print exec as a substring
oh wait nvm i misread
Or you could just use the unicode normalization honestly
yeah that seems pretty good although i’m not sure it will be possible in all languages
Yeah, that's fair -- I also think that's okay
i think it’s a more interesting challenge than what i posted
SBCS langs will still win easily tho
17:01
In some cases, maybe -- but for Python specifically, I think it's not particularly interesting
This challenge is also trivial a language like Vyxal I think
the challenge i posted kinda boils down to “smallest number of unique chars to print a string”
also i think i just found a mobile chat bug lol
i don’t know what caused it but when i clicked edit on the message “a little like…” it showed a loading spinner in front of the textbox
i can’t edit it anymore because it’s been too long, and i didn’t get a screenshot
wait the message never sent?? i reloaded the page it’s not there
weird
anyone have thoughts on this I/O default i proposed? codegolf.meta.stackexchange.com/a/26095/108687
it’s sort of used by some TS types answers already so i wanted to see if it was generally applicable
0
A: Sandbox for Proposed Challenges

97.100.97.109Seat people as far as possible code-golf sequence Imagine there are \$n\$ people \$\{a_1, a_2, \ldots, a_n\}\$ who enter a room in order and sit down in \$n\$ seats, arranged in a row. However, all of these people hate social contact, so they want to sit as far away from each other as possible; s...

in TS types this is generally used by having the submission be a union type, and having truthy/falsely be whether a literal type is assignable to that union (error or success)
17:24
i feel like types can be considered predicates in a stronger sense than what you'd generally consider a set in a programming context
0
A: Sandbox for Proposed Challenges

97.100.97.109Seat gangs as far as possible [tag:code golf] sequence (Follow up from previous challenge.) Imagine there are \$n\$ people \$\{a_1, a_2, \ldots, a_n\}\$ who enter a room in order and sit down in \$n\$ seats, arranged in a row. Each of these people belong to some gang, indicated by an integer ${1,...

 
2 hours later…
19:26
🎃
You forgot about halloween didn’t you?
20:24
0
A: Sandbox for Proposed Challenges

noodle manThe too-short urinal problem code-golf The well-known Urinal Protocol states that each person that takes a urinal will take the one furthest from any other taken urinal. But this fails to account for short urinals; in many cases, a person would prioritize taking a taller urinal in addition to dis...

20:38
@TheEmptyStringPhotographer there was a brief halloween discussion on the discord
@TheEmptyStringPhotographer yeah
20:57
@TheEmptyStringPhotographer maybe
i didn't forget but it would have been almost impossible for me to because i go to an art high school where everyone goes in the craziest costumes
what do you mean rip lol
being surrounded by artists is just intrinsically painful
oh wait you also draw don't you
i guess it's probably less painful then :P
21:58
lol
why else would i be at art school? lmao
idk i don't rlly talk abt my school online since i don't want to be, like, identified
i will say it's a public school though, i'm not rich or anything
@TheEmptyStringPhotographer you're too late
It's 9am on the first of November here
22:26
AAAAAAAAAAAAAAA
i was so sure i had a 2 figured out but it turns out fullwidth underscores are illegal despite normalizing to ascii underscores
maybe there's something else that normalizes to an underscore
found two more and they're also illegal
i guess there's probably a "call unicode symbols illegal" step before the "normalize unicode in identifiers" step
22:55
... why even have the code to normalise them if they're illegal
3 upvotes away from being the 48th top code golfer of all time :p
23:27
that happens if chat takes longer than usual to request the message contents
chat jank be like
@emanresuA python doesn't automatically normalize them, but the normalization relation is still defined (and available in the standard library as unicodedata.normalize :P)
it's a unicode standard thing

« first day (4658 days earlier)      last day (482 days later) »