Live data from Hacker News

HTML, the Programming Language

html-lang.org

71–80 of 141 posts

Re: HTML, the Programming Language

#72
This almost reads like a deconstruction of my favorite explanation of Lisp: https://www.defmacro.org/ramblings/lisp.html

The explanation basically uses an AST that's apparent to the user to explain the language - and this is a language built on an AST whose structure is apparent to the user. I love it and will definitely be turning the idea over in my head for the next few days.

Re: HTML, the Programming Language

#73
Maybe I am mistaken but it seems to me that the stack is implemented with a Javascript. I am a bit disappointed, in the sense that the stack too could have been implemented as a a list of tags in the containing document.

This would enable interesting features such as visual debugging (you just check the document to see the status of the program) and more importantly would enable the "code as data" paradigm, giving us easy metaprogramming and essentially a "lisp with brackets"

(Yes, I am not being completely serious)

Re: HTML, the Programming Language

#75
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.

Re: HTML, the Programming Language

#76

Maybe I am mistaken but it seems to me that the stack is implemented with a Javascript. I am a bit disappointed, in the sense that the stack too could have been implemented as a a list of tags in the containing document. This would enable interesting features such as visual debugging (you just check the document to see the status of the program) and more importantly would enable the "code as data" paradigm, giving us…

[deleted]

Re: HTML, the Programming Language

#77

One suggestion - it would be really cool to allow FFI. Something like const foo = (bar) => { document.getElementById('my-element'); // More here! }; That way you could really leverage the full power of HTML, the programming language!

The contents should be wrapped in a dangerouslySetInnerJS attr to prevent XSS
Post reply on HN