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: Smile - executable ASCII art (2011 remastered)

25 pointsby pickledcodsover 4 years ago

2 comments

pickledcodsover 4 years ago
Hi HN!<p>When ASCII art is the executable....<p>Executables consisting exclusively of alpha-numeric characters. The digits &quot;0123456789&quot; are used for dark, the letters &quot;acemnorsuvwxz&quot; for light.<p>Removing instructions that are not alpha-numerical, strips functionality down to the minimum:<p><pre><code> - 4.5 of the 7 registers available (%bx, %si, %di, %bp, %ah) - 4 of the ~80 instructions groups available (XOR,IMUL,CMP,Jcc) - constant values start from 48, (only range 0x30-0x39,0x61-0x79) </code></pre> By cosmic coincidence, the 2 instructions needed to jailbreak are available. On top of that, self-modifying code and radix13 encoding.<p>This should have been released a decade ago. As compensation, it has been remastered. The reward was making it 30% smaller.
jstriebover 4 years ago
This is cool! It reminds me of a paper I read in 2017 in which the author creates a C89 compiler that compiles to printable ASCII by using similarly limited instructions.<p><a href="http:&#x2F;&#x2F;tom7.org&#x2F;abc&#x2F;" rel="nofollow">http:&#x2F;&#x2F;tom7.org&#x2F;abc&#x2F;</a>
评论 #26127268 未加载