Questions tagged [compiler]
Tasks involving writing compilers for various languages or formalisms.
19 questions
1
vote
1
answer
149
views
Tips for making a compiler that generates a golfed program
I would like to create a language that is specifically designed for compiling/translating to another Turing tarpit language. I want to make the program of the target language to be as short as ...
10
votes
4
answers
2k
views
Build an optimizing Brainfuck compiler/interpreter
the goal
Build an optimizing Brainfuck implementation. Whether it is a compiler, an interpreter, a JIT compiler, or whatever else is up to you.
scoring
A reference implementation (...
15
votes
9
answers
1k
views
Inject arbitrary code into a compiler (cops)
This is the cops' challenge. To post a robber, go here.
In this challenge, cops will invent a (likely simple) programming language, and write an interpreter, transpiler, or compiler that allows you to ...
10
votes
1
answer
363
views
CDGLF: TMN to APL
In this challenge you will remove one of my least favorite features, operator precedence from traditional math notation, to acheive the syntax of one of my favorite languages, APL. The APL subset we ...
12
votes
1
answer
436
views
Self-displaying image [closed]
Background
There are self-extracting .ZIP files. Typically they have the extension .EXE (and by executing the file they will be ...
26
votes
5
answers
2k
views
Same code different characters
Note: This challenge only allows answers in compiled languages
Task
Your task is pretty simple, make two different programs that when compiled result in the same output.
Scoring
Here is where the ...
3
votes
0
answers
276
views
λ-calculus to js arrow notation transpiler [closed]
Not an interpreter. Arguably a compiler. But I'm talking about a transpiler.
It can be in any language, but it must return js-valid arrow notation code.
The λ-calculus string would be passed as an ...
9
votes
1
answer
214
views
Quiz Program Compiler
A fun programming exercise is to write a program that quizzes the user from a set list of questions and answers. However, this task goes a level beyond that.
Your task
Write a program/func/etc. that ...
17
votes
13
answers
2k
views
Create a FizzBuzz compiler
Welcome to the world of compiler golf. Your task is to write a program that generates another program to play a variant of FizzBuzz on spec.
Your compiler
Write a compiler that generates variants of ...
38
votes
7
answers
4k
views
Self-compiling compiler [closed]
This is based on a talk on compilers I listened to a while back, but I, unfortunately, can't remember when or where.
Create the shortest compiler in any language that can compile itself. Target any ...