4 ms·
Does it compile to native HTML5+Javascript? From looking at it, it seems that it doesn't - that it is running the app in the server and updating the screen in
by altrego99 15y ago
Does it compile to native HTML5+Javascript?
From looking at it, it seems that it doesn't - that it is running the app in the server and updating the screen in HTML5 canvas. It would be cool if it compiles the code to Javascript though... so that you get complete client side platform independent apps out of the current entire Gnome repository!
- plaes 15y agoWould you imagine what happens with speed when all the code is compiled into javascript (megabytes of it) and gets loaded into browsers VM?
- noahl 15y agoGTK itself will probably never do that, because it doesn't include any sort of language-processing code (as I understand it). Adding code to GTK that could translate programs between languages would be a huge increase in complexity and scope. However, a project like GCC could certainly do that. If someone really wanted that to happen, they could add a Javascript code generator to GCC and pair that with GTK's HTML5 backend to produce something like what you want.
- wazoox 15y agoProbably an easier way would be a Glade-XML to HTML5 translator (an HTML5builder instead of GTKbuilder).
- AntiRush 15y agoCombining this with emscripten (http://www.emscripten.org http://www.emscripten.org) would probably be quite doable and very cool.