Questions tagged [scoring]

For questions about scoring a challenge or how to score a particular language

Filter by
Sorted by
Tagged with
59
votes
11answers
3k views

Leaderboard Snippet

I've been using a stack snippet for a while to generate leaderboards for my simpler or more popular code golf challenges. I want to share the code for this snippet here so others can use it more ...
52
votes
0answers
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 ...
9
votes
6answers
862 views

Fair size comparison across languages with different source alphabets

For fair comparison of codegolf solutions in languages with different source alphabets, there should be a common unit of information. Most sizes here are expressed in "characters" or "bytes", but not ...
33
votes
8answers
5k views

Programming in Minecraft (Redstone) - how to measure program size?

Since programs may be created in vanilla (un-modded) Minecraft using redstone to create logic gates (and more), someone could create such a program for a challenge on this site. How would such an ...
10
votes
1answer
538 views

On scoring imported functions

There are lots of questions about whether to count the bytes in an import statement, etc. This question is not about that. Instead, this question is more inline with this question but I think it would ...
10
votes
3answers
533 views

How to determine the length of a Piet program?

I noticed that Piet is not mentioned in the How to count bytes FAQ. How should we determine the length of a piet program?
19
votes
1answer
707 views

Running PHP with `-r` instead of code tags

Based on this manual, there is a -r option that allows you to run PHP code on the command line without specifying the code tags, ...
6
votes
1answer
787 views

How to count bytes in 7 (and other languages that use fractional numbers of bytes)

(See also this question, which is similar, but talks about the situation where the language is normally stored on disk with one command per byte.) This question originally came up in connection with ...
2
votes
2answers
145 views

Do I need to use imports or can I call a class explicity?

New to code golf and tried finding an answer to this question but couldn't (surprisingly) When scoring my golfed Java code I was told that I need to add in my imports as part of my score. My question ...
19
votes
2answers
326 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 ...
9
votes
1answer
381 views

Are languages targeting FPGAs or other non-standard/non-sequential computing platforms acceptable?

So far, almost all submissions on this site are ones that target "standard" computers, namely devices that execute code in a typically linear fashion, with a standard variety of inputs/outputs (...
3
votes
2answers
279 views

How should the length of a Commodore 64 BASIC program be measured?

Commodore 64 BASIC has abbreviated forms for most of its keywords, ranging from ? being short for PRINT (common across many ...
25
votes
2answers
2k views

Programming in LabVIEW - how to measure program size?

Inspired by this question, how would a LabVIEW program be scored? As one of the only graphical languages in common use today, LabVIEW is a bit of an outsider. As odd as it is, LabVIEW is a serious ...
13
votes
2answers
550 views

Byte count for imports (or other things) not needed for definition, but for execution

When we define a function that needs an import, we have to add it to the byte count. So far, so good. What about cases where the definition itself doesn't need the ...
4
votes
3answers
357 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. ...
14
votes
3answers
674 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 ...
12
votes
2answers
396 views

There's a new graphical language- how to score it?

It was pointed out on chat- and I agree- that scoring Golfical programs as 1 byte per pixel (as has been done with other graphical languages) would probably not be entirely fair. Therefore, let's ...
11
votes
1answer
320 views

Is a transliteration tool enough to grant count as SBCS?

Prompted by this. I'll speak about Dyalog APL here, but this could really apply to any language. Background Dyalog APL has its own SBCS called ⎕AV. For backwards ...
9
votes
1answer
374 views

Scoring Java lambdas with imports [duplicate]

In this answer, I used a java.util.List as a parameter to an anonymous function (lambda) answer. So, my question is, Should this import be counted to the byte ...
8
votes
1answer
248 views

Scoring mandatory but varying command-line arguments [duplicate]

I made a language (and its not based on Brain-flak for once!). My language, Klein requires that you specify a topological surface in which the program is embedded. Currently this means passing 3 ...
7
votes
2answers
229 views

Definition of a Function in Concatenative Languages

Concatenative languages are languages where juxtaposition of functions represents composition. Programs consist of the primitives in the language combining to form a large function which takes program ...
5
votes
2answers
502 views

Scoring Algodoo and other physics sims with logic capability

Although physics simulator Algodoo has been used it to construct questions here, I just used it for a joke answer. For more involved answers, how would you score code length for something like a ...
4
votes
1answer
349 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 ...
-3
votes
1answer
137 views

How should I score my new language?

Disclaimer: a symbol is in this post. This is not a swastika, this is a religious Hindu symbol. I apologise in advance if I cause any offence I am currently ...
14
votes
1answer
422 views

On using multiple languages for a singular code golf submission

I was wondering if it were possible to use multiple languages in the same submission. Not a polyglot, but using each of the languages. I have two thoughts on this. One language invokes the other. Let'...
12
votes
5answers
431 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 ...
11
votes
5answers
461 views

How to count languages?

A common problem for rosetta-stone and polyglot challenges (and some code-challenges) is to decide when two different languages/dialects are different enough to be counted separately. Common ...
5
votes
1answer
293 views

Measuring Sticky Tape in Bytes

This answer: https://codegolf.stackexchange.com/a/107882/64538 received a comment which reads: Hello, and welcome to PPCG! I don't know if tape is valid, but it should at least be 1 byte. Is this ...
13
votes
2answers
396 views

How to count programs in Folders?

Folders is an esoteric programming language without any files at all. Instead, the program is represented by the directory structure instead, so our normal rules for counting the file size of the ...
11
votes
5answers
223 views

Should locale be explicitly specified?

Triggered by this comment. Some code-golf answers assume a specific locale. For example this answer assumes a locale of en_US.UTF-8. If the default locale on a ...
10
votes
2answers
291 views

How to count bytes in languages with autoformatters [duplicate]

In QBasic, VBA, AppleScript, etc., there is an autoformatter that adds spaces and expands some syntactic sugar. For example, if I type this code: ?x*2 QBasic ...
8
votes
3answers
389 views

What is the best way to actually time an answer for fastest-code challenges

Is there a "best" way to do this? I imagine one could write a bash script that would print the time, execute the program, and then print the time again, but perhaps there are pitfalls with this. Is ...
8
votes
1answer
195 views

Scoring Desmos equations

The Desmos graphing calculator, commonly referred to as just Desmos1, has been used for a number of answers, by me as well as others. However, scoring (as well as I/O, but that's for another post) ...
7
votes
1answer
232 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 ...
5
votes
1answer
247 views

On byte count and language preprocessing [duplicate]

Related: Fair size comparison across languages with different source alphabets Scoring non-ASCII languages in code-golf has been long-debated. Since I primarily uses APL for code golf, I have seen ...
3
votes
2answers
565 views

Jelly- can we really score it by character count? [duplicate]

Jelly is one of those languages that doesn't use ANSI text in its code. Why should we score Jelly by its character count when each character can take up to 4 bytes? For example, take this answer (...
2
votes
1answer
529 views

How to compile/score answers in .NET languages, specifically VB.NET

I recently submitted an answer to a code-golf question in VB.NET, and one comment pointed out that I could omit two System. statements from the code, because it ...
2
votes
2answers
205 views

Scoring PHP GET Parameters

With PHP, GET parameters may be specified as command-line arguments, which is a valid form of input by our rules. However, they must be passed in the form ...
2
votes
1answer
460 views

Score Brainfuck as 0.5 bytes per char (because it only uses 8 characters)? [duplicate]

I think that Brainfuck and many other esoteric languages almost never win code-golf, because they take many characters to express things. So, overall, Brainfuck programs are longer in bytes, because ...
2
votes
5answers
305 views

How to score Box-256 answers

Since asking what I believe is the first Box-256 based question on Code Golf (Box-256 Assembly - BIG SQUARE II) there has been some confusion with regards to scoring. I'd like this question to be a ...
0
votes
0answers
80 views

Scoring tables in Desmos

There is not a way to copy-paste tables in Desmos & one of my golfs require a table. How should we score tables?
0
votes
0answers
67 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 ...
-3
votes
2answers
204 views

How do we count bytes in BBC micro:bit languages? [duplicate]

BBC micro:bit is a piece of hardware wich allows to to run code, such as Python or Javascript, that is custom made for the micro:bit chip. However, it in itself is not a programming language. Instead,...