Live data from Hacker News

Show HN: Tetris in a PDF

th0mas.nl

111–120 of 238 posts

Re: Show HN: Tetris in a PDF

#111
Related: Ange Albertini, the creator of the .PDF/.ZIP/ELF reference diagrams (github/corkami) has started posting overview videos on his YT channel (@corkami-albertini) including creating .PDF+.PNG+.ZIP chimera files.

The .PDF basics vid was the first in the series: https://www.youtube.com/watch?v=q6KgFezu8tw

Re: Show HN: Tetris in a PDF

#112
post #94

This is amazing and terrifying (I am a security engineer and parsing complex document formats is a never-ending treasure trove of vulnerabilities).

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

Re: Show HN: Tetris in a PDF

#113
and this is why I can't read HN at work anymore........

I have increasing confidence that when AIs finally destroy the Internet the delivery vehicle will be the file format that was created, as the Internet itself was, as a form of digital paper.

Re: Show HN: Tetris in a PDF

#114

Playable where? It doesn't work in the Adobe Chrome PDF viewer, or in Preview.

Works in Edge's PDF viewer, after exiting the initial mode via the <- in the upper left corner. (If you know how to avoid this being the default, let me know.)

Re: Show HN: Tetris in a PDF

#117
post #94

This is amazing and terrifying (I am a security engineer and parsing complex document formats is a never-ending treasure trove of vulnerabilities).

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?

Re: Show HN: Tetris in a PDF

#118
post #30

Earlier quoted context omitted.

That's how it inevitably goes with Turing completeness :) The real achievement here arguably isn't running code (that's provided by the PDF spec and implementations), but managing to hook it up to user input/output in an ergonomic-enough way to play Tetris.

The mention of Turing Completeness got me curious, so I looked something up. Behold, a C compiler written in Lambda Calculus: https://github.com/woodrush/lambda-8cc

Amazing, thank you!

The PDF [1] containing the Lambda calculus term manages to hang/glitch/crash both Firefox's and macOS Preview's PDF renderer, which in itself is quite the achievement in portability.

Update: Nevermind, Firefox handles it perfectly, it just (probably wisely) disables seamless scrolling and I have to use the "next/previous" page buttons manually. macOS got there after a minute or two of loading with no UI indications.

[1] https://woodrush.github.io/lambda-8cc.pdf

Re: Show HN: Tetris in a PDF

#120

You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…

hahaha I wish you almost didn't include the parenthesis. I've had some clients who would definitely email me that point #1.

No. They would fax it to you.
Post reply on HN