Live data from Hacker News

Show HN: Tetris in a PDF

th0mas.nl

31–40 of 238 posts

Re: Show HN: Tetris in a PDF

#32
post #23

So it's possible to port C compiler to PDF. Compiler is already done https://github.com/Mati365/ts-c-compiler . We can run DOS in PDF basically..

[flagged]

Huh? Did you comment this in reply to something other than what you intended to reply to?

Re: Show HN: Tetris in a PDF

#33
post #23

So it's possible to port C compiler to PDF. Compiler is already done https://github.com/Mati365/ts-c-compiler . We can run DOS in PDF basically..

[flagged]

These 'tricks' are exactly what makes programming the passion I love. Thanks for capturing the difference between coding for joy and coding for a paycheck so succinctly. Also, it's not a wrapper—it's a full parser and compiler.

Re: Show HN: Tetris in a PDF

#34

"It was a bit tricky to find a union of features that work in both engines [..]" I am curious what the constraints are to make this work and in which environments it does? Does it work in PDF viewers outside the browser? Is there documentation what is available in which environment? What is enabled by default, can be switched on or off?

I guess it should read intersection instead of union.

Re: Show HN: Tetris in a PDF

#36
post #9

Back in school pdfs would circulate that had a bunch of flash games on them. I have no idea how or who made them, but they let us play dolphin olympics on lab computers with no internet connection.

Excel for games and PowerPoint for stick animations. You'd spend hours in CAD class just creating PowerPoint animations and not doing any CAD.

I regret this decision now and wish that I had paid some attention. 3D printers are cool and I have no idea how to design objects for it.

Re: Show HN: Tetris in a PDF

#37
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 properly in Evince. It just shows an error "The document contains only empty pages"

Re: Show HN: Tetris in a PDF

#38
post #8
post #3

Earlier quoted context omitted.

Genius you mean ?

Obviously a talented individual. Nice to see them wasting time making something ridiculous

I don't know how serious you are, but for others projects like this are virtually never a waste of time. There's opportunity cost of course, but that's very difficult to measure. I'm sure OP learned a ton about PDFs in the process, and there is/are no shortage of needs for PDF creation. More broadly they also deepened their knowledge of javascript and other things.

Re: Show HN: Tetris in a PDF

#40
post #3
post #2

This is hilarious

Genius you mean ?

Well, it's quite cool, but if PDF supports javascript, putting a javascript game in a PDF is something obviously possible. I don't know if it qualifies as genius. If the game was made from PostScript commands somehow, that would be genius.

Anyway, I love this content on Hacker news, as opposed to people explaining how they want Apple to take their freedom away, because freedom is dangerous.

Post reply on HN