Live data from Hacker News

HTML, the Programming Language

html-lang.org

101–110 of 141 posts

Re: HTML, the Programming Language

#101

It's too early in the week, and I'm too sober for this. My one nit, is the lack of static typing. I'm not a fan of radically changing the direction of a project, so instead of baking it into HTML, the Programming Language I suggest the TypeScript route. Something like a hypertext typed programming syntax, HTTPS, to compile to HTML, the Programming Language.

considering a hindley milner type system for the language, but it would be a big lift w/ explicit stack semantics

also looking at HTML, the programming language,++, or, possibly, Objective-HTML, the programming langauge, which would be easier to get to and potentially more awful

Re: HTML, the Programming Language

#102
post #4

Uh, why call it HTML? Why not call it HTML-Stack or something? It's not HTML, but a language using HTML syntax.

it's not called HTML it's called HTML, the programming langauge (sometime I use "HTML" just to keep things shorter)

HTMPL? “Hyper Text Markup Programming Language”

Then you could pronounce it “High temple”.

Re: HTML, the Programming Language

#103
[1] suggests that I should define functions with the `` tag, but the documentation appears out-of-date, because the HTML program sample shows using the `` tag. Is the next revision of HTML, the Programming Language, A Programming Language going to cover the difference between the `` and `` tags, or deprecate one of them?

All the best,

[1]: https://html-lang.org/#defining-functions

Re: HTML, the Programming Language

#104
post #93

Earlier quoted context omitted.

HTPL? I appreciate their joke, but “HyperText Markup Language, the markup language” is a little redundant. Some of us have had to include XSLT programming in our careers. We have seen into the dark abyss… and been paid to do it!

XSLT was the best! Well, except for the syntax and the lack of resources and that it wasn't designed to be a programming language... Okay so it wasn't the best. But somewhere in there is a language which does want to be the best!

XSLT might have the greatest ratio of brilliance to marketing of anything in our industry.

XSLT is a pattern matching DSL for converting trees into other trees. What things are trees? Programs.

It is also XML. XML is a boring business thing for boring business people associated with legacy Java codebases. We like json here. Or maybe yaml. To quote an otherwise excellent past colleague, "the pointy brackets hurt my eyes". It's horrible to edit in notepad too.

Who wants XML syntax for a purely functional programming language? No-one wants that, we write our compilers in C++ thank you.

As a bonus extra, "XML schema" are a similarly crufty rubbish old thing in nasty XML syntax that look suspiciously like "type of that tree". So you can typecheck the intermediate IR in your compiler pipeline. If you wrote it in the bad language from the before times. Emacs knows what those schema mean too.

The world has moved on to better marketed semantically worse things with prettier syntax. This brings me joy.

Re: HTML, the Programming Language

#105

[1] suggests that I should define functions with the ` ` tag, but the documentation appears out-of-date, because the HTML program sample shows using the ` ` tag. Is the next revision of HTML, the Programming Language, A Programming Language going to cover the difference between the ` ` and ` ` tags, or deprecate one of them? All the best, [1]: https://html-lang.org/#defining-functions

it appears there may have been an error in the example (not in HTML, the programming language, which is correct by definition)

i tried to fix it

Re: HTML, the Programming Language

#107
post #85

Finally I can use html on the frontend and the backend! I am adding a "full-stack html" badge to my Linkedin account right away.

Personally I'm using CSS [0] on the backend, but might switch it out for HTML. It'd be cool to use the same technology for both. The CSS+HTML combo has some big limitations. [0] https://dev.to/thormeier/dont-try-this-at-home-css-as-the-ba...

It would also be cool if someone would explore CSS for the frontend. I think isomorphic CSS could be a really neat stack.

Edit: I actually think I recall some pure-CSS frontend examples. We might just need to combine that with backend CSS technologies.

Edit edit: Probably the biggest issue will be to prevent the server from evaluating the CSS fully but maybe something like what Next.js does with server and client components could work here.

Re: HTML, the Programming Language

#108

I remember in the hay days of XML, someone made an article that discussed why XML is really just a language of S-expressions. This article seems argue something similar. P.S., S-expression or not, XML-based DSLs are horrible. I don't know how many people have PTSDs using ANT or a slew of commercial "user-friendly" DSLs for test automation, process automation, and etc. It turns out the companies just didn't know how t…

Oh, you reminded me about this article: https://www.defmacro.org/ramblings/lisp.html

Re: HTML, the Programming Language

#110

[1] suggests that I should define functions with the ` ` tag, but the documentation appears out-of-date, because the HTML program sample shows using the ` ` tag. Is the next revision of HTML, the Programming Language, A Programming Language going to cover the difference between the ` ` and ` ` tags, or deprecate one of them? All the best, [1]: https://html-lang.org/#defining-functions

it appears there may have been an error in the example (not in HTML, the programming language, which is correct by definition) i tried to fix it

I appreciate your tireless efforts towards the perfection of HTML, the programming language, as well as its accompanying documentation.

Thank you!

All the best,

Post reply on HN