News for hackers. Stuff that matters.
Re:Forth: The programming language that writes itself by mcdonje on Sunday October 19, 2025 @10:47PM (#45639828)
It kinda happened with markup languages. HTML, SVG, and some other domain specific markup languages are all XML, which is a subset of SGML.

The thing there is those DSLs have their own specs.

Coding is a social activity. Reading code is hard. When there are multiple ways of doing things, it's extra hard. People want to have relatively standardized ways of doing things so they can share code and reason about it easier.

If there's a lisp or racket or a forth that's defined as a DSL, it might take off if it's standardized and it's the best solution for the domain.

Re:Forth: The programming language that writes itself by gldrk on Sunday October 19, 2025 @11:23PM (#45639952)
HTML uses a ton of SGML features not part of XML (sometimes erroneously though to be non-standard ‘tag soup’, not to mention self-closing tags). You need either a specialized parser or an SGML processor + DTD.
Re:Forth: The programming language that writes itself by shawn_w on Monday October 20, 2025 @01:08AM (#45640316)
Wasn't HTML4 the last one defined as a SGML DTD? 5 and on is its own beast.

(rip XHTML)

Re:Forth: The programming language that writes itself by gldrk on Monday October 20, 2025 @02:44AM (#45640647)
You are right. There is a third-party DTD that should be mostly compatible (https://sgmljs.sgml.net/docs/html5.html).

In reality, HTML4 was never implemented to the letter by user agents, because people do things like putting -- inside comments.