News for hackers. Stuff that matters.
Re:Apple TV Markup Language by Xero on Thursday September 10, 2015 @02:19PM (#10199631)
So it's just HTML?

Is there a reason (legal or otherwise) that they can't just use HTML?

Re:Apple TV Markup Language by chestnut-tree on Thursday September 10, 2015 @03:38PM (#10200106)
"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.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.

Re:Apple TV Markup Language by cleverjake on Thursday September 10, 2015 @02:21PM (#10199654)
In 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
Re:Apple TV Markup Language by josteink on Thursday September 10, 2015 @03:31PM (#10200047)
XML without namespaces, so pretty much just markup.

You know, without namespaces, you take out the eXtensibility-bit.

Re:Apple TV Markup Language by pilsetnieks on Thursday September 10, 2015 @05:14PM (#10200606)
> pretty much just markup

SGML, actually. "Just markup" can entail other things, like TeX, for example.

Re:Apple TV Markup Language by tcdent on Thursday September 10, 2015 @02:30PM (#10199713)
I 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).

Re:Apple TV Markup Language by wvenable on Thursday September 10, 2015 @02:41PM (#10199780)
Implementing this with WebKit would be massive overkill; I'd say it's quite unlikely it's implemented with it.
Re:Apple TV Markup Language by tcdent on Thursday September 10, 2015 @03:33PM (#10200058)
If 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?

Re:Apple TV Markup Language by wvenable on Thursday September 10, 2015 @04:23PM (#10200332)
Because 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.

Re:Apple TV Markup Language by wvenable on Thursday September 10, 2015 @02:21PM (#10199652)
It'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.

Re:Apple TV Markup Language by danieldk on Thursday September 10, 2015 @02:24PM (#10199668)
It'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/

Re:Apple TV Markup Language by pluma on Thursday September 10, 2015 @08:31PM (#10201362)
Unlike HTML, btw, which started out as a loose subset of SGML but has abandoned the goal of SGML compatibility in favour of conceptual simplicity.
Re:Apple TV Markup Language by dunham on Thursday September 10, 2015 @04:02PM (#10200232)
Interesting, I didn't realize they claimed XML was an SGML subset. I thought you couldn't express XML empty tags in an SGML DTD.
Re:Apple TV Markup Language by smt88 on Thursday September 10, 2015 @02:23PM (#10199665)
Supporting 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.

Re:Apple TV Markup Language by mrwilliamchang on Thursday September 10, 2015 @03:49PM (#10200167)
I 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.
Re:Apple TV Markup Language by arm on Thursday September 10, 2015 @02:25PM (#10199677)
As 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

Re:Apple TV Markup Language by smadge on Thursday September 10, 2015 @03:55PM (#10200194)
Would 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.

Re:Apple TV Markup Language by hnnh on Thursday September 10, 2015 @02:26PM (#10199687)
I'd guess that they don't use full-blown HTML to make sure developers don't go overboard and break the UX.
Re:Apple TV Markup Language by xd1936 on Thursday September 10, 2015 @02:21PM (#10199653)
No, no, it's not HTML, because everything is inside <alertTemplate>, not <html>.