Questions tagged [compile-time]

For challenges involving doing something at compile-time, rather than run-time. This means that only compiled languages can compete.

Filter by
Sorted by
Tagged with
431 votes
23 answers
149k views

Build a Compiler Bomb

Introduction You're probably familiar with zip bombs, XML bombs, etc. Put simply, they are (relatively) small files which produce enormous output when interpreted by naïve software. The challenge ...
Dave's user avatar
  • 8,469
46 votes
26 answers
8k views

Crash your favorite compiler [closed]

Write a perfectly legal code in a decent language of your choice whose compiling will either crash the compiler or send it into an infinite loop (infinite compile time). Restrictions: Use a standard ...
Petr's user avatar
  • 4,372
10 votes
3 answers
633 views

Interpreted arithmetic

A little known fact is that if you turn on enough language extensions (ghc) Haskell becomes a dynamically typed interpreted language! For example the following program implements addition. ...
Wheat Wizard's user avatar
  • 98.4k