Live data from Hacker News

HTML, the Programming Language

html-lang.org

41–50 of 141 posts

Re: HTML, the Programming Language

#42
post #25

Why is the iterator implemented as a GOTO instead of something like the following? Genuine question, I don't use stack based langs.

> Genuine question, I don't use stack based langs. How and why not? What languages do you use?

Common ones like JavaScript, Java, C#, etc. They all have a stack, but aren't stack oriented like Assembly or Forth. The stack in modern languages is abstracted so you don't have to worry about pushing/popping values in a specific order, and you can't explicitly reference it. C and Rust is probably the closest I get with Heap v Stack memory, but even that is not truly stack oriented.

https://en.wikipedia.org/wiki/Stack-oriented_programming

Re: HTML, the Programming Language

#44
btw, this is a working programming language and there is an example of fib()

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

and live demo at the bottom:

https://html-lang.org/#live-demo

that runs disturbingly fast given the implementation is an inefficient recursive algo

computers are fast

Re: HTML, the Programming Language

#45

The best part is how they have to keep repeating "HTML, the programming language" or "HTML, the markup language" everywhere in an attempt to keep things clear :) It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. Thank you for posting this, it made my day a bunch brighter!

> It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it.

You could use the tag.

    
        
    
To use it:

    
Using source to look familiar to bash users because why not.

Re: HTML, the Programming Language

#47
post #25

Why is the iterator implemented as a GOTO instead of something like the following? Genuine question, I don't use stack based langs.

in designing HTML, the programming language, i tried to stay as close as possible to existing semantics in HTML, the markup language, as I could, so that HTML, the markup language, developers would be comfortable with it in a minimum amount of time most HTML, the markup langauge, developers are used to anchor tags (i.e. the tag) with an href that begins with a hash "jumping" to that element. Therefore I decided to ta…

I guess I don't really think of HTML as "sequential" but I definitely do think of it as "composed." Meaning I don't often consider siblings elements, but I often do consider parent/child elements. Anchor tags that link to other parts of the doc are relatively rare compared to links to other docs. The only exception is stuff like schema definitions or reusable shapes in SVGs.

Either way, fun project!

Re: HTML, the Programming Language

#48
post #45

The best part is how they have to keep repeating "HTML, the programming language" or "HTML, the markup language" everywhere in an attempt to keep things clear :) It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. Thank you for posting this, it made my day a bunch brighter!

> It would be awesome if they were using some sort of macro system / templating engine to consistently expand {{html_prog}} and {{html_markup}} just to keep it straight while they're writing it. You could use the tag. To use it: Using source to look familiar to bash users because why not.

By the way, you can implement in HTML, the programming language, because it is extensible!

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

Re: HTML, the Programming Language

#49
post #47

Earlier quoted context omitted.

in designing HTML, the programming language, i tried to stay as close as possible to existing semantics in HTML, the markup language, as I could, so that HTML, the markup language, developers would be comfortable with it in a minimum amount of time most HTML, the markup langauge, developers are used to anchor tags (i.e. the tag) with an href that begins with a hash "jumping" to that element. Therefore I decided to ta…

I guess I don't really think of HTML as "sequential" but I definitely do think of it as "composed." Meaning I don't often consider siblings elements, but I often do consider parent/child elements. Anchor tags that link to other parts of the doc are relatively rare compared to links to other docs. The only exception is stuff like schema definitions or reusable shapes in SVGs. Either way, fun project!

research ongoing!
Post reply on HN