Questions tagged [scoring]
For questions about scoring a challenge or how to score a particular language
88
questions
7
votes
0
answers
196
views
A clarification on Vyncode [closed]
This was prompted by the recent meta post about byte compression in scores, as well as other bits of confusion and uncertainty I've seen on the site.
If you've been around on the main site in the last ...
-3
votes
3
answers
171
views
Byte compression in scores
I am asking this because Vyxal, and mainly Vyxal has a compression algorithm to shave bytes off. I think of this as a bit unfair, so I would like to propose the following:
If a programming language ...
1
vote
1
answer
114
views
What counts towards the byte count in a code golf answer?
I use Racket as my primary programming language and have been having fun the past week solving challenges using it. I came across a few answers from other programming languages that use TIO's header ...
1
vote
1
answer
63
views
Size in DB ?for opcode submission
If an opcode solution uses but doesn't rely on value of somewhere
At the beginning/end of program
In the middle of program
, then do these count as program size?
Example where placed at end:
...
1
vote
4
answers
152
views
Desmos Active Sliders
The Desmos Graphing Calculator, or Desmos, has sliders, which can run, animating a graph.
Also, they can have multiple animation modes: (default) loop forwards an backwards, repeat in one direction, ...
12
votes
5
answers
408
views
Allow answers to be scored in things other than bytes to stop the log byte madness
On January 4th, 2022, it was decided we would allow scoring in fractional bytes. A decision I mostly agree with. Just to recap, the main reason this is beneficial for the site is:
It allows comparing ...
7
votes
0
answers
201
views
Does the initial `:` in a TI-BASIC program count?
According to this meta post, TI-BASIC is scored in tokens rather than characters, to more accurately reflect the byte count in-memory.
On my graphing calculator (TI-84 Plus C Silver Edition), the ...
3
votes
1
answer
85
views
Is byte count on TIO valid, specifically for non-ASCII C code?
When I have non-ASCII characters in my C code, TIO counts them as 1 byte.
For example, the following C program prints 56 music-related characters on the terminal.
Link
TIO reports its length as "...
2
votes
2
answers
76
views
Byte counting for BASIC style DATA / READ inputs
Background
Many BASIC dialects idiomatically use DATA and READ commands to store and read input data from the source code. We ...
6
votes
1
answer
200
views
How should taking in string input be scored in GeoGebra?
I have recently started to use GeoGebra for some code golf challenges involving strings, and have come across a conundrum which I want to ask the meta about, and prompts the more general question of ...
19
votes
1
answer
208
views
Tag proposal: [self-scoring]
I'd like to propose self-scoring or a similar tag, but I'd like to get some feedback on whether this is useful and how the tag might work.
First the proposal:
self-scoring is a scoring criterion ...
15
votes
4
answers
1k
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
3
answers
316
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 ...
1
vote
1
answer
131
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 ...
11
votes
1
answer
402
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) ...
5
votes
1
answer
635
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: ...
1
vote
1
answer
140
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. ...
0
votes
1
answer
62
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
1
answer
62
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 ...
7
votes
2
answers
253
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 ...
2
votes
2
answers
275
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 ...
0
votes
3
answers
138
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
0
answers
89
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
1
answer
76
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
1
answer
151
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
1
answer
361
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
1
answer
298
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 ...
15
votes
3
answers
742
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 ...
0
votes
0
answers
82
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 ...
4
votes
1
answer
193
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"...
10
votes
3
answers
541
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
0
answers
56
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
1
answer
95
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
2
answers
230
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
1
answer
78
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
0
answers
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?
8
votes
1
answer
256
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 ...
-3
votes
1
answer
142
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 ...
12
votes
5
answers
441
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 ...
1
vote
1
answer
85
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
0
answers
52
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), ...
0
votes
2
answers
86
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
votes
2
answers
356
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 ...
12
votes
5
answers
420
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 ...
12
votes
3
answers
704
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?
8
votes
1
answer
995
views
How to count bytes in 7 (and other languages that use fractional numbers of bytes) [duplicate]
(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
1
answer
185
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 ...
5
votes
2
answers
635
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 ...
1
vote
1
answer
89
views
How to answer a Code Golf Puzzle [duplicate]
In some languages such as PHP you need to add these <?php ?> before you can start to program in PHP. And in C++ too. ...
10
votes
2
answers
317
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 ...