HyperGolf

From Esolang
Jump to navigation Jump to search

HyperGolf is an idea for an esoteric programming language by User:DoggyDogWhirl.

HyperGolf would act like a golfing language, except that it would completely lack basic functions like addition in favor of needlessly complicated functions like hyperoperations. This would make it very bad at actually code golfing, though of course, that's what would make code golfing in it interesting.

Commands

A golfing language takes a lot of commands to be effective, so even a long list of ideas here might not be enough. This list is open to additions.

Number literals
Digit Actual value
0 0
1 i
2 √2
3 1000 (10³)
4 256
5
6 τ (2π, 6.28..)
7
8 Infinity
9 362880 (9!) or 2520

Some ideas that may be less useless but still odd:

  • UNTILs and UNLESSs rather than WHILEs and IFs
  • Indices of sorted list
  • List of all factors of a number
  • Fixed point operation
  • Convert integer to word form (17 -> "seventeen")