Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Golf

Questions tagged [compile-time]

Ask Question

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

13 questions
Filter by
Sorted by
Tagged with
9votes
5answers
933views

Peano numbers represent nonnegative integers as zero or successors of other Peano numbers. For example, 1 would be represented asSucc(Zero) and 3 would be ...
user's user avatar
  • 457
27votes
1answer
2kviews

We've had lots of questions about quines, programs where the source code and output are identical. For compiled languages, there are other combinations: we've already had a question about writing a ...
10votes
3answers
708views

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....
-4votes
8answers
805views

Warning: This challenge is only valid for languages with a compiler.Make a program (which is perfectly valid code) that outputsHello, World, even before runtime....
156votes
30answers
20kviews

I'm a developer, and I don't feel like doing my work. I know from XKCD that the best excuse for slacking off is that your code's compiling. Because of this, I think I need some code that will compile ...
Esolanging Fruit's user avatar
1vote
4answers
841views

Question: can you design a Builder Pattern API which verifies at compile time that every field is set exactly once?To be eligible, the size of the compiler output should not be exponential in the ...
OlivierBlanvillain's user avatar
438votes
26answers
152kviews

IntroductionYou'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,569
52votes
8answers
7kviews

It seems that simple changes to a C++ file, especially with templates, can generate pages of errors. This contest is to see what the largest "bang of the buck" is, that is the more verbose error ...
20votes
6answers
2kviews

Create short source code in your favourite compiled language that compiles into a big (not less than 104857600 bytes) executable file. The program must be runnable (assuming 1GB of free memory) and ...
Vi.'s user avatar
  • 2,727
2votes
1answer
589views

This, but via template metaprogramming:template <int n> struct insanity { int[][n] permutations; }Generate all numbers with n digits (0-9) such that each ...
Narfanator's user avatar
45votes
26answers
8kviews

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
17votes
8answers
11kviews

The reference implementation of CRC32 computes a lookup table at runtime:...
fredoverflow's user avatar
41votes
5answers
9kviews

Can you solve the eight queens puzzle at compile-time?Pick any suitable output format.I'm particularly interested in a C++ template metaprogramming solution, but you can use languages that have ...
R. Martinho Fernandes's user avatar

Welcome to Code Golf and Coding Challenges Stack Exchange! This is a site for recreational programming competitions, not general programming questions. Challenges must havean objective scoring criterion, and it is highly recommended to first post proposed challenges in theSandbox.

Hot Network Questions

more hot questions
Newest compile-time questions feed

[8]ページ先頭

©2009-2025 Movatter.jp