Questions tagged [scoring]

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

Filter by
Sorted by
Tagged with
3
votes
3answers
82 views

What is our consensus for fractional byte functions?

In a discussion about SBCSs and other code pages, fractional byte counts were briefly brought up. I brought up our consensus that fractional byte programs are disallowed, and it was pointed out that ...
4
votes
3answers
107 views

Online tool to determine number of bytes for UTF-8 characters?

Is there an online tool that will tell me the number of bytes in a UTF-8 character? Or, if not, how do I determine this? I'm currently trying to determine the number of the bytes for the left and ...
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?
1
vote
1answer
100 views

What to count in assembly?

Yes, I've checked this post (How are bytes counted in assembly), but I'm asking a different question. I'm asking, if I have an .asm file, an ...
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
2answers
493 views

How should I count bytes with SQL?

First of all I want to mention that I use declarative set-based approach. So most (if no every) of my answer will be one statement without procedural part(user-defined functions, loops, control flow ...
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 ...
5
votes
1answer
392 views

Zsh: Functions and Math functions

I have been using functions for Zsh submissions for some time. I typically submit the body alone, as the body can be run as a full program with no modification: ...
3
votes
1answer
179 views

Should a command line argument for increasing memory limits count towards byte/character count?

Most Java interpreters have a predefined memory limit. However, it's a -X setting - an implementation specific setting. With C, the call stack is usually heavily ...
1
vote
1answer
132 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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
1answer
59 views

How to score MathNode? [duplicate]

MathNode is a graphical language made by myself with an interpreter currently not publicized, so I'm asking this ahead of time. In MathNode, surprise surprise! You have nodes. These nodes can be ...
1
vote
1answer
59 views

Judging the score of physically constructed electronic logic

How would physically constructed logic be scored? Say, for example, a mixture of resistors, diodes, wires, and 74xx/4000 type ICs. Handmade logic fits the "programming language" criteria, as using ...
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 ...
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 ...
2
votes
2answers
206 views

What exactly is a "byte" here?

Possibly relevant. So I was looking at this answer and was amazed by the compactness and unreadability, when I suddenly thought: "That are an awful lot of non standard characters!" So I get that ...
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
0answers
172 views

Tag / challenge type proposal: Size coding [duplicate]

This question and proposal is different from this one, since this proposal includes a scoring mechanism that is vastly different from code-golf. What is size coding? Size coding as a form of ...
0
votes
3answers
129 views

Scoring that rewards useability

In my dream world, I would rather have code challenges generate a code that's actually useful in the real world, a code that makes its way to be an idiom, to be used in real world projects, and put in ...
3
votes
0answers
80 views

List of Good Numeric Scoring Systems

I suggest that we should have a list of scoring functions. When there is only one variable in the score for example: Length of submission (code-golf) Portion of test cases passed (test-battery) ...
-1
votes
1answer
75 views

Requiring an objectly array in JavaScript

Consider an example challenge: Given a number b and an array a, output the bth element of ...
2
votes
1answer
124 views

Rust Golfing Crates

So, i have started creating a golfing library for Rust, as i saw some questions about it here, with some pretty good response. The usual requirement, was usually including the include statement in the ...
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 ...
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 ...
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 ...
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 ...
0
votes
0answers
77 views

Can I create own language and count multibyte characters as single bytes? [duplicate]

So, I'm creating a language using UTF-8 characters. It is a functional language, but I decided to create a golfing version of it. The problem is that the golfed functions use multibyte characters, so ...
3
votes
1answer
181 views

How should a full program in R be invoked?

Related to the discussion in this post. There are multiple ways of executing an R-file. Each of these methods have either challenges in input or output. Which are acceptable to count as "Full program"...
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 ...
10
votes
3answers
510 views

Byte count for named, recursive lambda expressions in C# answers

I have been questioned about the byte count in my C# answer for the The Snail in the Well challenge. Usually C# answers only need to count the following bytes: ...
0
votes
0answers
54 views

How should we score programs in languages that tokenize instructions? [duplicate]

I feel like this should be said, because many answers have been made in TI-BASIC, Applesoft BASIC, and other languages that tokenize instructions. How exactly should they be scored? Should we score ...
2
votes
1answer
91 views

Byte count for programs in visual languages

for code golf challenges, how would bytes be counted for visual programming/patcher languages like puredata? I thought maybe a system based on the language's saved file size for a patch, but that ...
-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,...
0
votes
1answer
76 views

Can a language containing very few characters be mapped to only several bits to reduce byte counts? [duplicate]

For example, could I invent a language that contained only two characters (for example 1, and 0) and use it to answer a question (assuming it fulfilled all the necessary site criteria), and then score ...
0
votes
0answers
49 views

What should be done when there are joint winners? [duplicate]

On the question How long is my number: Restricted Version, there are multiple answers which are 1 byte long? How should judge which answer to give the green check to?
-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 ...
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 ...
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 ...
0
votes
2answers
83 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 ...
1
vote
1answer
83 views

Language util name byte counting

I'm trying to figure out how the byte counting works in "Sum the numbers on standard in". In one answer using the jq util counts the non-space bytes after the util ...
3
votes
0answers
51 views

Answer-Chaining Tree/Leaderboard Snippet

This thread is devoted to the development of an answer-chaining stack snippet, which was originally used in Evolution of OEIS. By making this snippet available here (following this meta guideline), ...
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
388 views

How do we score turing complete cellular automata (GoL, Wireworld, etc)

Here is a checkbox I made in wireworld, for the "Create a checkbox!" question. The problem is, we don't have a way to score answers like these. Do we score these by pixels, like piet did, or ...
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 ...
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 ...
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 (...