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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Linux running inside a PDF file via a RISC-V emulator

183 点作者 shantara3 个月前

16 条评论

transfire3 个月前
That’s just wrong.<p>It’s no wonder we have endless security issues when documents that should be just data and metadata (layout) declarations are Turing complete. Sigh.
teruakohatu3 个月前
When the last Tetris PDF was on the HN homepage I looked into ways of disabling JS in PDFs but was unable to find anyway other than disabling JS for the entire browser. I tried messing about with uBlock filters but to no avail. Does anyone know if this can be achieved?
评论 #42896175 未加载
xarope3 个月前
<p><pre><code> on one hand: applauds ingenuity on other hand: gapes at major security hole in PDF, wonders why this is defacto document type in industry for reading</code></pre>
评论 #43090896 未加载
IgorPartola3 个月前
So you can run a PDF reader inside it to display a PDF? Honestly I am a little worried someone will come up with some sort of smart DRM based on this.<p>In seriousness, it’s impressive and highlights how awful the PDF format is. Can we have a document format that is less encumbered, more structured, and more accepted as a “real” document yet?
AMICABoard3 个月前
Damn Good stuff, bot the doom and this linux of your! Kudos.<p>I had done LLM in PDF sometime Nov last year but it wasn&#x27;t released. Since the doom in pdf uptick, I had released a demo here:<p><a href="https:&#x2F;&#x2F;x.com&#x2F;VulcanIgnis&#x2F;status&#x2F;1879649889178837025" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;VulcanIgnis&#x2F;status&#x2F;1879649889178837025</a><p>Actually you don&#x27;t need an old version of emscripten, hit me up for the Makefile and pdf templates or wait till offical release. My build script will make the pdf work both on chrome and firefox, adobe support is pending.
cedws3 个月前
This is kind of what NSO Group’s Pegasus did to break out of iPhone sandboxing. They exploited a codec to bootstrap a virtual machine with a custom instruction set.
评论 #42960604 未加载
ks20483 个月前
Wow. I guess it was just a matter of time after seeing the Doom and Tetris PDFs.<p>FYI, the PDF is 6.2 MB.
评论 #42894332 未加载
hcarvalhoalves3 个月前
You people really managed to sprinkle JS everywhere, even on PDF. Shame on you.
评论 #42894617 未加载
sedatk3 个月前
On Edge (Chromium), I get this error message instead:<p><pre><code> An embedded page at linux.doompdf.dev says TypeError: Cannot set properties of null (setting &#x27;value&#x27;) at Object.0.9657115108887302 (&lt;anonymous&gt;:248:42) at set_interval_callback (&lt;anonymous&gt;:43:24) at &lt;anonymous&gt;:1:6</code></pre>
评论 #42894587 未加载
humptybumpty3 个月前
Kernel boot message:<p>”This architecture does not have memory protection”<p>—_—
dang3 个月前
Recent and related:<p><i>Show HN: Doom (1993) in a PDF</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42678754">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42678754</a> - Jan 2025 (74 comments)
b1n3 个月前
I&#x27;ve invented a replacement for the PDF format.<p>It&#x27;s called Locked Markdown. `*.lmd`.<p>It provides 98% of the functionality most people use PDFs for, without all the extra bullshit.<p>The Spec:<p>- The most popular Markdown Spec (git flavour?)<p>- At the top of the page place a hash sum of the markdown below a marker on the page.<p>LMD Reader:<p>- Prevents editing the markdown.<p>- Warns user if the hash sum is not valid.<p>Example:<p>```lmd<p>sha256 77ec0f678315f8a207c3501137e1dfc9642b79a9c93e21807df7b5242846c05c<p>-------------------------------<p># Header 1<p>Paragraph of text about how bloated the PDF format is.<p>```<p>Zip .lmd together with images&#x2F;videos if required.
评论 #42895751 未加载
评论 #42960729 未加载
评论 #42960647 未加载
purplejacket3 个月前
See? This is _exactly_ why Facebook banned Linux.
评论 #42897685 未加载
ubj3 个月前
Now all we need is a PDF reader embedded within a PDF. Bonus points for enabling it to open itself for infinite recursion.
revskill3 个月前
Now install the pdf reader and open the pdf inside that os.
0xDEAFBEAD3 个月前
Is there even a single solid motivating example for why JS in PDF is useful? Can anyone show a real-world application of JS in PDF where it&#x27;s actually a good fit?<p>I just don&#x27;t see why PDF would be your file format of choice if you&#x27;re writing JS.
评论 #42896104 未加载
评论 #42896005 未加载
评论 #42896172 未加载
评论 #42901925 未加载
评论 #42896439 未加载