News for hackers. Stuff that matters.
Re:Ubuntu Edge by grey-area on Monday July 22, 2013 @12:18PM (#6084676)
I've ordered one too, because I really like the sound of a Phone OS based on Ubuntu, not controlled by the likes of Google and Apple, and with a UI based on HTML. The proposed UI and demo apps look nice, I like the idea of losing the chrome as well:

https://www.youtube.com/watch?v=RO7QbCqFY7Y

It's going up quite fast, from 167k to 198k as I finish writing this, but I'm not sure if they'll make their target, just because the phone and OS are such an unknown quantity. I hope they will - and if Pebble can raise $10 Million, then they do have a chance, even if it is a slim one.

Re:Ubuntu Edge by lewtds on Monday July 22, 2013 @12:48PM (#6084898)
The UI is not based on HTML, it's QML. It's a GUI declaration language similar to XAML from MS. The whole QML described UI is an accelerated OpenGL scene backed by Qt technology so the performance should be much higher than that of HTML5.
Re:Ubuntu Edge by rlpb on Monday July 22, 2013 @05:24PM (#6086553)
HTML5 is also supported. From http://developer.ubuntu.com/get-started/:

"Native or HTML5, your choice

We recognize HTML5 as a core Internet technology often used to develop cross-platform apps. As such, the Ubuntu toolkit offers the flexibility to support HTML5 too. It’s your choice to decide whether you want to go native with QML and the best Ubuntu integration or HTML5 and less integration via Unity webapps."

Re:Ubuntu Edge by grey-area on Monday July 22, 2013 @01:07PM (#6085020)
When I last read about Ubuntu Phone, they were offering two choices for UI, QML, and HTML widgets, but perhaps QML is their preferred option? If so that's a shame but not a huge issue for me. All these XML markup languages for views (xib, XAML, QML) offer very little over html IMHO and end up tying you in to one set of tools provided by the vendor. I'd rather they just focussed on improving the OpenGL backed performance of webkit animations to bring it up to scratch instead.
Re:Ubuntu Edge by sho_hn on Monday July 22, 2013 @01:41PM (#6085220)
QML isn't XML-based. It's synxtax is compatible with ECMAScript and it allows embedding ECMAScript expressions and code (but it's style is generally declarative with procedural code discouraged).

And it has a lot to offer over HTML. It has a better layout model for one, sane integration of concepts like animated property transitions and behaviors, makes it far easier to put custom objects backed by native code into the scene, and many other advantages. A lot of these things aren't possible declaratively in HTML, and HTML isn't set up to be extensible enough as a language so you could make up for it yourself. Yes, you can jam everything into a HTML document somehow, but that doesn't mean it's always a pleasant way to go, or that HTML is the peak of UI technology.

Re:Ubuntu Edge by grey-area on Monday July 22, 2013 @02:26PM (#6085537)
QML isn't XML-based.

Thanks for the correction, I was thinking of xib, XAML, Activities etc. haven't used QML, though I have used Qt, a while ago now. One thing I do think HTML got right is to separate content and code, so putting my UI markup into a js-like format which potentially mixes in code is even less appealing :)

Yes, you can jam everything into a HTML document somehow, but that doesn't mean it's always a pleasant way to go, or that HTML is the peak of UI technology.

While there's a lot wrong with HTML, and I agree there's much to be improved in its layout model, learning and keeping in our head a new layout model just to place some buttons and UI controls on a page every time we switch platforms is painful, and leads to fragmentation and lock-in where people choose a platform and stick with it, because they've had to invest so much time learning those platform specific tools. I think that's a shame and it's not a pain I look forward to when moving platforms. Depends on your focus I suppose - if you plan on using one platform exclusively or using Qt everywhere, it won't bother you.

From my perspective doing work for clients on content-heavy apps, often with web integration, there's an awful lot of content already in html, it provides good control over text styling (typically far better than native equivalents), and it means content is portable between the web and apps, so for those pragmatic reasons I find HTML more appealing for presenting content, even for many UI controls.

For example if I have an Android app, an iOS app, and an Ubuntu Phone app, I have 3 different platforms to manage, each with their idiosyncrasies, differing features, layout language, and blessed platform language, and then I have a load of content which I have to let users generate, manage and get into apps on each platform, using web tools to do so is significantly less painful.

It's not a huge deal as you can obviously use webviews and frame html content with native controls for each platform, but I wish Ubuntu had taken a step towards the web instead with the phones rather than focussing on desktop technologies. I see why they'd want to tie it in with what they're doing on the desktop though. Sorry for the thread hijack!

Re:Ubuntu Edge by zanny on Monday July 22, 2013 @05:05PM (#6086454)
Qt just released 5.1, which has prelimiary ios and Android support. By the end of the year, you will be able to write a Qt application, and use a QML ui. You can even use one single UI across all devices, where the UI dynamically adds or substracts elements depending on screen size. IE, responsive design for applications.

It is pretty close to write once, run anywhere. The only downside is if your app is the first qt app installed on an ios / android device, it forces a download of the shared libraries which are quite large. You also have to build the applications against individual platforms, since you are using C++, and the finished binary is a native application that uses the qt libraries to launch the qml engine and v8 for the javascript parts.

One experiment I am anxious to see come to fruition in the qt space is the KDE project to get qml apps running in the browser : https://projects.kde.org/projects/playground/www/qmlweb. Since QML is inherently javascript, a web app could only use javascript / qml to create a restrcited sandbox (or nacl / other browser equivalent for the c++ parts) and the entirety of qtquick is designed around high latency elements, so it can support network transport.

Re:Ubuntu Edge by grey-area on Tuesday July 23, 2013 @04:32AM (#6088844)
On iOS at least dynamic libraries are not allowed outside those Apple provides, so I'm not sure how that would work. I imagine they'll have to compile in the Qt runtime on iOS at least. I'll be interested to see their efforts in this space, but Qt everywhere is not particularly attractive to me, nor is working in C++ or javascript with qml.

I do wish these platforms were a little more agnostic to the technology used in their API, and had simple C bindings anyone could write glue code for to use their favourite language. Learning yet another markup language and using C++ in order to create apps doesn't really appeal. Whatever the platform insists on as glue is what we'll have to use though, as usual. Personally I'm going to look into the webapp support in Ubuntu Phone to see if it supports local web apps, and hope that I can use that glue to get at any device state that I need to access.

As to qml in the browser, I'd really rather have web apps on the desktop than start writing websites in qml, I'd be very surprised if that catches on.

Re:Ubuntu Edge by lukifer on Monday July 22, 2013 @09:05PM (#6087554)
> The only downside is if your app is the first qt app installed on an ios / android device, it forces a download of the shared libraries which are quite large.

How does this get around sandboxing on iOS? My fuzzy understanding is that components would need to be downloaded for each app independently. And is there a reason those shared libraries can't be bundled?

Re:Ubuntu Edge by zanny on Tuesday July 23, 2013 @02:27AM (#6088515)
No idea, never tried it. A cursory browsing of qt documentation suggests it can't, and it also can't use qtquick2, which is where qml becomes really useful (which is also when it starts using v8).
Re:Ubuntu Edge by sho_hn on Tuesday July 23, 2013 @03:48PM (#6092457)
That's incorrect. QML has used v8 since its initial appearance in Qt4. In fact, it will move away from v8 in Qt 5.2 is the current plan.
Re:Ubuntu Edge by zanny on Tuesday July 23, 2013 @05:01PM (#6092864)
http://blog.qt.digia.com/blog/2013/03/05/qt-for-ios-preview/

According to the qt blog, only qtquick2 depends on v8.

Re:Ubuntu Edge by sho_hn on Tuesday July 23, 2013 @05:44PM (#6093121)
You're right, sorry - replacing JavaScriptCore with v8 indeed only happened for Qt 5. However, v8 is indeed on the way out again, as mentioned: http://blog.qt.digia.com/blog/2013/04/15/evolution-of-the-qm...
Re:Ubuntu Edge by sspiff on Monday July 22, 2013 @06:46PM (#6086969)
I recently made a toy project with QML. It was my first Qt experience and I think I'll be using QML for just about any GUI I want to create in the future, it's a really clean and nice way of working.
Re:Ubuntu Edge by mateuszf on Monday July 22, 2013 @02:22PM (#6085513)
Well, using Angular.js in a good way would actualy make possible to have the same flexibility without adding any code to the view layer.

That said, it is possible but still not that easy to do. Native solution will probably be faster, more energy efficient and easier to use.

Re:Ubuntu Edge by inthewind on Tuesday July 23, 2013 @03:39AM (#6088685)
( >similar to XAML from MS...< Cough; XUL!)
Re:Ubuntu Edge by vog on Tuesday July 23, 2013 @02:09AM (#6088464)
> based on Ubuntu, not controlled by the likes of Google and Apple, and with a UI based on HTML

If you don't insist on the "Ubuntu" part, FirefoxOS offers everything you want, and is available on various devices right now:

https://www.mozilla.org/en-US/firefox/os/

Re:Ubuntu Edge by rlpb on Tuesday July 23, 2013 @03:44AM (#6088698)
How does this hardware compare to FirefoxOS' hardware offerings?
Re:Ubuntu Edge by reedlaw on Tuesday July 23, 2013 @04:04AM (#6088764)
This hardware looks like it blows everything else out of the water. So far, Firefox OS hardware offerings have been on the low-end.
Re:Ubuntu Edge by vog on Tuesday July 23, 2013 @04:36AM (#6088860)
This is a bit counter-intuitive, I think, because although Ubuntu's mission is "for the people", they target high-end smartphones instead of low-end smartphones. So in relatively poor countries those Ubuntu phone won't spread that much, while FirefoxOS seems to be spreading there quite fast.
Re:Ubuntu Edge by mtgx on Tuesday July 23, 2013 @05:40AM (#6089049)
That's a good point, and I'm sure Canonical will do that in the future, too, but then they'll only be able to tout Ubuntu Touch's features and apps, not of the "full Ubuntu". The full Ubuntu needs the kind of hardware the Edge will have to get decent performance when used in PC mode. If they made it low-end, they could only use Ubuntu Touch in there, and that suffers from the same problem as FF OS - no native apps, just web apps.

After they build this "halo" device, they will be able to get some apps for Ubuntu Touch, and then build low-end phones. Ubuntu Edge is for people who want both a smartphone and a "PC", all in one (if you already have an extra monitor).

Re:Ubuntu Edge by vog on Tuesday July 23, 2013 @06:11AM (#6089123)
> suffers from the same problem as FF OS - no native apps, just web apps

In my opinion, this is one of the main features of FirefoxOS: Every app has to build on open (web) standards. No vendor lock-in, no trying to impose proprietary native APIs on the app developers.

The market would be a lot more efficient of all smartphone OS were forced to push their great features by improving and extending open standards instead of locking all interesting stuff into their proprietary so-called "native" [1] APIs.

[1] For instance, is WebGL any less "native" than other 3D APIs just because it is accessible from the JavaScript VM instead of say, some Java VM?

Re:Ubuntu Edge by rlpb on Tuesday July 23, 2013 @06:32AM (#6089169)
> No vendor lock-in, no trying to impose proprietary native APIs on the app developers.

I don't think that it's fair to characterize an OS built on Free Software as "vendor lock-in", or as the Ubuntu Touch API and implementation (which is Free Software) as a "proprietary native API".

I love the Linux Free Software ecosystem. There are multiple vendors (eg. Debian, Red Hat, Suse) and they all support multiple "proprietary native APIs" that happen to all be the same. My Qt application written on Ubuntu will run on Suse, as will my GTK one, as will my wxWidgets one. IMHO the breadth and quality available in distribution repositories far surpasses what is available in (say) Android's app store, or available in HTML5 "apps" today. Sure - there is plenty of bad software there, too. But there's good Free Software available for practically every task. Not so for the current phone app ecosystems.

Ubuntu may be the first to bring this ecosystem to the smartphone, but it doesn't necessarily have to be the only vendor for this ecosystem in the long run.

Ubuntu is bringing the Free Software ecosystem to the smartphone, and it's all under licensing that protects the FSF's four freedoms [edit: I suppose it's not all GPL, but what new code is being written is. That's as close as we can reasonably get, I think]. That's good enough for me. No proprietary APIs or lock-ins here. Even HTML5 apps don't compare, since they are typically not Affero GPL licenced.

Although binary-only proprietary apps will be permitted, AIUI, they are permitted in every other ecosystem as well. But I'll be cheering on the Free Software apps, and Ubuntu's smartphone seems to be the best way for them to become the norm (there are some great Free Software apps available on Android, but they are not the norm).

Re:Ubuntu Edge by seferphier on Tuesday July 23, 2013 @06:34AM (#6089173)
innovations trickle down to "the people". innovations requires a lot of sunk cost.

elon musk's vision is electric cars for everyone but decided to make the high end car first. Now he is slowing moving to mass market.

Re:Ubuntu Edge by ihaveajob on Tuesday July 23, 2013 @05:08PM (#6092905)
I'm salivating over the hardware specs, but you have to consider that 1 year from now they won't seem as spectacular.
Re:Ubuntu Edge by gbraad on Wednesday July 24, 2013 @04:34AM (#6095047)
From the page I can conclude the hardware is non-existent (although possible). For now it is purely a wishlist of what they 'want' to offer. Hardware is actually also a large part of the development time of a phone and software, like drivers need to be optimized for the experience. Even if they have used development boards or reference designs for the current bring-up, it would still need hardware verification and a lengthy quality assurance process. Especially related to a phone device, this means certification. I wish them a lot of luck... but it would not amaze me if it results in a vaporware project.
Re:Ubuntu Edge by fungi on Tuesday July 23, 2013 @07:49PM (#6093655)
any info on getting a shell/root/native code?