« first day (2856 days earlier)      last day (2004 days later) » 

Anonymous
12:04 AM
@flawr I got to the I/O level and now I'm disappointed, because it's bugged and I can't play more :(
 
@lirtosiast your densely packed decimal answer keeps getting shorter and shorter every time i look
 
I think I'm finally done or close to done
Each individual section seems fairly short now, so if there's an improvement it would have to be using a different method
I haven't golfed in a non-golfing language in a while; this one was fun because I don't golf as fluently in Python and took a while to discover all the tricks
(or have others discover them)
 
12:26 AM
i didn't expect sub-100 would be possible
i like how it's a mix of hardcoding and computation
 
Yeah that's one of my favorite ideas in code golf in general
What should be code and what should be hardcoded data
 
1:06 AM
I keep wondering whether the provided encoding is optimal, at least for golfing purposes
keeping the limitation that if all the digits are less than 8 then there must be a 1-1 correspondence between the 9 input bits and 9 of the output bits
 
i don't think it is -- at least when i tried to come up with an algorithm to find a pattern to reconstruct it, things kept seeming out of place
at least putting the "control bit" in position 7 at the end would make things cleaner, both in extracting it, and putting the three chunks of 3 adjacent
also, for the 4'th entry, switching gh with de would make the pieces sorted on every line, and i think this could be useful for compression
 
switching both the 3rd and 4th entry would make them cyclic which is probably better
 
i do like the challenge idea of coming up with your own mapping and golfing it
 
1:33 AM
Hello Ð!
 
2:00 AM
0
Q: I asked a word question that has run away with me?

alan2hereEasiest WordSearch I've asked a fairly plain english crossword related question thats been on my mind for quite a while. I've got some qualifications in CS but in formulating improved wording tor this question I feel some (I've heard just once obnoxiously abbreviated to) "common" is also called ...

 
 
1 hour later…
3:29 AM
0
Q: Process and thread, what to choose

wzqWhen performing a time consuming operation, such as downloading files from the web, can use a process or thread. What is the difference between them and what are their advantages?

 
 
2 hours later…
5:43 AM
I'm thinking of asking a question about the expected length of a modulo chain in code golf... would it be on topic on math.SE?
 
5:54 AM
@lirtosiast I think yes. (why not?)
Wait what?
Modulo chain? What's that?
 
11
A: Is this number random?

Sp3000CJam, 53 52 47 bytes l~"X 0'ò"2/Dfb+:%"gÇâì6Ô¡÷Ç8nèS¡a"312b2b= There's unprintables, but the two strings can be obtained by [88 9 48 5 39 5 29 1 242]:c [8 103 199 226 236 54 212 15 161 247 199 56 110 232 83 161 97]:c respectively. This also shows that the code points are below 256. This...

 
6:12 AM
Then, I think yes.
 
The question is, what's the expected minimal number of moduli in the chain to reduce a certain interval to a certain other interval
which seems to be very relevant for kolmogorov-complexity in languages that don't have better hashing-type functions
 
Sounds like a pretty hard problem. Add some background about code-golf to make it more interesting.
By the way:
There is a pretty efficient way (the code is not the shortest, but the used data is very small) to encode a "partial function"
(the function needs to compute to some correct value for some small ranges, for other ranges it's ok to have undefined behavior)
 
Hmm
 
(not really related to %-chain, but is another approach to solve such challenges)
 
What do the scores in the answers to that challenge mean?
Oh wait
 
6:20 AM
The amount of "data" needed to encode the function.
 
Now I understand the question after reading it 5 times
 
A is an encoder and B a decoder
 
People complains that the challenge is hard to understand too, but.... I don't get it.
 
Yeah it was hard to understand until it clicked in my brain
 
6:22 AM
in Discussion on question by l4m2: Send the pairs in smallest output, Oct 25 at 13:49, by Anders Kaseorg
@edc65 Er, great! What did I say that was different?
After thinking a bit more, the code is not very long, as long as the target language has some hash-like function.
 
 
3 hours later…
9:22 AM
0
Q: Sort a list, poorly

LyricLyDon't you hate it when you're trying to roughly sort a list based on user data, but you have to poll the user for thousands of comparisons? Hate no more, because the answers to this challenge are (going to be) here! Method To poorly sort a list, you must sort it at least 75% of the way. How is...

 
9:41 AM
guys does anyone know how many bytes a "1080p Full HD" holds?
 
9:53 AM
Never mind I figured it out. It can hold no more bytes, because it's full.
 
 
2 hours later…
11:41 AM
hello
I'm struggling to wording (or rewording) a question, or understanding how to word it, or knowing how to get reopened.
I just need some plain english info, or more ideally edit suggestion help with it.
 
11:54 AM
@alan2here Try the sandbox
 
I should put a copy of this there? codegolf.meta.stackexchange.com/questions/17147/…
or the original question?
or make a 3rd post :-/
 
 
1 hour later…
1:25 PM
0
Q: Nth subset of a set

mromanThe task Given the set $$S = \left[{1,2,3,4,5,6,7,8}\right]$$ and an integer $$0 \leq N < 2^{|S|}$$ find the Nth subset. Input/Output N is given as an unsigned integer on stdin. You must print the Nth subset in a format suitable for your language (this may include [1,2,3],{1,2,3},[1, 2, 3...

 
1:48 PM
@Mego oh no:/ unfortunately I'm not that far yet, but you can contact the author (e-mail in the about section)!
 
2:00 PM
I completed nandgame a few days ago
so either it's updated since or the bug is something that doesn't prevent completion
 
0
A: Sandbox for Proposed Challenges

ScroobleSequences that sum to n code-golf random sequence arithmetic Barely too late for Fibonacci Day :( Given a positive integer n, your challenge is to output a sequence of 1 and 2 that adds to n. For example, for input 8, acceptable outputs include 11111111, 2222, and 121211. It's not quite that ...

 
@alan2here As I said in the comment, it should be on-topic.
Although I don't think sort by code size is a good idea, for the reason I also said.
 
2:42 PM
0
Q: Create a kind of quine, such that the program prints one character of itself, then two, then three and so on

AndrewAs in, an example quine like this would be "@@@@@2" in some language, printing @, @@, @@@, @@@@, @@@@@, @@@@@2 in that order.

 
Anonymous
3:01 PM
@ais523 I think it has been updated - I don't remember seeing the I/O level when flawr first posted the link
 
3:15 PM
I'm surprised there's no BrainFlak answer for this. Seems exactly like the crazy stuff DJ and WW like doing
 
@feersum whoa
 
3:28 PM
1
Q: Let's play Peg Solitaire

BMOPeg solitaire is a popular game usually played alone. The game consists of some number of pegs and a board which is divided into a grid - usually the board is not rectangular but for this challenge we will assume so. Each valid move allows one to remove a single peg and the goal is to play in a ...

 
3:39 PM
@cairdcoinheringaahing That looks several orders of magnitude harder than a brain-flak self interpreter
 
has a brain-flak self-interp been done yet?
 
57
A: Write a brain-flak classic interpreter!

NitrodonBrain-Flak Classic, 1271 1247 1239 bytes <>(()){<>((([][][][][])<(((({}){})(({})({}))[])({}(({})({}({})({}{}(<>)))))[])>{()<{}>}{})<{{}}{}>())}{}<>(<(({()(((<>))<>)}{}{<({}(([][][])((({})({}))[]{})){})>((){[]<({}{})((){[]<({}{}<>((({})({})){}{}){})(<>)>}{}){{}{}<>(<({}{}())>)(<>)}>}{}){(<{}{}{}((<>

 
I guess if it's been done in Classic, it should be fairly easy in the new version
 
@NewMainPosts The winning condition on this challenge makes no sense at all
 
@DJMcMayhem agreed; it's an win condition when the answers have no relation to each other
 
3:44 PM
0
Q: Resolve the permissions

haykamGiven a set/array of permission queries, return whether the permission is allowed (boolean). Input This takes two inputs. Queries An array/list/whatever of strings that are valid permission queries, which can be sets of lowercase a-z or * separated by . (always return false if invalid). * ma...

 
Anonymous
I/O level of nandgame is fixed now :D
 
nandgame annoys me because it's so inefficient, I feel like I want to golf it
there are cases where, e.g., it provides you with a select and it's the only component in the toolbox that can solve the round, but you could do it with fewer nand gates by using different components
 
4:14 PM
@DJMcMayhem Suggested
 
4:29 PM
that still doesn't work without some way to prevent people running up the score
the reason code-bowling isn't popular is that it's very hard to write a code-bowling challenge that doesn't allow unbounded scores (or that doesn't make it trivial to get the maximum score, in challenges where the score is inherently bounded)
hmm, the author changed it to "most interesting answer wins", which is a better victory condition in some ways, but…
 
@ais523 But the quine has to print out each run of characters? How can you run up the score easily
 
@Quintec universal quine constructor
adding extra padding to a quine doesn't actually make it any harder to write, in most cases
it's only special-case quines that don't use a universal quine constructor that struggle with it
 
Ironically, changing the winning condition to "most interesting" allows me to VTC as not objective, whilst the previous condition was
 
Isn't that popcon?
 
it's a subjective version of popcon
@Quintec here, look at this quine in Jelly: Try it online!
it's a universal quine constructor, and I've put ḷ123456789 (i.e. "ignore the number 123456789) inside it
that makes the quine longer without making any change to how it functions
@Quintec now if we want to output all prefixes (as required in the question), rather than having a straight quine, we can add that to the universal quine constructor too: Try it online!
all I did was to insert a ¹ƤY (i.e. "all prefixes, newline-separated")
 
4:43 PM
I'm utterly hopeless at quines
 
the point of the universal quine constructor is that it can generate a program that outputs any function of its source code, given only a definition of what function you want
most (but not all) quines are based on them
the basic idea is that you don't have to print the output generated by the quine; you can store it in a variable and do operations on it before printing it
 
0
Q: How frustrating is my movie?

Post Left Garf HunterMy parents have an home theather device. The remote is broken making it incredibly difficult to navigate rightwards in a menu. Most the time it doesn't work but when it does it moves rightwards incredibly quickly. This is obviously frustrating but it is most frustrating when you want to enter ...

 
that title is a typical example of a title designed to draw in HNQ visitors and thus get the poster more reputation
I don't mind this at all, the more often it happens the more likely Stack Exchange staff are to acknowledge that they've got a problem
 
Anonymous
4:59 PM
@ais523 It's not a problem to SE - it's [status:by-design]. HNQ is shown on every page of every site except help centers and MO, so that's a huge bump to SEO. Having clickbait titles draws in more views, and every site thrives on views. The poster gets rewarded with views (that hopefully translate into votes and therefore rep) for providing the network with more traffic.
 
Anonymous
(also I guess inline tags don't want to work)
 
@cairdcoinheringaahing Ok I'll do it
 
Anonymous
Yeah that one
 
I mean, obviously it's an SEO (and human discoverability) thing, but it rather ruins the sites (plural) in other ways
there was that debacle recently where Interpersonal got banned from HNQ…
it also means that reputation is pretty much meaningless for anything
as it's such a good source of reputation that it removes the correlation between reputation and pretty much anything other than being good at writing HNQ questions and/or HNQ answers
 
5:04 PM
@ais523 My title? I wasn't really thinking about the HNQ when I wrote it. It's saturday and things don't really HNQ on saturdays.
 
that's because HNQbait titles are the only way to fit in with the rest of the site nowadays :-D
informative titles look out of place
 
@ais523 well you have to somehow drag attention to your question, otherwise noone'll answer it
 
That's probably true. I don't really title my challenges to give any information.
 
@dzaima how many answers you get on codegolf basically depends on how easy the question is
with a few special cases (e.g. if the question becomes famous, it'll get a lot of answers unless it's really difficult, or in one case get one answer spread across a lot of posts)
 
@ais523 multiplied by how interesting it looks imo
 
5:07 PM
@dzaima Completely wrong... But having such titles is not the only way...
 
@user202729 well yeah, I'm exaggerating, but still
 
The other way is to make it interesting.
 
@dzaima not really; if I can't think of an approach for answering the question in about ten seconds I'm probably not going to answer, as I don't have all that much time for writing long answers nowadays
and when I do I often spend it on projects I'm personally interested in, like Turing-completeness proofs
(I proved An Odd Rewriting System to be Turing-complete earlier today, for example)
 
Most codegolf challenges on this site has trivial approach.
 
I actually find the trivial-for-golfing-languages questions interesting because of what they reveal about the golfing languages
in particular, if a question should be trivial but isn't, that says a lot about the language you're trying to use
 
5:11 PM
I'd actually like questions to be a little more trivial at times. The current average difficulty I find too trivial to be interesting in normal langs and not trivial enough to be worthwhile in esolangs.
 
@ais523 That is every challenge for me and Whispers
"Oh a nice easy maths-y question" turns out to be ~150/200 bytes
 
Info: Currently there is no answer in golflang on 38%-off challenge.
 
@PostLeftGarfHunter I think I agree with that, the current average question is in something of a sour spot when it comes to difficulty wrt answering the question at all
and once you have an answer, it's often rather random whether it's interesting to golf it or not
 
@user202729 That was not by the design of the challenge.
I discovered it when I was writing my own answer.
 
Challenge idea: Given a output, compute the shortest possible Brainflak program that outputs it and only contains ()<>.
 
5:19 PM
observations: <> is useless, there will always be as many pushes as characters in the output.
 
Yes.
 
What does <> with an argument do?
 
(I have such a program, but it's both terribly slow and terribly long)
 
@feersum returns zero instead of the value
without an argument it swaps the stack.
I was specifically pointing out that swapping is useless.
 
can you guys help me with my new question on sandbox
 
5:24 PM
*challenge
 
0
A: Sandbox for Proposed Challenges

Windmill CookiesGiven element count, minimum GCD and maximum LCM, compute the number of distinct integer arrays Inspired by a question in Turkish National Computing Olympiad. You are given 3 numbers: n, x and y. Compute the number of distinct integer arrays with n elements whose GCD is greater than x and lcm ...

 
rip i forgot codegolf terminology while i was not here
 
@gnu-nobody Out of curiosity, what is the input restriction of the original challenge?
 
i do not recall exactly but it wanted the number modulo 10^9 + 7 so it must be big
 
The restriction on the input, not the output.
 
5:35 PM
i am trying to say
the restriction on the input must have been big
because it wanted the output modulo 10^9 +7
and i recall an example testcase with y= 10^9 or greater than that
 
Not necesasrily. Even with n=15,gcd=1,lcm=10 the output can exceed 10^9.
Oops :/
 
the subtask i hardcoded was 1<=n<=5 and 1<=x<=y<=10
 
I don't expect codegolf answers to work much better than (y-x)^n*poly(x,y,n).
So, just generate small test cases.
 
do you know how to solve it in fast time
unrelated to the challenge, i would like to know how to solve it efficiently
i think i generated a test case, but im not sure if i missed something
n=2,x=3,y=6; answer = 5 ([3,3],[4,4],[5,5],[6,6],[3,6]) there may be lists i missed
 
0
Q: Half-palindrome quines and code bowling, hooray!

AndrewMake a quine as long as you can. The caveat: the quine itself must be palindromic. The other caveat: it should ask the user for input. If the user inputs the entire quine (if the quine is AAAA then in this case the input would be AAAA), then the quine prints only one side of itself (as in, AA fro...

 
6:22 PM
CMC: Given n, output the nth term of the sequence: 2, 6, 20, 70, 252, 924, 3432, 12870, 48620, 184756. If you need more terms, I can provide them
You may choose 1 or 0 indexing
 
@cairdcoinheringaahing Jelly, 2 bytes: Ḥc
 
Hmm, didn't realise it was that simple
 
what was your solution?
 
interesting
 
6:26 PM
I was just messing around with recursive functions :P
 
I just recognized 252 :)
 
6:59 PM
0
A: Telescopic Parentheses

Post Left Garf HunterBrain-Flak, 338 bytes ([]){(({})[()]<([{}][])([][()]){({}[()]<(({}<(({})(())){({}[()]<([{}]())>)}>{})<({}{})((){[()](<{}<>((((()()()()){}){}){})<>>)}{}){{}(({})<>)(<>)}{}(({})(())){({}[()]<([{}])>)}{}>{}<({}<(([])<{{}({}<>)<>([])}{}<>>)<>>)<>{({}[()]<({}<>)<>>)}{}<>>)>)}{}{}<>((()()()()()){})<>>...

 
7:14 PM
@PostLeftGarfHunter That's shorter than I expected
 
yeah it beats the longer batch answer.
 
4 hours ago, by DJMcMayhem
@cairdcoinheringaahing That looks several orders of magnitude harder than a brain-flak self interpreter
Looks like I sure was wrong
 
Yeah, It wasn't that difficult.
 
Anyone know of a decent browser-based logic gate sandbox?
 
Anonymous
 
7:28 PM
heh, fair
 
@dzaima is that in processing.apl?
 
@Mego how's the Tetris GoL project been since the answer was posted? Is it still being worked on and improved?
 
@Cowsquack no, just processing. I thought of making it in APL but that thought came way too late, and would come with a lot (more) performance problems
 
Anonymous
@Skidsdev Not yet. We all got pretty busy around the same time
 
@dzaima are you gunna finish and release it at any point? It's basically exactly what I've been looking for :P
@Mego yeah I figured. It's one thing to say "Now that we've finished this project, we plan to move on to X, Y and Z" it's another thing to actually do it
 
7:37 PM
@Skidsdev at some point, probably. It's very much a clone of logic.ly right now (as seen by the design of the switch :P)
 
@dzaima except not $60 :P
 
@Skidsdev well, currently it's $∞ :P
currently the only way to create integrated circuits is to just copy the gates and manually wrap text around them, and that's no fun
 
also I made a brute-forcer for nandgame that optimises for nands
it got 4 for xor while I just got 5
 
also I'm having trouble of how do i prioritize creating that simulator, my java-like lang that I hope that in a couple hundred years i could port the sim & APL to, and learning russian so i don't fail school :p
 
That's pretty good!
 
7:42 PM
oh speaking of languages, I should probably push Sum-It to github seeing as it's "done" now
still need to figure out more opcodes for it htough
 
find the optimal solution for nands given an input to output mapping
could be a decent ppcg challenge
 
Now I just need to make a somewhat golfy hello world with it
 
here's a 2-digit dec-to-hex converter that really shouldn't work but it does and i shouldn't complain
 
8:05 PM
anyone have/know of a userscript for TIO that adds syntax highlighting for common langs?
 
@Skidsdev there's this tacoscript
it doesn't like wrapping lines though
 
 
1 hour later…
9:39 PM
@dzaima looks much like Logicly... ;-)
 
the whole reason I wanted to make it is because I wanted more features to logicly, so the similarity is to be expected
 
quiz: who has most probably answered a really hard challenge with one answer?
 
10:18 PM
@EriktheOutgolfer What does that mean?
 
you see a challenge, you read it, and think "how is that possible?!"
then, you realize there is one (1) answer to the challenge
before seeing the answer, who is most likely to have answered it? :P
 
@EriktheOutgolfer Leaky Nun? Dennis? OP?
 
@Adám um... I can't say anything about your opinion :P (mine is Arnauld, btw)
 

« first day (2856 days earlier)      last day (2004 days later) »