4 reopen votes and 1 delete vote is a strange thing to see. It's also slightly worrying that we have so little consensus on this matter. So let's bring the community together.
What kind of non-challenge questions do we want?
Each answer will contain one type of non-challenge question, some ex...
Currently, all tips questions on the main site are Community Wiki. Furthermore, there are not many other non-challenge questions on the main site. These types of questions are generally supressed on PPCG.
This should change.
The first point I'm going to attack is the fact that tips questions ar...
hm, I'm still trying to figure out a good way to annotate Prelude source code
my newest attempt
?1-(1+ vv++1+ 1- 1-)
^(1- ) ^ # ^(2-) ^!
1v-# 1# (# )
# ^ (# )
First, we need to Copy the current If the value is odd Else, divide by two. Print the current value
decrement the current value to the next multiply by 3 and This division code and decrement before the
I read 'Re-evaluating [tips] and tip-like questions' which is the older one and the other is much clearer so only 'competition-related' questions are welcomed
based on the 'Let's decide what kind of non-challenge questions we want once and for all' post
managed to shorten the hello world from 129 to 100
I think there might be an even shorter way (especially with multiple voices), but I don't really understand the second half of the code
also lol... in 3 cases where there's a choice for the order of multiplicands, the code loops over the larger number adding the smaller number in each iteration
I wonder whether a Prelude string printing (code generation) challenge would be even more interesting than "minimal Prelude numbers"
Prelude Syntax-Checker
code-golfstringsyntaxprelude
Prelude is an esoteric programming language, which has very few, but unusual, restrictions on what constitutes a valid program. Any block of printable ASCII text is valid provided that:
Every column of text contains at most one of ( and ).
I...
Prelude is an esoteric programming language, which has very few, but unusual, restrictions on what constitutes a valid program. Any block of printable ASCII text ("block" meaning that lines of printable ASCII are separated by newlines - 0x0A) is valid provided that:
Every column of text contain...
@Geobits I was working with IL code a few years ago (.NET's byte code), and I remember that you actually needed quite a lot of cases before switch wasn't compiled to if/else if/else
@NathanMerrill I guess 'jump tables' could be implemented a few different ways. If you mean the simple array of positions to jump to, then it may not be as efficient if the possible values are sparse.
Strange that there hasn't been a longest common substring challenge before, even without the O(n) requirement. It seems like low-hanging fruit that would have been plucked a long time ago.
Maybe. It would be one-off for each iteration unless you init to -1, which would be an extra byte plus the ++. So, you could save a byte on the comma if it works right. I haven't looked closely, but it probably should.
Looks like these countries are all familiar with pigs-in-a-blanket: "United States, United Kingdom, Denmark, Australia, Ireland, Germany, Belgium, Russia, Canada, and Japan."
@Geobits Have you ever heard of this? It says for US on the wikipedia page: At breakfast or brunch, the term "pigs in a blanket" refers to sausage links with pancake wrapped around it.
1) Make a little (1") bundle of french-cut green beans 2) Wrap with bacon and shove a toothpick through to keep it together 3) Coat with brown sugar 4) Bake until caramelized 5) Contract diabetes and/or heart disease
I had just finished Zgarb's challenge when chrome crashed
which normally isn't a problem because it restores the contents of the CJam interpreter correctly... but I had worked on it in a tab I had previously opened through a permalink... so the permalink contents replaced the code... :(
@Zgarb I will most likely do Core War next. The KOTH I've done in the past had some serious (and bizarre) problems with my ability to run it in a reasonable period of time. Since Core War would be run as single process, it would go much faster.
Speaking of bizarre KotH problems, I had a challenge break the character limit for Windows command line args because more than 63 people participated. Totally broke my I/O
Lesson learned - passing the game state via command argument has limits
Gotta watch out when it grows with the number of players