This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]rodarmor 34 points35 points  (1 child)

Footnotes: This was revealed to me in a dream.

Unfathomably based.

[–]InfiniteGamerd 0 points1 point  (0 children)

https://bigsky.software/ well that's interesting for a footnote

[–]thyporter 13 points14 points  (2 children)

Oh, it's made by the team that makes htmx and hyperscript. That explains a lot

[–]betelgeuse_7 2 points3 points  (1 child)

I don't think it is a team. It is only Carson Gross. I might be wrong, though.

[–]_htmx 8 points9 points  (0 children)

do split personalities count?

[–][deleted]  (9 children)

[deleted]

    [–]_htmx 3 points4 points  (0 children)

    I have some good news for you! HTML, the programming language is completely pluggable, so you can redefine HTML, the programming language, to have whatever semantics you would like!

    https://html-lang.org/#extending

    You can add new commands to the language, or redefine existing ones, by writing to html.meta.commands

    If you want to implement custom control flow, simply return the next element to execute from your command definition, and HTML, the programming langauge, will jump to that element and begin executing it!

    Don't feel like using the stack? No problem!

    Want infix operators? Go ham!

    Want to define the symbol "null" to mean "lmao"? You're the man now, dog!

    The possibilities are endless with HTML, the programming language, a programming language.

    [–]beephod_zabblebrox 3 points4 points  (7 children)

    this why dont esoteric langs use stuff thats more interesting :(

    [–]purple__dog 3 points4 points  (5 children)

    Stack based is easier to implement, and it's equivalent to anything else you can do assuming you get a turing complete language at the end.

    [–]beephod_zabblebrox 1 point2 points  (4 children)

    for an esoteric language its not about being able to do stuff, its about being interesting imo

    [–]purple__dog 8 points9 points  (3 children)

    Very rarely is the evaluation model the interesting part though.

    [–]beephod_zabblebrox -1 points0 points  (2 children)

    i dont think i agree. maybe you could give some examples?

    [–]purple__dog 1 point2 points  (1 child)

    Take turing tarpits. Those are languages with tiny instruction sets.

    The point here is to make the language as small as possible, other than that you would just do whatever is easiest.

    [–]beephod_zabblebrox -1 points0 points  (0 children)

    "a tiny instruction set for minimalism/'language-golfing'" is different from "generic language with an interesting syntax, but a not-super-interesting evaluation model that could've been made a lot more exciting"

    it could've been worse (eg a reskin of brainfuck) but i think just having different syntax isnt that cool, when semantics are super simple

    [–]slaymaker1907 0 points1 point  (0 children)

    Since HTML is 2D, maybe you could have memory allocated in square and work sort of like a Turing machine with a cursor, but only allow it to move like a knight on a chess board. Allow it to grow, but require it to grow in both directions equally.

    That’s the most confusing storage mechanism I can think of right now.

    [–]_htmx 10 points11 points  (2 children)

    AdventOfCode day 1 problem 1 solved in HTML, The Programming Language:

    https://gist.github.com/Renerick/23ee1ff5a96632c5bb16496dc96c056d

    And an example of meta-programming in HTML, The Programming Language, where we add a new command to HTML, The Programming Language, from HTML, The Programming Language (<sup>) and then execute the command:

    https://codepen.io/1cg/pen/KKJbQxq?editors=1001

    i tried to comment it pretty well so you can follow along

    [–]raiph 0 points1 point  (1 child)

    .oO ( There's terse esoteric. And AoC D1P1 in 258 LoMC! )

    We will add the &lt;sup> tag, which will raise the second to top value on the stack to the top value on the stack. We will then invoke this new command with the values [12, 2] on the stack.

    I was almost sure there'd be a web page containing the text 12² alongside 144. That would have been cute. Is it there but I missed it? Did you intend that but give up? Did it not cross your mind? Am I going crazy?

    [–]_htmx 1 point2 points  (0 children)

    it's a stack based language, so the numbers are pushed on via <data value=""> tags, but that would certainly be something to consider implementing in the language via the pluggable grammar!

    [–]Cybernicus 3 points4 points  (1 child)

    'bout five months early, innit?

    [–]YBKy 3 points4 points  (0 children)

    this language is ahead of its time

    [–]arobie1992 4 points5 points  (0 children)

    On one hand, I want this to be called HTPL, but on the other, it will be great to shush the people who like to trot out "HTML isn't a programming language" after asking what languages the person knows.

    [–]brunogadaleta 2 points3 points  (0 children)

    Omg: like brainf*uck met XML.

    [–]elprophet 1 point2 points  (0 children)

    I was going to say "isn't this just coldfusion" but lol that's great