Live data from Hacker News

HTML, the Programming Language

html-lang.org

121–130 of 141 posts

Re: HTML, the Programming Language

#121

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

> hindley milner type system for the language

Hindley Type Milner Language

#ifixeditforyou

Re: HTML, the Programming Language

#122

Earlier quoted context omitted.

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

How about HTML, the programming language, 's Flying Circus with a very powerful yet flexible and optional type hinting system?

Parrot Typing.

Re: HTML, the Programming Language

#123
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!

Whoa there, “lack of resources”?!

The definitive and complete resource is Michael Kay’s XSLT book (originally Wrox Press, but now part of O’Reilly I think?). Granted, a paper book as a resource isn’t great, but it’s some book!

Kay went to Cambridge (Trinity) and did his PhD under Sir Maurice Wilkes. He’s no joke: one of the examples from the book is implementing the Knight’s Tour. Although this is only the chapter pre-amble, the commentary is indicative of what kind of book this is:

https://www.oreilly.com/library/view/xslt-20-and/97804701927...

It’s like Dijkstra writing the definitive reference manual for CSS and one of the formatting examples being an engine for solving Towers of Hanoi.

While I have qualms about the utility of XSLT as a general purpose language — it’s fine if you embed it in an imperative language a la SQL in Python, and awful if you try and use it standalone — it also gave us XPath which is by far the best way of querying markup that I’ve ever used. (Well, until CSS got attribute selectors, so I use it less and less these days I suppose.)

(You probably know all this, but it was interesting to add to the thread.)

Re: HTML, the Programming Language

#124
Not fond of using single-row tables for objects; definition lists are far more suitable:

  
      fooFoo
      bar
  
You could reasonably leave tables as a way of defining an Array.

Using for addition and for duplication just makes me sad. It almost makes be suppose you don’t care about HTML (the markup language) semantics!

Re: HTML, the Programming Language

#125

Earlier quoted context omitted.

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

How about HTML: Turing-complete Machine Language

How about HTML 2: Electric Boogaloo

Re: HTML, the Programming Language

#127
post #114

https://e-html.org/html/documentation.html

This is awesome! Can’t believe I haven’t seen it before. Reminds me of HTMX in a way. Did this project come before or after it? Can you differentiate them? I’d like to use this in a hobby project but am not sure how it differs from HTMX. They seem to overlap in some areas?

Re: HTML, the Programming Language

#128

[flagged]

Hey, would you mind reviewing https://news.ycombinator.com/newsguidelines.html and sticking to those rules when posting here? You broke them with this comment for sure, and it looks like some of your other comments may be breaking them as well; I haven't read closely enough to be sure, but they seem to be written in more of a flamewar/aggressive style than we're trying for on this site.

(p.s. just for clarity - I'm a moderator here.)

Re: HTML, the Programming Language

#129
post #93

Earlier quoted context omitted.

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 ey…

Hey, XSLT is functional, and functional languages are sexy, right?

What XSLT did do was standardize XML on a transformation language. JSON never really got that, and the ecosystem is worse for it.

Re: HTML, the Programming Language

#130

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.

I'm using Swift Result Builders as a statically typed language to generate HtmlScript code (which a similar approach as html, the programming language):

https://htmlscript.org

This works pretty well for composable server side generated view components.

Post reply on HN