Live data from Hacker News

Show HN: Tetris in a PDF

th0mas.nl

131–140 of 238 posts

Re: Show HN: Tetris in a PDF

#132

Earlier quoted context omitted.

But can your PDF run an AI agent?

In my opinion the question isn’t so much “if” but rather “when”. When will AI research and hardware capabilities reach a point that it’s practical to embed something like that into a regular document? We’ve already seen proof of concept LLMs embedded into OpenType fonts. I guess the other question is then “what capabilities would these AI agents have?” You’d hope just permission to present within that document. But t…

For Chrome's PDF renderer, the runtime is V8, so we're literally one (hilarious) line of code away from this glorious future existing today:

https://pdfium.googlesource.com/pdfium/+/refs/heads/main/fpd...

> // Use interpreted JS only to avoid RWX pages in our address space. Also, --jitless implies --no-expose-wasm, which reduce exposure since no PDF should contain web assembly.

> return "--jitless";

Re: Show HN: Tetris in a PDF

#133

Earlier quoted context omitted.

i recently discovered that the Canadian government depends on this for some fillable forms, because it shows a message at the top that says "JavaScript is disabled" and all the boxes show errors. i couldn't get it to work on Linux and had to dust off a Windows machine (and it still didn't work in firefox, it needed acrobat reader).

I have faced this exact problem with Canadian govt forms. Evince doesn't support them. They are so specific about only adobe acrobat to fill out the forms. I can open them in firefox but can't update them properly The only option is to use my barely hanging on 10-yr old windows machine. Let's hope that eventually they move on to a simpler web form.

Okular supports javascript in PDFs and works with many fillable forms.

Re: Show HN: Tetris in a PDF

#134
post #54

This is a good reminder for why to not download random PDFs. One of the mechanisms of the Pegasus spyware was emulating a computer inside a PDF. https://en.wikipedia.org/wiki/Pegasus_(spyware)#Vulnerabilit...

A tetris PDF could be in a 1 pixel iframe right on this page and you'd never know it. So it doesn't require any user action to download one.

That's why you run NoScript along side with UBO

Re: Show HN: Tetris in a PDF

#139

Earlier quoted context omitted.

AI agents run in isolated VMs, but PDFs have been out here running in the open for 30 years!

But can your PDF run an AI agent?

The first widespread AI Malware will be a historic moment in this century. It will adapt like a real biological virus to its host and we have no cure for this.

Re: Show HN: Tetris in a PDF

#140

Earlier quoted context omitted.

AI agents run in isolated VMs, but PDFs have been out here running in the open for 30 years!

But can your PDF run an AI agent?

> But can your PDF run an AI agent?

Oh it's so much worse than that. Your font can run an AI agent.

Llama.ttf: A font which is also an LLM -- https://news.ycombinator.com/item?id=40766791

Post reply on HN