TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Micro LZMA decoder (x86 assembly code golf)

56 点作者 jpegqs将近 3 年前

4 条评论

ManDeJan将近 3 年前
Cool! I like tiny encoders. I teach assembly programming at a university where one of the final assignments in the course is making a decoder for something similar to LZ77 in Cortex M3 (thumb 2) assembly. Best I could do is 15 instructions &#x2F; 40 bytes found here: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;ManDeJan&#x2F;fd1c625e3540faa41d03736eb94510ec" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;ManDeJan&#x2F;fd1c625e3540faa41d03736eb94...</a> .
评论 #31651934 未加载
jansan将近 3 年前
I love these tiny decoders, even if their use cases are limited. To me this is as much art as it is programming.<p>For Javascript I ran into these two recently:<p>Tiny LZW(ish) encoder&#x2F;decoder. The decoder is 141 bytes: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;mr5z&#x2F;d3b653ae9b82bb8c4c2501a06f3931c6" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;mr5z&#x2F;d3b653ae9b82bb8c4c2501a06f3931c...</a><p>RegPack, a non-standard encoding, but an awesome approach for small chunks (1-4KByte is optimal) of self contained compressed code, using regular expressions for decoding: <a href="https:&#x2F;&#x2F;github.com&#x2F;Siorki&#x2F;RegPack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Siorki&#x2F;RegPack</a>
评论 #31651515 未加载
deater将近 3 年前
You can also find size-optimized LZSS decoders in 30+ different assembly languages here: <a href="http:&#x2F;&#x2F;www.deater.net&#x2F;weave&#x2F;vmwprod&#x2F;asm&#x2F;ll&#x2F;ll.html" rel="nofollow">http:&#x2F;&#x2F;www.deater.net&#x2F;weave&#x2F;vmwprod&#x2F;asm&#x2F;ll&#x2F;ll.html</a>
abainbridge将近 3 年前
I wonder how this compares to the one in UPX.
评论 #31654633 未加载