TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Gtk3 on a HTML5 backend

255 点作者 biehl超过 14 年前

17 条评论

kragen超过 14 年前
Does anyone else remember the X11 browser plugin? It was an X server that ran as a plugin in Netscape and IE, with a little bit of magic ("xrx") to handle authentication to the web server. So you could visit a web page and start running, say, FrameMaker in your browser.<p>There's a guide to getting it set up still alive at <a href="http://www.csn.ul.ie/~caolan/TechTexts/Broadway.html" rel="nofollow">http://www.csn.ul.ie/~caolan/TechTexts/Broadway.html</a><p>This was in 1996, in the X11R6.3 release ("Broadway"), the same release they came out with LBX, the low-bandwidth extension to X, so that you could run your X11 apps over a modem with reasonable throughput.<p>It never got much adoption. I don't really know why. My guess, though, is that it didn't address the real reasons people were moving from X11 to browser apps: server load, security, ease of administration, latency-tolerance, and ease of development.<p>Today, server load and latency tolerance are a lot less important than they were in 1996, because computers are a hundred times faster and hundreds of millions of people have ping times under 20 milliseconds, ten times faster than you'd get on a modem.<p>But security, ease of administration, and ease of development are a lot more important now than they were in 1996.<p>So, I suspect this won't get widely adopted, but it could go either way. I hope it does!
评论 #1935902 未加载
评论 #1936833 未加载
评论 #1936475 未加载
sedachv超过 14 年前
(re-posting my comment from the blog because I want to hear people's opinion)<p>This is extremely useful for getting apps written for the desktop to run on the browser for remote access and virtualization.<p>I don’t know if there are any companies with GTK3 desktop apps that need this right now, but for the past six months I’ve been working on doing exactly the same thing for JazzScheme (<a href="http://jazzscheme.org/" rel="nofollow">http://jazzscheme.org/</a>). JazzScheme has its own widget set and UI library that runs on top of Cairo. Instead of sending bitmap data across I’m providing a thin indirection layer on top of Cairo surface and HTML 5 canvas (they’re almost identical in terms of drawing commands).<p>We’re using it for a pretty involved business app that needs a desktop version. Doing a web version any other way would have been a complete nightmare.
albertzeyer超过 14 年前
The technical description:<p><i>Each toplevel window is mapped to a canvas element, and the content in the windows is updated by streaming commands over a multipart/x-mixed-replace XMLHttpRequest that uses gzip Content-Encoding to compress the data. Window data is pushed as region copies (for scrolling) and image diffs. Images are sent as data: uris of uncompressed png data.<p>Input is gathered via dom events and sent to the server using websockets.</i><p>This doesn't really sound that impressive. It's kind of cool and you could also do the same and port some RDP or VNC client over which would be even cooler. But I don't really feel that this is the way to go. It would be much nicer if the native HTML widgets would be used.
评论 #1936403 未加载
评论 #1936409 未加载
fab13n超过 14 年前
If this turns into a complete and mature implementation, I won't miss anything when Ubuntu drops X11 next year, quite the opposite!
DanielRibeiro超过 14 年前
Now this is getting serious. I was considering porting xul for web apps (with the default and obvious coffeescript dsl, so that no xml verbosity would be needed), but gtk3 is even more outstanding. Any idea when it will be out?
评论 #1935699 未加载
olalonde超过 14 年前
How come is the UI so responsive (much more than what I'm used to with remote X sessions)? Is it because both the app and the HTTP server run on the same machine?
guruz超过 14 年前
The Qt guys have a similar thing. It however needs the Google native client plugin.<p><a href="http://labs.qt.nokia.com/2010/06/25/qt-for-google-native-client-preview/" rel="nofollow">http://labs.qt.nokia.com/2010/06/25/qt-for-google-native-cli...</a><p>There's also the QWebClient which does not need a plugin, but also does not look very beautiful or native.<p><a href="http://labs.qt.nokia.com/2009/09/18/qt-in-the-cloud-with-qwebclient/" rel="nofollow">http://labs.qt.nokia.com/2009/09/18/qt-in-the-cloud-with-qwe...</a>
seanalltogether超过 14 年前
The biggest gotcha with these kinds of demos is, and always will be, keyboard input. Unless browser vendors are willing to relinquish all keyboard controls for a special kind of popup window, HTML5 VNC type solutions are dead in the water.
xtacy超过 14 年前
The GTK ports on Mac are pretty bad looking. This would make them awesomer again!
评论 #1936069 未加载
cpr超过 14 年前
This actually makes some sense (if I understand it correctly), vs. a VNC client solution in a browser.<p>You can, in theory, use the higher-level hints given at the toolkit level to optimize the bits sent for each toolkit API invocation.
pixelbath超过 14 年前
It looks cool, but (and please forgive my ignorance in this subject)...<p>Isn't this the sort of thing X was built for? Client rendering, but the underlying app in a remote server? How is rendering this in the browser more useful/cool?<p>(edit: typo)
评论 #1935689 未加载
评论 #1935797 未加载
mwg66超过 14 年前
I can think of potential use cases similar to what 280 North are doing with Atlas and Cappuccino.<p>Check out <a href="http://280atlas.com/" rel="nofollow">http://280atlas.com/</a>
评论 #1935718 未加载
vib超过 14 年前
"Each toplevel window is mapped to a canvas element" Does this means it's not crawl-able, or is it?
评论 #1936689 未加载
emehrkay超过 14 年前
Didn't some people do this with VNC a few months back? Either way, this is damn cool.
limmeau超过 14 年前
Related work: the Rich Ajax Platform, an implementation of Eclipse's SWT using the Qooxdoo Javascript framework.
travisglines超过 14 年前
Thats awesome, I'm more than a little jealous I didn't think of that.
drivebyacct2超过 14 年前
I was <i>just</i> lying on the couch thinking about this idea. Well, I have much larger, grander idea that is a mix of Palm/HP's new Mocha platform and some play at ubiquitous interfaces and data powering apps on many devices simultaneously. I was thinking though, that some of the frontends for rtorrent look neat, but still fail to look native.<p>What if the browser exposed the GTK resources and allowed web applications to render using the same visual components as native applications on the platform. That'd be sweeet.