Question. Is it okay for a question to ask for a program that will theoretically run forever? Like, "Write a program that tests all natural numbers for x property"? Usually I see them written as "Take a number N and return the Nth in the series that satisfies the property", but I think it'd be an interesting variation.
@Xanderhall Sure, infinite runtimes aren't usually a problem around these parts. The only concern is like what quartata mentioned -- making sure that there's some way to recognize that the program is doing something rather than just idling.
@TimmyD Would it be acceptable to allow for an output that isn't periodic (such as an array or string) and let people prove that it works up to an arbitrary value?
@wizzwizz4 It's hard to judge the different indicators of humour in text, but I think "heh" is sometimes used as a kind of awkward half laugh, indicating that something is worrying rather than positively humorous. I obviously can't speak for individual usages though
What is the Sandbox?
This "Sandbox" is a place where Programming Puzzles & Code Golf (PPCG) users can get feedback on prospective challenges they wish to post to the main page. This is useful because writing a clear and fully specified challenge on the first try can be difficult. There is a much...
I seem to remember that does work (I accidentally cleared the close votes on a question when I only intended to not close vote), but it does depend on happening to see the question in the review queue.
If you write a good/valid answer just as if it was any other answer, there's nothing wrong with using your own language so people can hear about it. I do that all the time
@TylerMacDonell Just answer new questions where you can compete. This is a vastly superior way to show you language than bumping some old question with a non-competing answer.
Better show solutions to old interesting challenges in your language docs or in the Showcase :)
Your challenge is to write a simple Rect class that can check for point in rect and rect collides with rect.
Please notice the case of the cross, dont only check the points :
In this case no one of both rects has any point in the other, but they are colliding.
Your class has to look like :
...
I know scripting in ROBLOX is basically lua, but it adds a few elements. Those being a three-dimensional world and some kind of object orientation. Now, just for the sake of it, not to actually expect any kind of winning, I am planning to do answers using this. How exactly could you score these a...
I had this idea for a codegolf question, let me know what you guys think. Any feedback would be appreciated as this would be my first codegolf question submission.
Suicide Runs
Background
Back in High School, one of the most dreaded workouts at lacrosse practice would be the Suicide Runs.
Wh...
So, Winter Bash is the end-of-the-year promo that SE runs on all their sites. You do or perform certain actions and get "hats" that you can add onto your avatar.
In mathematics, two quantities are in the silver ratio (also silver mean or silver constant) if the ratio of the sum of the smaller and twice the larger of those quantities, to the larger quantity, is the same as the ratio of the larger one to the smaller one (see below). This defines the silver ratio as an irrational mathematical constant, whose value of one plus the square root of 2 is approximately 2.4142135623. Its name is an allusion to the golden ratio; analogously to the way the golden ratio is the limiting ratio of consecutive Fibonacci numbers, the silver ratio is the limiting ratio of...
Prelude:
Yo boys, we got the DJ, we got the bar and drinks, the disco lighting but the floor still isn't here!
We need a floor, NOW!
Challenge:
The boys have left you a message containing 3 things:
the colors the floor needs to have (separated with commas) (ex. pink, blue, yellow, green)
the...
Sandbox Qs
Is this challenge unique?
Does any language have a single instruction for this operation?, yes Python swapcase(), pending some changes...
bROKEN cAPSLOCK kEY fIASCO
Some of your employees have broken capslock keys and you're too cheap to replace them. Help them out by creating the...
Technically, you need to make a program that is a period-two quine but alternates language in one language and in the other output a polyglot that prints "Wrong language!"
In the Presidential debate of 26th September, Hillary Clinton claimed that "Donald Trump said that global warming was a hoax invented by the Chinese" (1:55). Trump replied several times "I did not say that".
Did he say (or write) that?
@GabrielBenamy Using any of the shells. You can peek into /srv/wrappers to see how individual programs are run. For COW, it's just a standard invocation of /opt/cow/cow.
Apologies in advance, this is long, and may read somewhat like a rant, but I've been holding off asking about this for ages (and reduced my PPCG activity as a result of the increased prevalence of certain classes of answers). I'm sure many will expect that this is a dupe of something more general...
Some questions and answers have helpful animated GIFs which display the output of a command line program.
Some GIFs look great, like this one from the Make me a fake loader question:
Others look corrupt and choppy, like this one from this answer:
What are some methods for making great GIFs?
@VisualMelon I've not used C#, but it's similar-ish enough to PowerShell that I can usually follow along. Are you saying that your examples A and B won't compile as-is, and that's why C is the minimum required?
(personally I would prefer if everything just expected a complete program (i.e. can be passed to CSC), but there is no way that's happening!)
And yes, this is something I've read a few times now, but it doesn't address statically typed languages, and is part of the rational for "a function is something you can call, either by name or directly"
I finally managed to make the animated run icon of TIO Nexus work with IE 11 and Edge (partially, at least). Sadly, that completely breaks it in Firefox. Argh!!!
22222222... (65536 twos) = 2↑↑↑4
Before I begin, this is not the largest number expressible using 500 bytes of New Brainfuck. It's simply where I gave up trying to wrap my head around how big the numbers were getting. This answer only uses 93 bytes and is therefore not the largest number, but ...
(I suspect my code gives a smaller number, but no interpreter will run it because whatever it turns out to be is too big for me -- I think it might just be 65536^65536)
@EᴀsᴛᴇʀʟʏIʀᴋ why does this have 4 reopen votes? O_o it simply doesn't have an objective winning criterion. as opposed to code-golf, tagging something fastest-code says nothing about how scores are determined.