News for hackers. Stuff that matters.
Re:Kendo UI - a framework for modern HTML UI by WayneDB on Monday September 12, 2011 @04:16PM (#2988721)
I apologize in advance if this opinion offends anyone, but every HTML UI kit that I've seen simply can't hold a candle to native kits such as WinForms, WPF or even Cocoa. I would really love a write-once browser based solution, but I just can't see that type of solution ever catching up to native tech.

How long do we have to wait before the browser can catch up? Do you think it will ever happen?

The closest thing that I've ever seen is Silverlight. With it I've been able to make some very excellent front-ends, with EASE, that look and behave identically between Mac and Windows. EDIT: The only challenge with Silverlight has been wheel-scrolling, which works fine on Windows but only works in Out-Of-Browser on the Mac.

Re:Kendo UI - a framework for modern HTML UI by nadam on Monday September 12, 2011 @05:23PM (#2988965)
I am working on a UI lib which is written in Javascript and completely painted on HTML5 canvas. I know, crazy idea... I got rid of the incompatibilities of the browsers, I got rid of DOM: I defined my own event system, component graph, etc... This will be someting like a traditional desktop component based UI, just in javascript, in the browser. Styling will be far more advanced than CSS: you can even inject a custom paint method into a component from a stylesheet. (stylesheets will be javascript classes). Also it will have advanced dynamic layout. (min/max/preferred sizes, weights, gridpanel with colspan, rowspan, etc...)

I am doing it in my free time (at nights), because I have no funding: it is a quite huge undertaking: I am ready with 5300 lines of code, but I still need a couple of weeks just to release a very early demo. My secret aim is to make it a flash/flex killer in the long term. In the very long term:)

Re:Kendo UI - a framework for modern HTML UI by mortenjorck on Monday September 12, 2011 @06:12PM (#2989080)
You have my attention. Does this project have any kind of Twitter or mailing list yet?
Re:Kendo UI - a framework for modern HTML UI by nadam on Tuesday September 13, 2011 @01:03AM (#2990022)
Thanks. Not yet, but I will release a website and a 0.1 version in two weeks. I will also write a 'please review' post on HN.
Re:Kendo UI - a framework for modern HTML UI by de90 on Monday September 12, 2011 @07:21PM (#2989273)
But won't using the canvas for this eliminate the compatability in older browsers? Which not caring for older browsers would help resolve a lot of the pains of working with the front end in browsers...
Re:Kendo UI - a framework for modern HTML UI by protomyth on Monday September 12, 2011 @06:45PM (#2989184)
It will be interesting to see how you will deal with ADA guidelines.
Re:Kendo UI - a framework for modern HTML UI by ootachi on Tuesday September 13, 2011 @10:42AM (#2991647)
In my experience it's going to be very hard to make moving elements around performant, unless you're using multiple canvases (which is basically just using the DOM) or you use WebGL. How are you going to solve this problem?
Re:Kendo UI - a framework for modern HTML UI by nadam on Tuesday September 13, 2011 @11:37AM (#2991918)
My main loop is something like this:

10 STYLING

20 LAYOUT

30 PAINTING

40 GOTO 10

At styling and layout I use dirty flag managment, so that branches of the component tree is restyled or layed out only if needed. This kind of dirty-management makes stuff a bit more complicated than otherwise, but this is a tradeoff. At painting I did not implement caching (painting to a memory buffer) and dirty flag management yet, but here I will also do optimizations in the future. This is a bit tricky, as painted components can have alpha/trasparency.

The most serious bottleneck will be probably painting (everything else can be addressed with algorithmic optimizations). At the beginning of the project I've looked at canvas painting benchmarks, and I decided canvas performance is already quite good. The slowest is drawing texts, but even that is not that terribly slow. I expect that canvas performance will improve in the browsers in the future so time works for me. Currently my samples' performance feels acceptable, although I did not do serious performance tests yet (and as I mentioned I did not implement the most agressive optimizations regarding painting yet.)

TL;DR: Making this fast is quite challenging, but not undoable I think.

Re:Kendo UI - a framework for modern HTML UI by roel_v on Tuesday September 13, 2011 @05:21AM (#2990626)
Why don't you just write a Canvas backend for an existing toolkit like gtk or qt? You'll never be able to implement all the details of a sufficiently wide range of controls on a one-man (or even 10) part time basis.
Re:Kendo UI - a framework for modern HTML UI by nadam on Tuesday September 13, 2011 @06:45AM (#2990814)
The biggest fun of the project was that I was completely free to design the system from the ground up (except the canvas drawing functions). Regarding the amount of work I have to be strategical. I try to concentrate on a relatively small core system: get the philosophy right, tune the performance as much as possible. The components which are 'ready' right now: Window, Button, ScrollBar, ScrollPanel, GridPanel, TextEditor, StaticDoc. (StaticDoc is a read-only RichText component, kind of the original HTML.) The other absolute necessary things needed in the near future: TabPanel, DataTable, CheckBox, ComboBox.

To go further I will certainly need outside help (either other programmers or funding or third party component creators). I cannot create a huge component lib myself. But 10 people can do lots of things I think.

Re:Kendo UI - a framework for modern HTML UI by sagarm on Tuesday September 13, 2011 @07:29AM (#2990934)
Re:Kendo UI - a framework for modern HTML UI by WayneDB on Monday September 12, 2011 @06:32PM (#2989135)
Looking forward to seeing this!
Re:Kendo UI - a framework for modern HTML UI by wslh on Monday September 12, 2011 @04:31PM (#2988774)
I completely agree and I am very sad that a lot of people can't be rational about this. The vision of HTML5 may be towards that direction, but when I do a simple test with SVG and found ugly issues on Google Chrome (I move a specific object but it left a trail behind) then I understand that we are far from there, may be 2 years in development and business terms?

Also the development side, something like the criticized old Visual Basic, an IDE where you can quickly design a rich UI with a lot of controls. It will be an irony if the best IDE for HTML5 came from Microsoft on Visual Studio >= 2012? http://webcache.googleusercontent.com/search?q=cache:zNKE5vp... Macromedia, Google et al have opportunities but they move slowly in this direction.

It's also strange to be developing and debugging CPython using Visual Studio http://pytools.codeplex.com/

Re:Kendo UI - a framework for modern HTML UI by Me1000 on Monday September 12, 2011 @05:23PM (#2988968)
Cappuccino is the best implementation out there, because the most important thing we strive for is conformance with Cocoa behavior. Cappuccino is certainly at par with Cocoa with most things.
Re:Kendo UI - a framework for modern HTML UI by pbreit on Monday September 12, 2011 @05:13PM (#2988931)
Considering that Silverlight is a download, I would not place it in this category.

Someone mentioned Sencha already. The other strong offering is Cappuccino.

Re:Kendo UI - a framework for modern HTML UI by toni on Tuesday September 13, 2011 @06:21AM (#2990748)
280 Atlas[1] is another option.

[1] http://280atlas.com/

Re:Kendo UI - a framework for modern HTML UI by Me1000 on Tuesday September 13, 2011 @11:20AM (#2991826)
Atlas is no longer pinko ally available, and on top of that... It is Cappuccino.
Re:Kendo UI - a framework for modern HTML UI by firemanx on Monday September 12, 2011 @04:34PM (#2988796)
I'm in the same boat. The problem I keep finding with a lot of these UI libs is that they don't have layout managers. We settled on dojo because we wanted an open source option with a layout manager, but it's got other headaches we need to deal with.
Re:Kendo UI - a framework for modern HTML UI by statictype on Tuesday September 13, 2011 @03:11AM (#2990325)
Maybe stop trying to make browser-based apps look native?

Web apps have their own distinct style of UI that works cross-platform and has its own strengths (and weaknesses).

Trying to build web apps with UIs that try to match that of native apps is a losing proposition.

Re:Kendo UI - a framework for modern HTML UI by sunchild on Monday September 12, 2011 @09:11PM (#2989543)
I'm the last one to hold his breath for fear of vaporware, but I have high hopes for a new Sproutcore UI kit. I want robust client-side UI elements that bind easily to a REST API. I feel like we're right on the cusp of that revolution.
Re:Kendo UI - a framework for modern HTML UI by jakejake on Monday September 12, 2011 @04:52PM (#2988856)
I think Sencha is possibly the closest to that for the web right now. I find it fairly similar to writing form-based desktop applications.
Re:Kendo UI - a framework for modern HTML UI by dreamdu5t on Monday September 12, 2011 @05:20PM (#2988956)
Sencha isn't even remotely cross-platform, with support restricted to the latest webkit-based browsers with decent CSS3 support. Sencha's UI is pretty bad on any other device but an iPhone.
Re:Kendo UI - a framework for modern HTML UI by eschutte2 on Monday September 12, 2011 @05:28PM (#2988974)
It sounds like you're talking about Sencha Touch, which is very different from the desktop version (ExtJS).
Re:Kendo UI - a framework for modern HTML UI by dreamdu5t on Tuesday September 13, 2011 @01:04AM (#2990026)
Correct, I meant Sencha Touch.
Re:Kendo UI - a framework for modern HTML UI by wladimir on Tuesday September 13, 2011 @04:38AM (#2990537)
Yes, it is very convenient to work with if you're used to programming desktop UIs. I found that ExtJS is great for (admin) backends especially now that it integrates charting.
Re:Kendo UI - a framework for modern HTML UI by dfreire on Monday September 12, 2011 @04:57PM (#2988877)
... and SmartClient.