5 ms·
"This will fetch a 92MB framework containing a binary distribution of the Chromium content module". Go needed a GUI, but this?
by Animats 10y ago
"This will fetch a 92MB framework containing a binary distribution of the Chromium content module".
Go needed a GUI, but this?
- IshKebab 10y agoAgreed. It would be nice if the Google guys could do something like Qt with Go, but more Go-ish and in pure Go so you can still easily cross-compile. I'd even settle for a faked native look using OpenGL.
- slimsag 10y agoHow big are the Qt binaries?
- sime2009 10y agoFor a simple app which just has a QML based UI and some networking, we are talking roughly 23MB of DLLs on Win 64. 5.3M Qt5Core.dll 5.6M Qt5Gui.dll 820K Qt5Network.dll 3.2M Qt5Qml.dll 2.9M Qt5Quick.dll 307K Qt5Svg.dll 5.3M Qt5Widgets.dll (It still might be possible to strip out Gui and Widgets though.)
- adrianratnapala 10y agoI know there are OpenGL packages for Go, but I don't think they are really "pure Go" (in the sense of not linking to any C libraries at all). At least not under X11. Unlike all the other X11 extensions, the GLX "protocol specification" doesn't define a network protocol. It defines C functions bolted on to Xlib for setting up GL contexts. In many use cases, there probably is no network at all -- just direct rendering. I don't know what the situation is on other platforms, but I guess it is similar: OpenGL is exposed as some C-based library.
- creshal 10y agoQt is moving to an HTML+JS based toolkit too with Qt Quick.
- ronjouch 10y agoThat's false. - QtQuick is "the standard library for writing QML applications." [1], providing: Models, Layouts, GraphicalEffects, States, etc. Conveniences and building blocks to build GUIs with QML. - QML itself is a declarative language totally different from HTML. Bindings are done with JS (by the way, a specific, custom implementation of it), yes, but there's no HTML anywhere. - Qt also provides the WebEngine module [2], which is an in-house packaging of Chromium. If you use this instead of QML to build your GUI, then yes you're in almost-vanilla "HTML+JS" land. But this is not QtQuick. [1] http://doc.qt.io/qt-5/qtquick-index.html http://doc.qt.io/qt-5/qtquick-index.html [2] http://doc.qt.io/qt-5/qtwebengine-index.html http://doc.qt.io/qt-5/qtwebengine-index.html
- espadrine 10y agoTrying to shoehorn a UI description in a procedural language is always going to be awkward. But we could have a compilable document language with DOM-like bindings and an event loop in Go. It's a lot harder to implement than HTML + JS, though, which already provide that for free.
- mhd 10y agoAt least it doesn't seem like the Plan9 fanboy section of the Go adopters would be inclined to use this.
- speps 10y agoGo has a cross-platform GUI framework that was used to make this mobile app : https://play.google.com/store/apps/details?id=org.golang.ivy https://play.google.com/store/apps/details?id=org.golang.ivy It's based on OpenGL ES.
- lossolo 10y agoWhich cross platform GUI framework you are writing about? Ivy was made with GO mobile which is a collection of bindings for android/ios only.
- sfifs 10y agoActually I think the standardization of HTML5/CSS3/JS as the UI framework is preferable to the extreme fragmentation that exists in the "native" UI space I think there's opportunity in packaging this as a system installed & independently updated dynamically linked library much like WebView is updated on Android KitKat onwards. Eg. a single "system" Chromium component that's installed centrally & used by multiple programs much like Microsoft Runtime DLLs on Windows.
- ravenstine 10y agoWhy? Disk space is plentiful and costs peanuts, and is becoming cheaper by the day. What's there to gain from having shared libraries other than that it's psychologically satisfying? Having been a Linux user for 12 years, I feel like it's of very limited benefit and has lots of drawbacks. Is there something I am not understanding?
- kuschku 10y agoMy / has reached 200GB now? And that's despite /home being seperate. That's the issue. With this, my / will reach terabytes. There's two things why not: cheap isn't free, and "elegancy principle": Don't build shitty hacks, build software that's easy to maintain, as minimal as possible, and will be used for decades.
- sfifs 10y agoSecurity. The same reason security libraries are distributed independently so that they can be automatically updated without the program using them being re-compiled & re-released. On the Android platform, Chromium WebView updates far more frequently than the apps that depend on it & includes security patches on update.
- hollerith 10y ago>Disk space is plentiful and costs peanuts RAM in not as plentiful, nor are level-3, level-2 and level-1 cache. having a second copy or almost-copy of a library can increase utilization of any of them.
- 10y ago