...now I'm starting to wonder whether htmx and _hyperscript are similar to this, just disguised better...? And I was seriously considering using htmx for one thing, too.
HTML, the Programming Language
71–80 of 141 posts
Re: HTML, the Programming Language
#72The 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
#73This 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
#74Re: HTML, the Programming Language
#75My 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
#76Maybe 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…
Re: HTML, the Programming Language
#77One 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!
Re: HTML, the Programming Language
#78Now the discussion around HTML being a programming language gets really muddy. Thanks to "a slightly unhinged man living in montana"
Re: HTML, the Programming Language
#79