Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [discussion]

The question you're asking is designed to solicit opinions or best-practices on a particular topic, with the goal of reaching community consensus.

-4
votes
0answers
39 views

Return Arbitrary integer within a range [closed]

Write a function solution that returns an arbitrary integer which is greater than N, not greater than 109, and that ends with 0. You can assume that N is between 1 and 999,999,999. For example, ...
-2
votes
0answers
37 views

Fix this smallest element function [closed]

The following find_min function should return the smallest element from a given array, but it contains a bug. ...
-2
votes
0answers
41 views

Digital clock - Code Golf [closed]

Given six digits, find the earliest valid time that can be displayed on a digital clock (in 24hour format) using those digits. For example, given digits 1,8, 3, 2, 6, 4 the earliest valid time is "...
2
votes
1answer
60 views

Who wins code golf if there is a tie?

On my code golf challenge, there are two tie 24 Bytes answers. The first one (Excel) is great because of the creativity put into it and the second one (MATL) is just skill I think and each one should ...
21
votes
15answers
577 views

A subtitle for our site name

Following Catija's comment on the site name meta question, what subtitle would work best for our site name? The current highest voted answer on that meta question suggests the site name be Code Golf, ...
0
votes
1answer
47 views

In bash, can I use non-coreutil programs

Since bash scripts (or any other Linux shell scripts) are accepted as a programming language, I wonder what (Linux) programs are accepted as callable from the command line. It seems that it is ...
4
votes
2answers
61 views

Is there support to approach 3rd parties to build a performance tool?

For code-golf questions, TIO has been a superb resource. However, for fastest-code challenges there is no equivalent tool available. I believe we could explore working with one or more 3rd parties ...
38
votes
13answers
1k views

What should this site be called now that it's getting a design?

As we're designing the site, we are considering the name and how the logo/wordmark of the site will look (be excited, that means we're actually in-progress!!!). In our discussions internally, there ...
0
votes
1answer
45 views

Not halt to prevent display from disappearing

According to Can Halting be considered output? and maybe some other links, programs should halt. However in some cases making program halt is easier(save the infinite loop in code-golf, etc.) but ...
1
vote
0answers
56 views

New PPCG Leaderboard Widget - Update 1.1 [duplicate]

You may have seen my previous post, in which I introduced a new leaderboard widget over the old system. Well, turns out there were a few major bugs with the program. I've gone through and fixed all of ...
16
votes
2answers
210 views

Introducing the New PPCG Leaderboard Widget!

Updates: Update 1.1: Released on April 26th, 2019 If you are just here to get the code for the widget, you can skip down to the bottom of this post. Hello! Over the past week, I have been working ...
2
votes
1answer
64 views

Which 'repeated substring' challenge should be closed?

Right now, there are two challenges, Newer challenge: Check if a string is entirely made of the same substring by ouflak Older challenge: String.prototype....
2
votes
1answer
86 views

How do we score colors in Desmos?

How would we score changing the colors of graphs in Desmos in [graphical-output] challenges with color-sensitive output? Currently, selecting the color in the menu costs no bytes as no characters are ...
1
vote
0answers
81 views

How can I encourage voting for non-golf languages?

I don't like golf languages, and I vote on solutions using them only if the solution has some extraordinary feature (like abusing a bug in the interpreter). How can I encourage people to vote this ...
3
votes
2answers
134 views

Are non-uniform random distributions allowed?

I posted a challenge that requires programs to generate a random number in a range, and one answer used the rgeom function from R. This function uses a geometric ...
63
votes
13answers
1k views

The PPCG Site design is on its way - help us make it awesome!

The long wait is almost over! You have been eminently patient while we've gotten other site designs finished and then completely redesigned the layout of the network. Now that all of that heavy ...
3
votes
1answer
96 views

Challenge (Solve subset sum quickly if P = NP) incorrectly closed as duplicate [duplicate]

My challenge Solve Subset-Sum in polynomial time (...if P = NP) was closed as a duplicate of Golf the Subset-Sum Problem. But the restricted-complexity aspect of my challenge makes it very different. ...
1
vote
0answers
41 views

Should I accept an answer? [duplicate]

I couldn't find anything related to this on meta, so here goes: I've noticed that we've decided that competitions should be within each language for a code-golf competition to avoid golfing languages ...
1
vote
1answer
50 views

Where timing between outputs matters, does the solution need to account for buffering?

In certain languages (i.e. C), writes to streams like stdout can be buffered by default - what this means is that when one calls functions like ...
0
votes
2answers
88 views

Can I see a list of removed questions?

I see the bottom of vote list good and some good questions removed cuz of low votes. Is there way to see the removed or I have to go through all possible question id?
10
votes
3answers
180 views

Do different ImageMagick tools count as their own languages?

Here is an answer that I made recently: https://codegolf.stackexchange.com/a/181416/70328 A commenter suggested that I could remove convert from my code, and use <...
1
vote
1answer
95 views

“Voidhawk's well-explained answer was the first one here in APL”?

The phrase "Voidhawk's well-explained answer was the first one here in APL" appears in 3 featured questions on PPCG with an active bounty. It seems out of place and I'm not sure what it means. Does ...
0
votes
0answers
32 views

Can we pass properties of the input as parameters? [duplicate]

Some challenges require, for instance, lists as input. A list has a property being its size. Several languages have builtins to get properties such as the size for a list (all golfing language, ...
0
votes
0answers
97 views

Scratch 2.0 is no longer considered a “free” language. Does this retroactively make cops-and-robbers cop answers in Scratch 2.0 non-competitive?

As per this question's answers, Scratch 2.0 is no longer considered a "free" language. As per this question's accepted answer, non-free languages are allowed if marked as non-competing. Scratch 2.0 ...
2
votes
1answer
76 views

Can I repost a challenge with different rules? [duplicate]

Recently, I posted a code-golf question about number sequences. However, as I was looking through the question later, I thought to myself, "Wouldn't this be good as a fastest-algorithm question?" It's ...
4
votes
0answers
82 views

Non-standard command line calls

Note this isn't about command line flags, which already have a consensus here. There was a recent PHP answer involving multiple PHP files. Normally, programs with multiple files are either using one ...
6
votes
3answers
189 views

Is a regex answer valid if it gives the reciprocal of the required output? [duplicate]

This answer gives the reciprocal of the required output, rather than the required output itself. In a simpler challenge this might cut out a significant part of the work, but for this particular ...
2
votes
1answer
106 views

Existance of known score but unknown exact code

Consider the following the challenge: Write a program that accomplishes X task while maximizing the number of distinct characters in your source code. Removing any set of characters from the ...
1
vote
1answer
88 views

What is the community stance on posting a codegolf question just to answer it yourself?

Assuming the question would be considered a good question by the community, what is the community stance on creating a question with the sole purpose of eventually supplying a golfed solution? To ...
27
votes
11answers
1k views

Cast your vote for “Best of PPCG 2018”!

Final phase You have chosen the categories and the nominees for PPCG's annual “Best of”. Now it is time to pick the winners! Each of the fourteen categories is represented by an answer to this ...
4
votes
1answer
130 views

Are esolang design questions on topic?

Say I'm designing a new language for golf or some other esoteric purpose, and I'd like feedback on some design concepts. I feel posting this on SO, Programmers, CS, or pretty much any other site on SE ...
3
votes
0answers
61 views

Should “A Multipurpose Quine” be reopened?

A Multipurpose Quine This challenge was closed for the reason that it was unclear what the challenge was asking. The main reason was that the challenge required all outputted quines to not be ...
-1
votes
4answers
208 views

If there is “a winner for every language” in a code golf challenge, does competitiveness matter?

The consistent attitude with regard to the golf language situation is that for every challenge, each language is a category, and subsequently there is a 'winner' for each language. This is also a very ...
0
votes
0answers
121 views

How does the community work? [duplicate]

How does this Programming Puzzles & Code Golf work? Just curious because I don't really know what this is and I want to fined out...
20
votes
16answers
496 views

Best of PPCG 2018 — Call for Categories [duplicate]

Last year we voted for the best posts of 2017 and rewarded them with bounties and challenges. I think it's a great way to reward and draw attention to some of the best content the community has ...
14
votes
10answers
382 views

Community Promotion Ads — 2019

2019 is here! And with the new year, as usual, comes a new iteration of Community Promotion Ads! Let’s refresh these for the coming year :) What are Community Promotion Ads? Community Promotion Ads ...
-6
votes
1answer
198 views

You have reached your question limit

What? Have a question similar to Home on the Range of Lists. Why cannot this user ask the question? Does that mean that even if the question is posted at Sandbox and well-received that the question ...
12
votes
0answers
224 views

2018: a year in moderation

It's New Year's Day in Stack Exchange land... A distinguishing characteristic of these sites is how they are moderated: We designed the Stack Exchange network engine to be mostly self-regulating, ...
-7
votes
1answer
81 views

Change the use of the “Game” tag?

I was scrolling through the posts tagged with "Game" and noticed that it involved quite a few code golf competitions. Just for the sake of clarity and ease while searching, I believe that the ...
4
votes
1answer
252 views

Does linter golf require a specific interpreter to be a valid answer for golf?

If someone answers a code-golf challenge in, for example, JavaScript, and as an additional challenge restricts to only code that is approved by http://www.jslint.com/ that answer is valid if an ...
0
votes
2answers
194 views

If we find a programming language in the Library of Babel, can we use it?

The Library of Babel is a huge library with many books. For example, the book titled ",fkwpival.vbfz" defines code golf on page 29 code golf is a type of recreational computer programming ...
1
vote
1answer
122 views

I asked a word question that has run away with me?

Easiest WordSearch I've asked a crossword related question thats been on my mind for quite a while. I've made various edits from suggestions in the comments. I don't think I can adjust the question ...
7
votes
3answers
292 views

What should we do when a language cannot answer a given challenge?

Many challenges, mainly restricted-source, are impossible in some languages. Find an Illegal String is a good example—many languages without syntax errors, such as brainfuck (deleted answer), ...
22
votes
2answers
341 views

Is it permitted for a submission to terminate merely with probability 1?

The question is in the title. I'm interested in submissions that terminate with probability 1 but have unbounded worst case running times. This is related to the question Do programs have to ...
8
votes
1answer
197 views

Post other people's code?

Some people are very good code golfers but for their own reasons do not want to join PPCG. Is it acceptable to post their solutions as answers to challenges? If at all acceptable, I would personally ...
-4
votes
1answer
110 views

Can we use theoretically-impossible functions?

Title may be hard to understand, so an example: If a language claim to have a busy beaver function BB:unsigned int -> double, and works fine(always return ...
-7
votes
1answer
76 views

kolmogorov-complexity is not as a mathematics problem, score has to be inferior [closed]

kolmogorov-complexity problems are not like mathematics problems The way of see generate from the set of problems tag as kolmogorov-complexity is anti programming... one algorithm in mathematics (...
0
votes
3answers
96 views

Are infinite score allowed by default for “lowest score win”?

Are submissions acceptable if their worst case score is unbounded? I think it worth a default exist
-10
votes
1answer
132 views

Kindly explain why it is not impossible to read the minds of users who voted to close a question citing “unclear what you're asking”

The users who voted to close this question Fastest algorithm to output array containing all integers in range excluding duplicate digits have left no clarification as to what is not clear to them at ...
0
votes
1answer
76 views

It seems the consensus on Scratch is to use scratchblocks2 syntax, but what about “when green flag clicked”?

In many code-golf Scratch submissions, I see when green flag clicked used, when when gf clicked is also valid in scratchblocks2. ...