Show HN: Tru – An Esoteric Language with Brackets

by stockkidon 2/24/2021, 9:26 AMwith 2 comments

by stockkidon 2/24/2021, 9:28 AM

Hi everyone, I wanted to share a language I made that only uses a series of bracket characters. All operations are prefix-free, meaning one can follow another without ambiguity.

The following program prints "Hello, world!"

  (0)(10)(33)(100)(108)(114)(111)(119)(32)(44)(111)(108)(108)(101)(72)>><<[<><>><<>><<]>>><<
The following prints 25th Fibonacci number:

  (1)(25)(1)><>(1)(0)><>(1)>>>>>><<[(0)><>(1)>>>>>><<[>><>(1)><>>><<(0)><>>>><>(1)><><<<>><>>>><>(0)><>>><>(1)>>>>>><<](0)](1)><><><>><>>>><<

by fjfaaseon 2/24/2021, 9:42 AM

I think we should not confuse obfuscation with esoteric. To add some more obfuscation use nested round brackets to indicate the numbers, so () = 0, (()) = 1, ((())) = 2, and so on.