News for hackers. Stuff that matters.
Re:Show HN: Automatically convert a website to Android and iOS by krrishd on Friday June 06, 2014 @12:17PM (#7858777)
Out of curiosity, how hard is it to build something that could parse HTML markup and some CSS stylings and convert that into native views?

Assume that the HTML markup and CSS is all done as per your documentation, so that the parser works as expected every time.

Re:Show HN: Automatically convert a website to Android and iOS by nkozyra on Friday June 06, 2014 @12:40PM (#7858934)
Almost impossible in an automated fashion.

You can extract all of the data but it's very hard to know what links are supposed to do, how pieces of content should be presented, etc.

Re:Show HN: Automatically convert a website to Android and iOS by krrishd on Friday June 06, 2014 @01:11PM (#7859112)
What if there was a standard created for the markup, so that the parser would know what the links were supposed to do and how the content shoud be presented, because there would be structured data everywhere specific to the parser?
Re:Show HN: Automatically convert a website to Android and iOS by nkozyra on Friday June 06, 2014 @02:47PM (#7859650)
I immediately thought about that after posting, but in reality markup is a clunky and expensive way to dictate this and it would create a lot of waste for something that would be used infrequently.

An interesting idea that comes to mind is the concept of a Mobile Stylesheet / .mss file that would define elements by ID / class and dictate what those elements would represent in a mobile UI. Then you wouldn't have a bunch of needless data-mobile-intent="blah"

Re:Show HN: Automatically convert a website to Android and iOS by krrishd on Friday June 06, 2014 @05:21PM (#7860333)
That does sound like a good idea, definitely preferable to keep the markup a bit cleaner.

Honestly, I don't know if I care as much for a web-view based product, as Phonegap/Cordova have already been serving that purpose (at least for me), but what you've mentioned, if implemented, would definitely be something I'd use.

Re:Show HN: Automatically convert a website to Android and iOS by mike415 on Friday June 06, 2014 @02:52PM (#7859681)
As @nkozyra says, understanding what all the links do is hard, however there are automated ways of converting common types of webpage layouts into structure data for native presentation.

For example, our startup (shameless plug) utilizes a computer vision technology to automatically extract structured data from articles, images, products, and videos, etc: http://diffbot.com/products/automatic/. These can then be used to present native-experience views.

Re:Show HN: Automatically convert a website to Android and iOS by cheese1756 on Friday June 06, 2014 @09:13PM (#7860932)
I was actually just looking at your startup for an application I'm building. Nice to see you on HN! Do you have an email I can use to ask you about cross-promotional opportunities?
Re:Show HN: Automatically convert a website to Android and iOS by lbotos on Friday June 06, 2014 @03:50PM (#7859972)
Out of curiosity, I'd love to learn more about your stack. Any blog posts handy?
Re:Show HN: Automatically convert a website to Android and iOS by mike415 on Friday June 06, 2014 @05:39PM (#7860405)
C++/Java/Python and turtles all the way down.

More seriously, as a more researchy/deep-tech startup, most of our stack is homegrown, to address the very specific needs of web-scale machine vision.