TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Tru – An Esoteric Language with Brackets

6 pointsby stockkidabout 4 years ago

2 comments

stockkidabout 4 years ago
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.<p>The following program prints &quot;Hello, world!&quot;<p><pre><code> (0)(10)(33)(100)(108)(114)(111)(119)(32)(44)(111)(108)(108)(101)(72)&gt;&gt;&lt;&lt;[&lt;&gt;&lt;&gt;&gt;&lt;&lt;&gt;&gt;&lt;&lt;]&gt;&gt;&gt;&lt;&lt; </code></pre> The following prints 25th Fibonacci number:<p><pre><code> (1)(25)(1)&gt;&lt;&gt;(1)(0)&gt;&lt;&gt;(1)&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;[(0)&gt;&lt;&gt;(1)&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;[&gt;&gt;&lt;&gt;(1)&gt;&lt;&gt;&gt;&gt;&lt;&lt;(0)&gt;&lt;&gt;&gt;&gt;&gt;&lt;&gt;(1)&gt;&lt;&gt;&lt;&lt;&lt;&gt;&gt;&lt;&gt;&gt;&gt;&gt;&lt;&gt;(0)&gt;&lt;&gt;&gt;&gt;&lt;&gt;(1)&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;](0)](1)&gt;&lt;&gt;&lt;&gt;&lt;&gt;&gt;&lt;&gt;&gt;&gt;&gt;&lt;&lt;</code></pre>
fjfaaseabout 4 years ago
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.