3 ms·
Agreed. 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 s
by IshKebab 10y ago
Agreed. 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.