Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. memes
  3. None of these

None of these

Scheduled Pinned Locked Moved memes
memes
97 Posts 68 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M [email protected]

    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.

    S This user is from outside of this forum
    S This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #58

    HTML5 + CSS3 seems to be Turing complete too: https://lemire.me/blog/2011/03/08/breaking-news-htmlcss-is-turing-complete/

    F 1 Reply Last reply
    3
    • Z [email protected]

      CSS can be included as a style property without requiring the script/style tag though.

      F This user is from outside of this forum
      F This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #59

      Those are still two different languages. HTML isn't an umbrella term for HTML+CSS in any form.

      1 Reply Last reply
      4
      • J [email protected]

        What was Monty Python named after?

        K This user is from outside of this forum
        K This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #60

        The Red Baron.

        1 Reply Last reply
        0
        • L [email protected]

          Is Machine Language even a well defined thing? I would think of assembly but I don't know where to draw the line

          F This user is from outside of this forum
          F This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #61

          I've never heard the term. Only machine code, which i interpret as 1/0. Assembly should be a very low level programing language?

          1 Reply Last reply
          0
          • B [email protected]

            Well, you can't make Tetris in HTML without including some other language that has loops and variables.

            I'm also not sure if you can do it in Excel without using VBA, which is a programming language. Excel doesn't do circular logic in the document sheets.

            Anyway the issue or joke is the lack of definition of "programming".

            HTML is a text encoding system. It's not that different form something like the Morse code. It's only instructions for how to decipher a series of codes. It takes input and presents it as an output, starting from the beginning and working its way to the end.

            In my very unofficial opinion, a "program" is something that is able to "run" by itself, so that the code itself has instructions for which part of the code to run.

            If you decipher a morse code, it doesn't suddenly have instructions that force you to go backwards in the code and decipher from there or to jump to different sections. The text output might tell you to do so, but if you follow the text, then you're doing something else than deciphering morse code.

            HTML works the same. It start from the top and interprets its way down. It can have some conditional statements, but nothing that will make it go backwards and rerun the same instructions again.

            The interpretation is of course more advanced than Morse code and it can call other languages to do stuff, so HTML is basically a document describing a job procedure in that way. The individual jobs can be reoccurring tasks, but the document itself isn't.

            So in my opinion it's not "running" anything. It's just a document being printed on screen.

            I'll admit that "one-shot" programs are a thing, and documents with variables do exist, so it's not clear cut. A programming language should be capable of those things though, and HTML isn't one on its own.

            F This user is from outside of this forum
            F This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #62

            Excel formulas have become Turing complete with the LAMBDA addition.

            B 1 Reply Last reply
            1
            • J [email protected]

              What was Monty Python named after?

              I This user is from outside of this forum
              I This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #63

              Monty Python was named after Monty Python was named after Monty Python was named after..

              edgemaster72@lemmy.worldE 1 Reply Last reply
              0
              • W [email protected]
                This post did not contain any content.
                P This user is from outside of this forum
                P This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #64

                Not expected Amitabh Bacchan and Indian who wants to be a Millonaire or Kaun bane ga Crorepati.
                Lemmy has got me suprised.
                Also HTML is markup not a programming language.

                1 Reply Last reply
                3
                • J [email protected]

                  What was Monty Python named after?

                  K This user is from outside of this forum
                  K This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #65

                  "Monty" was selected (Eric Idle's idea) as a gently mocking tribute to Field Marshal Lord Montgomery, a British general of World War II; requiring a "slippery-sounding" surname, they settled on "Python". Flying Circus stuck when the BBC explained it had printed that name in its schedules and was not prepared to amend it.

                  1 Reply Last reply
                  0
                  • Z [email protected]

                    CSS can be included as a style property without requiring the script/style tag though.

                    N This user is from outside of this forum
                    N This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #66

                    Same goes for JS, for example the onclick attribute.

                    Z 1 Reply Last reply
                    0
                    • W [email protected]
                      This post did not contain any content.
                      M This user is from outside of this forum
                      M This user is from outside of this forum
                      [email protected]
                      wrote on last edited by [email protected]
                      #67

                      I fucking hate these kinds of questions. D is the CORRECT answer because TECHNICALLY html is a markup language and not a programming language but the average person irl will just call you a dipshit for trying to explain that. If this were a question on a shitty academic exam, its going to be a 50/50 toss up on which will get counted as correct because the Autograder Bot Knows All(TM) but you better not fucking use AI to get your low effort AI-generated homework done quicker because fuck you.

                      M captainblagbird@lemmy.worldC T F B 5 Replies Last reply
                      14
                      • M [email protected]

                        I fucking hate these kinds of questions. D is the CORRECT answer because TECHNICALLY html is a markup language and not a programming language but the average person irl will just call you a dipshit for trying to explain that. If this were a question on a shitty academic exam, its going to be a 50/50 toss up on which will get counted as correct because the Autograder Bot Knows All(TM) but you better not fucking use AI to get your low effort AI-generated homework done quicker because fuck you.

                        M This user is from outside of this forum
                        M This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #68

                        Next you're calling a word document a programming language (no, not VBA).

                        1 Reply Last reply
                        1
                        • M [email protected]

                          Interestingly C and D are both programming languages. That is, there is a programming languages called C and another, D.

                          I'll see myself out...

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #69

                          Yes, C is alien language pretty often. The other half it is wizardry.

                          1 Reply Last reply
                          2
                          • F [email protected]

                            Excel formulas have become Turing complete with the LAMBDA addition.

                            B This user is from outside of this forum
                            B This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #70

                            Good to know.

                            It seems kind of half assed though.

                            I've only used it briefly to access the filesystem. Having to paste code into the reference field in the name manager is a special kind of masochistic practice.

                            F 1 Reply Last reply
                            0
                            • W [email protected]
                              This post did not contain any content.
                              rodneyck@lemm.eeR This user is from outside of this forum
                              rodneyck@lemm.eeR This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #71

                              Phones a friend = no one answers.

                              1 Reply Last reply
                              2
                              • N [email protected]

                                Same goes for JS, for example the onclick attribute.

                                Z This user is from outside of this forum
                                Z This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #72

                                Very good point, I forgot that was an option.

                                1 Reply Last reply
                                0
                                • M [email protected]

                                  I fucking hate these kinds of questions. D is the CORRECT answer because TECHNICALLY html is a markup language and not a programming language but the average person irl will just call you a dipshit for trying to explain that. If this were a question on a shitty academic exam, its going to be a 50/50 toss up on which will get counted as correct because the Autograder Bot Knows All(TM) but you better not fucking use AI to get your low effort AI-generated homework done quicker because fuck you.

                                  captainblagbird@lemmy.worldC This user is from outside of this forum
                                  captainblagbird@lemmy.worldC This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #73

                                  And even D is a paradoxical non-answer.

                                  (Just like my D 🥲)

                                  1 Reply Last reply
                                  0
                                  • B [email protected]

                                    Good to know.

                                    It seems kind of half assed though.

                                    I've only used it briefly to access the filesystem. Having to paste code into the reference field in the name manager is a special kind of masochistic practice.

                                    F This user is from outside of this forum
                                    F This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #74

                                    It's a huge pain, especially considering selection shortcuts are overwritten.
                                    I dont work with Excel anymore, but there are python scripts on github to help with lamba management via export/import.

                                    1 Reply Last reply
                                    1
                                    • dohpaz42@lemmy.worldD [email protected]

                                      There is a difference between “markup language” and “programming language”.

                                      B This user is from outside of this forum
                                      B This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by [email protected]
                                      #75

                                      That's the point isn't it? Or did you mean that with a question mark attached?
                                      The only correct answer is D, and it got the least votes. 😋

                                      1 Reply Last reply
                                      1
                                      • M [email protected]

                                        I fucking hate these kinds of questions. D is the CORRECT answer because TECHNICALLY html is a markup language and not a programming language but the average person irl will just call you a dipshit for trying to explain that. If this were a question on a shitty academic exam, its going to be a 50/50 toss up on which will get counted as correct because the Autograder Bot Knows All(TM) but you better not fucking use AI to get your low effort AI-generated homework done quicker because fuck you.

                                        T This user is from outside of this forum
                                        T This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #76

                                        Thought exactly the same. I'd like to know how the legal side would look like. Let's say you say D. Could you go to court if they say it's wrong?

                                        U 1 Reply Last reply
                                        1
                                        • W [email protected]
                                          This post did not contain any content.
                                          S This user is from outside of this forum
                                          S This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #77

                                          That question just gave me anxiety. That is exactly the type of question I would get. Technically it's not but does the people who wrote that think that? Is it a trap question or a smart question? Omg I gotta not think about this anymore...

                                          1 Reply Last reply
                                          11
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups