Activity for AndrewTheCodegolferâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #282816 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Loopholes Optimizing specifically for the given test cases Applies to "code-speeding" or fastest-code where your program must run as quickly as possible, as well as compression challenges. Obviously, there is a finite amount of cases because we have to measure speed/compression somehow. It's not in the s... (more) |
— | over 3 years ago |
Edit | Post #282815 |
Post edited: |
— | over 3 years ago |
Edit | Post #282815 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Loopholes Abusing native number types It's common to restrict inputs, outputs, intermediate algorithm values, etc. to fit into the native number type of the language. This can be a problem for languages like Boolfuck whose only integer type is the 1-bit integer. With a minimum of one bit of input and one... (more) |
— | over 3 years ago |
Edit | Post #282813 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O Regexes may output via the list of matched strings (capture group 0) (more) |
— | over 3 years ago |
Edit | Post #282812 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O Functions may return bools via the presence/absence of an error Crashing to mean `false` and not crashing to return `true`. Another branch of the exit code answer. (more) |
— | over 3 years ago |
Edit | Post #282794 |
Post edited: |
— | over 3 years ago |
Edit | Post #282811 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O Programs may take input from prompts from the GUI For Mathematica, JS, Matlab, et. al. this is the closest thing they have to STDIN. (more) |
— | over 3 years ago |
Edit | Post #282809 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Loopholes Using inconsistent I/O An example would be a program whose only two outputs given some input can be 2 and 11. The program is `print(11)`: claiming that it outputs in unary for some outputs and in decimal for others shouldn't be allowed even if output in either of these is allowed. (more) |
— | over 3 years ago |
Edit | Post #282791 |
Post edited: |
— | over 3 years ago |
Edit | Post #282791 |
Post edited: |
— | over 3 years ago |
Comment | Post #282797 |
It should be noted that Mathematica is technically free (as in beer) through Wolfram Notebooks. This doesn't fall under the "no unofficial circumvention" rule as Notebooks is provided officially by Wolfram. (more) |
— | over 3 years ago |
Edit | Post #282797 |
Post edited: |
— | over 3 years ago |
Edit | Post #282797 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Loopholes Using a non-free (beer) language on a cops-and-robbers challenge For a discussion on what counts as "free", see this post. Cops-and-robbers challenges have two components: a cop posts a program optimized to be as good as possible in some property and a robber tries to invalidate the program. An... (more) |
— | over 3 years ago |
Edit | Post #282796 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O Turing machines supporting multiple halt states may output with the state they halt on Similar to the exit code submission. (more) |
— | over 3 years ago |
Edit | Post #282795 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O Turing machines may use the contents of their tape pre-execution as their input (more) |
— | over 3 years ago |
Edit | Post #282794 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O In languages without STDIN (eg ///) programs may input through insertion into the source code Also applies to cellular automata, in which the most natural way of taking input is specifying some space for a user-created structure. (more) |
— | over 3 years ago |
Edit | Post #282792 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Code Golf I/O Programs may output via exit code Exit codes are to programs what return values are to functions, so it makes sense that exit codes would be allowed. (more) |
— | over 3 years ago |
Edit | Post #282791 | Initial revision | — | over 3 years ago |
Answer | — |
A: Default Rules: Loopholes Outsourcing the answer to unofficial conditions An example would be a program to print the Fibonacci numbers: instead of actually computing them, it queries an API and gives back its output. Another example would be a program that executes a program in another file instead of computing the Fibonac... (more) |
— | over 3 years ago |
Edit | Post #282460 |
Post edited: |
— | over 3 years ago |
Comment | Post #282506 |
They aren't permitted. (more) |
— | over 3 years ago |
Edit | Post #282506 |
Post edited: |
— | over 3 years ago |
Edit | Post #282506 | Initial revision | — | over 3 years ago |
Question | — |
A number adder, not a death adder Create a program P1 which takes as input a base 10 number N1 (the numbers for the variables are important). Given N1, P1 will print a program P2. P2 will take as input a base 10 number N2 and output N1+N2. P1 and P2 have to be in the same language. If your language doesn't have STDIN, for P1 an... (more) |
— | over 3 years ago |
Edit | Post #282421 |
Post edited: |
— | over 3 years ago |
Comment | Post #282421 |
The output may be literally whatever you want through whatever you want so long as the outputs are constant and different, the input has to go through STDIN unless your language doesn't have input, in which case you may use a function. (more) |
— | over 3 years ago |
Comment | Post #279147 |
This is one of the "the"s of the code-golf dictionary. It makes sense to have it. (more) |
— | over 3 years ago |
Edit | Post #282468 | Initial revision | — | over 3 years ago |
Answer | — |
A: "Hello, World!" ///, 13 bytes ``` Hello, World! ``` Someone had to. 18 bytes using replacement ``` /x/H/xello, World! ``` 23 bytes using two-layer replacement ``` /a/Hello, World!//b/a/b ``` `a` is replaced with `Hello, World!` in `/b/a/b`, creating `/b/Hello, World!/b` which prints `Hello, World!... (more) |
— | over 3 years ago |
Edit | Post #282460 |
Post edited: |
— | over 3 years ago |
Edit | Post #282460 | Initial revision | — | over 3 years ago |
Question | — |
Versatile self-printer Using your languages of choice, golf a quine - a non-empty program taking no input and only outputting its source. Here, the win condition is your quine working in the most languages. It should be a proper quine, although it can append newlines in a language that absolutely requires them. Only ... (more) |
— | over 3 years ago |
Edit | Post #282451 | Initial revision | — | over 3 years ago |
Answer | — |
A: Obligatory Quine Challenge h, 4 bytes ``` 1,-1 ``` Neither this program (by VilgotanL) nor the language (by Nerdaxe) are mine, but I think the latter is interesting and so I am submitting the former. Step-by-step guide: ``` Accumulator and index of the current cell start at 0 Acc -> (value of 0th cell)th cell - 0 -... (more) |
— | over 3 years ago |
Edit | Post #282428 |
Post edited: |
— | over 3 years ago |
Edit | Post #282439 |
Post edited: |
— | over 3 years ago |
Comment | Post #282439 |
Ah. I'll rewrite (more) |
— | over 3 years ago |
Comment | Post #282439 |
Not to appear rude or stupid although I might be both, but why'd that matter? (more) |
— | over 3 years ago |
Edit | Post #282439 |
Post edited: |
— | over 3 years ago |
- ← Previous
- 1
- 2
- 3
- Next →