News for hackers. Stuff that matters.
Re:Show HN: Doom (1993) in a PDF by danieldk on Monday January 13, 2025 @01:43AM (#42680718)
I don't think forms are a bridge too far, it was very common that forms were provided as PDF and it is more convenient for the sender and receiver to fill the fields on a computer for readability, etc. before printing.

However, forms could be handled by a very simple DSL that would be easy to write a safe interpreter for.

Re:Show HN: Doom (1993) in a PDF by quotemstr on Monday January 13, 2025 @01:54AM (#42680779)
JavaScript is already a simple language. There's no requirement to have a JIT even. What makes you believe a custom language would be any safer or better in another way?
Re:Show HN: Doom (1993) in a PDF by bandie91 on Thursday January 16, 2025 @04:04AM (#42723082)
IMO the parent commenter leans to a validation-specific DSL, opposed to JS, not only because the language complexity itself, but also due to the usually wide range of objects the script engine gets access to. like title bar, URL box, window decoration, placement, mouse pointer, keystrokes, etc. in web browsers. i worry what it has got or will get access to in documents?