this post was submitted on 03 Jun 2025
464 points (97.9% liked)

memes

16705 readers
2444 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] modeler@lemmy.world 29 points 2 months ago (3 children)

Actually, PDF is a turing complete programming language.

PDF is a simplification and wrapper around the computer language PostScript - a PostScript or PDF doc literally runs on the printer or computer and outputs the rasterisation of the thing you want to print.

PostScript is language based around a stack. You can define functions (which may be fully recursive) that run on the stack.

Here's a small example:

/ANGLE {
   newpath
   100 0 moveto
   0 0 lineto
   100 50 lineto
   stroke
} def

10 setlinewidth
0 setlinejoin
100 200 translate
ANGLE

1 setlinejoin
0 70 translate
ANGLE

2 setlinejoin
0 70 translate
ANGLE

As such, PDF that's actually similar to Python, and HTML is closer to something like a JSON or XML document.

Note however that HTML can contain Javscript or WASM programs, but these are embedded rather than features of HTML.

[โ€“] Venus_Ziegenfalle@feddit.org 21 points 2 months ago

Consider me outjerked ๐ŸŽฉ๐Ÿค

[โ€“] squaresinger@lemmy.world 7 points 2 months ago (1 children)
[โ€“] fushuan@lemm.ee 1 points 2 months ago* (last edited 2 months ago)

Forgive me if this sounds rude but it's the best way to explain in my mind, please take it in jest.

- lemon is sweet.
+ no, lemon is sour.
- well, Lemmon+sugar is sweet.
+ ?????????????

Well, TIL! Thank you!