top | item 8921649

(no title)

fat0wl | 11 years ago

i kindof believe all languages should have some ability to run with a browser-based GUI... why bother with all the hair-brained implementations (Swing, Qt, etc.) when we could just have a "desktop mode" (altered security) version of Chrome pop up to provide GUI. it wouldnt even have to follow same rules as browser really (navigation could be via buttons only, no back/refresh), just be based on html & perhaps js to allow a bit of advanced nav logic (though hopefully not enough to start polluting app logic)

i believe chrome apps may have some steps toward this, though not sure... at 1 point i considered trying to make a browser-based GUI that does all local RPC communication to a c++ app, but i feel like you know.... there should be a nice standard way of doing this out there

discuss

order

martian|11 years ago

I think this is easier than you think. About 8 years ago I was working on a big project in Qt that was two parts -- one part a 3d rendering engine, one part an interactive web view. Having the two interoperate was surprisingly straightforward, and we could do all kinds of HTML/CSS layouts and use JavaScript hooks to call to the Qt classes. I can't imagine it's regressed much since then, though I'll admit it's been a while since I touched it.

PhoneGap provides this kind of experience for mobile.

The issue always ends up being performance -- running the JS runtimes in sandboxed webviews is always* slower than native code.

Gurkenmaster|11 years ago

Well Java 8 ships with webkit for JavaFX but almost nobody uses it.

pjmlp|11 years ago

Given that most enterprises are still migrating to Java 6, that is to be expected.