Skip to main content

Questions tagged [compiler]

Tasks involving writing compilers for various languages or formalisms.

Filter by
Sorted by
Tagged with
1 vote
1 answer
149 views

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 ...
Fmbalbuena's user avatar
  • 5,085
10 votes
4 answers
2k views

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 (...
xiver77's user avatar
  • 2,395
15 votes
9 answers
1k views

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 ...
rydwolf's user avatar
  • 19.3k
10 votes
1 answer
363 views

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 ...
Wezl's user avatar
  • 1,496
12 votes
1 answer
436 views

Background There are self-extracting .ZIP files. Typically they have the extension .EXE (and by executing the file they will be ...
Martin Rosenau's user avatar
26 votes
5 answers
2k views

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 ...
Wheat Wizard's user avatar
  • 103k
3 votes
0 answers
276 views

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 ...
towc's user avatar
  • 344
9 votes
1 answer
214 views

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 ...
Maltysen's user avatar
  • 25.8k
17 votes
13 answers
2k views

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 ...
billpg's user avatar
  • 2,045
38 votes
7 answers
4k views

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 ...
Hoa Long Tam's user avatar
  • 2,142