Linked Questions

10 votes
3 answers
666 views

Should non-standard compiler flags be included in character counts? [duplicate]

In some languages using a compiler flag might significantly shorten the source file, by making the compilation command longer. Should we make inclusion of the character count of the flag in the total ...
  • 2,904
4 votes
1 answer
358 views

How do we count compiler/interpreter flags? [duplicate]

It's accepted practice to include non-standard compiler or interpreter flags in a program's byte count (most often used with Perl and Ruby, to run the program in an implicit I/O loop - but there are ...
0 votes
2 answers
84 views

How do mandatory flags in new languages get counted [duplicate]

This is different then this I am writing a new code-golf language and am thinking about making two modes. One would be stack and other tacit. However you would have to specify what one you want to ...
  • 3,522
18 votes
1 answer
3k views

Command-line flags on front ends

Our standard policy regarding command-line flags states that one should count the space before the dash (-) too, when there aren't any "free" options, since it ...
12 votes
5 answers
437 views

Potential execution flag rule break

I am currently developing a golfing language for a specific type of task. I was hoping to use some command line flags for different options in the language. Since the language is intended to be a ...
  • 90k
20 votes
1 answer
541 views

General rules for custom languages and libraries

The rules for what languages and libraries are allowed on this site seem to be scattered all over the place. I'm looking for a simple check list to know if a custom language or a custom library is ...
  • 101
14 votes
3 answers
1k views

Counting bytes for multi-file programs

So far, submissions consisting of multiple files have simply been counted by summing up the scores of the individual files. Also file names aren't counted as long as they are arbitrary. (We do count ...
12 votes
2 answers
514 views

PHP and warnings

Sometimes when golfing in PHP, one uses tricks as reading/pushing to an inexistent variable, or using deprecated functions such as split(), but those things outputs ...
  • 436
14 votes
3 answers
697 views

A proposal on command line flags [duplicate]

I've been thinking about command line flags for a while, and I think that we should stop adding them to our byte counts. And instead consider different invocations to be different languages. Now ...
  • 90k
9 votes
5 answers
470 views

Can interpreter flags causing major language differences be considered different versions of the language?

I recently (this morning) extended Cubically to have an internal cube of variable size. The cube size is passed via a third interpreter flag (3 for a 3x3x3, ...
  • 13.3k
13 votes
1 answer
703 views

Is HTML/CSS a programming language?

CSS can simulate rule 110 and thus is turing complete. Thus HTML + CSS is considered a programming language for our definition. However, as user @TimmyD mentioned appropriately HTML+CSS is Turing-...
12 votes
2 answers
490 views

Is the PHP opening tag mandatory in byte count?

After answering the first time on PPCG on "Source code ecological footprint" I had a little discussion about it. I found it's OK if your program throws notices or warnings. But I couldn't find ...
53 votes
0 answers
2k views

How to count bytes FAQ

We've got a lot of questions asking how to count the bytes in different situations. This question is here to put them all in one spot. General questions How to count "interactive" answers ...
13 votes
3 answers
683 views

JavaScript Standards for IO

When it comes to JavaScript code-golf, there tends to be two schools of thought regarding IO (specifically printing). Some golfers will use functions such as alert,...
  • 3,224
4 votes
3 answers
363 views

How should we score compiler/interpreter build-time options?

Prompted by this comment. The scoring of optional flags passed to compilers/interpreters has already been handled here and here. However there is another case of one more level of indirection. ...
7 votes
1 answer
239 views

Bytes for changing a configuration file before running a program?

In this answer using Python's turtle module, I discovered that some default settings for the turtles are set in a configuration file called ...
  • 23k
7 votes
2 answers
437 views

Interpreter flags for controlling output: considered cheating?

I'm creating a programming language aimed at code golf puzzles. The language has an internal set of tapes, where the computations are saved and then retrieved to the user. At the end of the program, ...
3 votes
1 answer
230 views

Shebangs; yes or no?

It's only ~20 chars but in code golf, they all count. I guess whether shebangs should be included could be up to the individual question askers, but I think we need some kind of convention. ...
  • 251
1 vote
0 answers
125 views

Is the interpreter part of the language or a separate language?

As I understand it, for our purposes a language is more or less defined by its implementation. That's one of the reasons why a program like Vim can also be "language". You just count keystrokes ...
  • 241
1 vote
1 answer
130 views

Why should Brain-Flak pay for input when Python doesn't have to?

Currently if you wish to take input as a string in Brain-Flak you are going to need the -A flag. This looks like: ...
  • 90k