« first day (3175 days earlier)      last day (1670 days later) » 

12:42 AM
0
Q: Make Korean Character Multi-style Ascii/Box Art

LegenDUSTAbout Hangul As I'm Korean, I'm really proud of Korean character, Hangul(한글). Hangul is artificial character made by King Sejong the great, 4th king of Joseon dynasty, at 1443. Because today(October 9th) is Hangul day in Korea, I'll give you a challenge : Make Hangul ascii/box-styiled art. L...

 
1:22 AM
3
Q: Typing, but to the left

connectyourchargerBackground You've been given a task to take notes for a meeting. You start typing on your Google Doc, but you don't have enough time during the meeting to look at your keyboard while you type. Fortunately for you, you can type without looking at your keyboard. After the meeting, you realize tha...

 
 
3 hours later…
4:30 AM
Any requests for new or shorter quines in esolangs? I'm in a quine-y mood, and I'm only a few answers away from a silver badge
it's one of the few badges where i'm ahead scorewise, but lack enough answers to achieve
 
 
3 hours later…
7:31 AM
0
Q: Python 3 list comprehension for the knapsack problem

HyperflameThis is a problem from the finished Balsn CTF 2019 competition. The setting is to write a list comprehension in Python 3 which will read the input and print the solution. The contents of the resulting list do not matter. It has to be a single line with no single/double quotes. The following is...

 
7:57 AM
@Neil I suspect the answer to this is simply 2*s-1 for every s, as the first two s-gonal numbers are always 1 and s, and so the only way to represent 2*s-1 is one s and (s-1) 1s
 
 
1 hour later…
9:02 AM
@Sherlock9 indeed, I should have looked it up, for example for s=4 then it's simply 8k-1 for any k.
 
9:13 AM
1
Q: Tips for golfing in MathGolf

Kevin CruijssenWhat general tips do you have for golfing in MathGolf? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to MathGolf (for tips which can be applied to loads of programming languages, look at the general tips).

 
 
1 hour later…
10:13 AM
hello!
some great hard questions unanswered currently
 
10:34 AM
@Anush Ooh, links?
@Neil I don't yet know if there's a general formula for the second smallest number that requires exactly s s-gonal numbers, but that might be interesting
 
11:28 AM
There are some good unanswered questions, I agree
 
1
Q: Digit Date Range

Kevin CruijssenNOTE: Since I'm Dutch myself, all dates are in the Dutch dd-MM-yyyy format in the challenge description and test cases. Challenge: Inputs: Start date \$s\$; End date \$e\$; Digit \$n\$ Outputs: All dates within the range \$[s,e]\$ (including on both sides), which contain \$n\$ amount of unique...

 
12:07 PM
@MilkyWay90 The problem with asking questions s the delay before answers.. well it's a problem if you are very impatient like me :)
 
12:18 PM
@JoKing I'd very much appreciate (read: +50 bounty) a quine in Whispers. Seems horrible to do :P
 
 
2 hours later…
1:53 PM
@cairdcoinheringaahing How cheaty do you want it? I mean, there's an eval as python code command right there: Try it online!
 
2:11 PM
@JoKing i mean you can make it how you want, but I'd only give the bounty for a proper Whispers Quine (so no Python eval), as it's quite cheaty.
 
@cairdcoinheringaahing Yeah, I was planning on making a non-cheaty one anyway. Since I'm new to Whispers, is there any obvious golf I'm missing in this code?
 
2:27 PM
@JoKing No, cant see anything obvious. Nice job :P
 
3:01 PM
Do we have any general regulatory consensus on re-execution, i.e. requiring the same behavior across multiple source execution?
 
@JonathanFrech I believe that a program must behave the same each time it's run
 
@JonathanFrech We do for functions.
36
A: Do function submissions have to be reusable?

Martin EnderYes, functions have to be reusable arbitrarily often That's the point of functions in the first place. If you want to break your environment, answer with a full program. By "reusable" I mean that the function still complies with all the rules of the spec after it's already been used. It doesn't...

 
3:44 PM
There's been an attack (shootings and IEDs) where I once lived and many of my friends still live: https://www.bbc.com/news/world-europe-49988482

Only a few weeks after someone has been shot in front of our current office.
 
3:58 PM
That's awful. :(
 
4:11 PM
@Anush IMO they look like "typical" competitive programming problems which I don't (always) want to do.
 
I have a quick question about our truthy/falsey rules
So, based on upvotes/downvotes, it looks like I can't just arbitrarily say "if true, my program will exhibit behavior X, if false, it will exhibit behavior Y"?
for example: "If the input number is prime, my (SQL) program will return 0 rows; if composite, it will return 1 or more rows"
I mean, I could wrap the whole thing in an IF EXISTS() SQL statement, which could ultimately satisfy the highest voted answer there
Because converting that (0 rows vs 1+ rows) into an actual boolean output is possible, but would take more bytes
But I do see a lot of people saying "outputs ABC for true, and XYZ for false", which seems just as arbitrary as my "0 rows vs non-zero rows"
 
0
Q: Implement the named labels for assembly

Krzysztof SzewczykLet's assume we've got an imaginary assembler. The assembler supports numerical labels. An infinite loop example: :1 jmp 1 Your task is, to write a preprocessor for this assembler supporting named labels (instead of numerical ones; with up to 8 characters in length), so the label name is r...

 
4:27 PM
@BradC I tend to be pretty loose on my challenges regarding input/output. Golfing I/O isn't really the fun part of the challenge. As long as there's a distinct and consistent value for "truthy" and a distinct and consistent value for "falsey" in a decision problem, I'm usually OK with that. That can be extended to language implementation, too -- for example, any non-zero integer is truthy in PowerShell, so if you output a non-zero for truthy and zero for falsey, that's OK, too.
 
@AdmBorkBork But could you say "outputs BORK for true and SMURG for false?" or "0 for TRUE and 1 for FALSE?
 
I was about to mention that; I've seen many an answer here which returns, for instance, 0 for falsy and anything else for truthy.
 
Or "outputs a random string of integers for TRUE and crashes for FALSE"?
 
@BradC APL's boolean representations are 0 for false and 1 for true, so in the second case you mention there's no problem
Not sure about the others though
 
@J.Sallé but you'd have to negate it, right? Not just say "outputs TRUE for FALSE and FALSE for TRUE"?
 
4:35 PM
I personally prefer any two static values. However, it usually is just a byte tax most of time.
 
@cairdcoinheringaahing That would be my first thought as well, I have not found any consensus on it though.
 
@BradC I'm pretty sure that's not necessary. Adám once provided a link in an answer of mine in which I negated the output to conform with 0=Flase 1=True, but I can't find it now.
 
So I think in practice we've been leaning more toward the "just tell us the two different distinct outputs", even though that doesn't really match the consensus of that meta question
 
5:05 PM
@DJMcMayhem got a 30-byter spoiler
 
I'm gonna take that as a challenge and see if I can beat that without reading it
Are you also padding 0's?
 
btw there's a verbose mode bug with <M-@>, borks the entire program tio.run/##ATQAy/92///DgMOpLcOTLcO7NjDDvS/…
@DJMcMayhem for the seconds, yes
 
@BradC I've been fine with that, or with crashing for false, yes. Like I said, golfing I/O is boring, and like Veskah said, it's just a byte tax.
 
@DJMcMayhem wait it doesn't work for certain inputs
 
I've got mine down to 32
 
5:14 PM
I fixed it to reach 31
 
I don't think I can do better: Try it online!
 
if you want a hint, I use "count"
 
Yeah, I just peeked haha
Can you explain Àé-Ó-û60ý?
 
Ó-û60ý is :s/-\{60\}
but that's the unfixed version, I lost the fixed version at 31
 
I should make a reverse verbose mode
Given a compressed string, output the verbose code
 
5:30 PM
so I generate (1+minutes)*100+seconds, after which I get the count, insert the : and decrement 1 from minutes to get the 0-padding
 
 
1 hour later…
6:48 PM
So, here is my answer I had questions about above: it returns no rows if prime, and 1 or more rows if composite
I decided to note at the bottom that you can add 8 bytes if you want an explicit "0 or n" integer output
 
7:01 PM
Feb 14 at 20:26, by AdmBorkBork
Dagnabbit, I hate searching for duplicates because I usually find them :-/
 
7:17 PM
@user202729 I am surprised mine looks like that!
about to start a bounty on codegolf.stackexchange.com/questions/194051/… . Can anyone see any problems with the question before that?
 
 
2 hours later…
9:08 PM
@JoKing Just saw your quine, I'll start the bounty in a few minutes :P
Guess it'll be +100, I must have already set a bounty on that challenge
Wait, I haven't set a bounty on that question. Why can't I offer a +50 bounty?
 
If you already answered the question, the minimum is 100.
 
Ah, that makes sense
 
@BradC There's a standard IO rule about lack of input as a boolean value
 
9:40 PM
Excuse me, I would like to ask for help on a cellular automata question I have created, FryAmTheEggman has already looked over it, but told me I should get help from individuals with better CA knowledge, would anyone that fits that criteria like to look over my proposed question and point out any flaws/improvements? codegolf.meta.stackexchange.com/a/18160/85185
 
9:58 PM
Hi guys. My first time here in chat. I've only recently joined CodeGolf and love it. I'm in the middle of implementing a Piet IDE in HTML/JS and had a few questions about the Piet Language spec, specifically the handling of white codels. I was wondering if you could advise an appropriate place to pot a question? Code Golf Meta? Or somewhere else?
 
@JoKing Thanks, that link seems on-point.
So "no rows returns means its prime" is fine, then
 
10:20 PM
@Anush hmm, I see
 
@JohnRees Meta is for questions about the site
This chat is probably the best place to ask. Unfortunately I don't know anything about piet so I can't help
 
@JohnRees It might be best to look at the existing interpreters for piet, or this website which has a pretty detailed section on white blocks
if the behaviour you're looking for isn't in the specification, then feel free to make it cause the program to become self-aware and enslave humanity or something
 
10:59 PM
@JoKing The dangermouse site is my primary source. Looking at the npiet changelog I thought I understood the history, but when I checked npiet online it didn't work the way I expected the most recent spec to work. When I can craft a more precise question I'll ask back here. Cheers
 

« first day (3175 days earlier)      last day (1670 days later) »