We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
SecretLang
SecretLang is another programming language designed by User:PSTF inspired by Guess.
2.0 version is coming: SecretLang 2.0
How Will It Work
First, I'll provide the programs. After I finish writing 7 programs, I guess the guessing channel will be opened, and then any user can come in to guess the meaning of each command for each character. Then, when a user makes a guess, I will give the result of their guess. If the user guesses a command wrong three times in a row, I will show the correct usage of that command.
Illegal Things
- Tampering with existing programs
- Tampering with other users' guesses
- Adding content that belongs neither to the program nor to guesses
- Adding a lot of meaningless content
- Deleting a large amount of content
- Making guesses before the guess channel is open
Programs
1. Hello, World!
⎕ <- "Hello, World!"
1-1. Hello, World! but Error
⌺ <- "Hello, World!"
Output:
Hello, World!
Output place: STDERR
2. Cat Program
⟳(1) {⎕ <- ⌨}
3. Sgn Machine
\x#int; x <- ⌨; ?(x > 0){⎕ <- 1}:?(x < 0){⎕ <- -1}:!{⟳ (1) {⎕ <- 0}}
Explanation: Take an integer. If it’s positive, output 1; if it’s negative, output -1; if it’s 0, endlessly output 0.
4. Collatz sequence
\x#int; x <- ⌨; ⟳(x ≠ 1) {?(x mod 2 = 0){x <- x ÷ 2; ⎕ <- x}:!{x <- x × 3 + 1; ⎕ <- x}} ⎕ <- "All Done!"
Input:
12
Output:
6 3 10 5 16 8 4 2 1 All Done!
5. Quine
⎕ <- ⎙
6. Fibonacci Function
\fibonacci <- λ.[x#int]{
?(x ≤ 1){⌸(1)}
:!{⌸(fibonacci(x - 1))}
}
fibonacci(⌨)
7. Average Number
\x#float; \m <- ⌨;
§({i|i∈[0, m)}){x <- x + ⌨}
⎕ <- x ÷ m
8. Raise an Error
⨋ <- 【UnknownError, "Something just happened."】
Hint: The capital Sigma stands for "sphalma" (Error in Greek).
Guessing Area
AVALIABLE NOW! GO TO TALKING PAGE AND MAKE YOUR GUESS!
See Also
Guess, Mystery, Guessing, and User guessed