4 ms·
So it's just HTML? Is there a reason (legal or otherwise) that they can't just use HTML?
by Xero 11y ago
So it's just HTML?
Is there a reason (legal or otherwise) that they can't just use HTML?
- wvenable 11y agoIt's not like HTML except for being XML which looks a lot like SGML. It's significantly more limited and more specific to the task than HTML. HTML comes with a lot of baggage that makes it unsuitable for a really specific use case.
- danieldk 11y agoIt's not like HTML except for being XML which looks a lot like SGML. XML does not only look a lot like SGML, it is a proper subset of SGML: XML is an application profile or restricted form of SGML, the Standard Generalized Markup Language [ISO 8879]. By construction, XML documents are conforming SGML documents. http://www.w3.org/TR/xml11/ http://www.w3.org/TR/xml11/
- pluma 11y agoUnlike HTML, btw, which started out as a loose subset of SGML but has abandoned the goal of SGML compatibility in favour of conceptual simplicity.
- dunham 11y agoInteresting, I didn't realize they claimed XML was an SGML subset. I thought you couldn't express XML empty tags in an SGML DTD.
- xd1936 11y agoNo, no, it's not HTML, because everything is inside <alertTemplate>, not <html>.
- cleverjake 11y agoIn no way is this html. its xml. they use xml for the same reason that most do - to define their own elements and behaviors thereof
- josteink 11y agoXML without namespaces, so pretty much just markup. You know, without namespaces, you take out the eXtensibility-bit.
- pilsetnieks 11y ago> pretty much just markup SGML, actually. "Just markup" can entail other things, like TeX, for example.
- smt88 11y agoSupporting full HTML would much be more processor- and memory-intensive. It also gives developers more freedom, which can negatively impact the user experience. I don't know if I agree with the tradeoffs they've made here, but those are at least two reasons to create their own custom schema here.
- arm 11y agoAs others have already said, it’s XML. This comment by jonknee back in the other Apple TV thread is a bit more detailed: https://news.ycombinator.com/item?id=10194839 https://news.ycombinator.com/item?id=10194839
- hnnh 11y agoI'd guess that they don't use full-blown HTML to make sure developers don't go overboard and break the UX.
- tcdent 11y agoI have no idea how it's actually implemented, but it's quite likely TVML is powered by HTML (and WebKit). Rather than expecting developers to use an open-spec-compliant generic toolkit, they've just built modules on top of it to both make development easier and more importantly maintain a consistent UX. You could just have pre-defined CSS classes and do much of the same thing, but it will not be as elegant nor as controlled. Taking over the HTML and JS interpreters just allows them greater control while respecting the role each component plays (markup, interactivity, styling, etc).
- wvenable 11y agoImplementing this with WebKit would be massive overkill; I'd say it's quite unlikely it's implemented with it.
- tcdent 11y agoIf you implemented a web-like runtime from the ground up, you're saying you would write it from scratch? The runtime has JavaScript support, it does not have a brand new interpreter. The runtime has CSS support, it does not have a brand new interpreter. The runtime has HTML/XML syntax. Why would they write a brand new interpreter?
- wvenable 11y agoBecause the XML syntax maps directly onto UI components; introducing an HTML canvas is vastly more complicated than that. Mappping XML to a small subset of UI objects is so simple you don't really need to pull in an entire browser runtime for it.
- chestnut-tree 11y ago"So it's just HTML? Is there a reason (legal or otherwise) that they can't just use HTML?" The BBC have an open source library for building apps for TV based on HTML, CSS and JavaScript called TAL: TV Application Layer. It's designed to be deployed across HTML-based TV devices. http://fmtvp.github.io/tal/getting-started/introducing-tal.html http://fmtvp.github.io/tal/getting-started/introducing-tal.h... Apple's tvOS is likely to have much richer functionality since it's hosted on Apple's own hardware. However, an open standard for TV apps would be a good thing. The BBCs TAL was released as open source in March 2013. But I don't know if it's gained wider traction in the industry.
- mrwilliamchang 11y agoI think the heavy reliance on these templates is a good clue. Apple TV's interaction model is a lot about swiping around from tappable element to tappable element. Arbitrary layouts will make this a miserable experience. Apple probably wants to establish a number of layout patterns that they believe will yield a good experience.
- smadge 11y agoWould you really want full blown hypertext markup styled with css on your apple tv? Just imagine all of the garish designs that would pop up. It's better to restrict what is allowed in a custom markup language so that apple has better control over how it is rendered.