gio
sciter
Our great sponsors
gio | sciter | |
---|---|---|
62 | 84 | |
1,379 | 2,563 | |
4.4% | 0.2% | |
9.2 | 0.0 | |
21 days ago | 11 months ago | |
Go | C++ | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gio
- Why the M2 is more advanced that it seemed
-
Bare Metal Rust in Android
> At least with a language like Go, it somewhat makes sense, and has been attempted: https://gioui.org/
Gio UI is an immediate-mode UI, and immediate-mode UIs map very nicely to Rust. egui is quite easy to use. https://www.egui.rs/
I didn't bash Java/Kotlin. In fact, I have written few android apps in Kotlin, Java and I also have fiddled with Jetpack compose, JNI and NDK (I have also played with mpv's Opengl/Vulkan's rendering on Android if that matters to you). I don't want to share the projects of mine because i don't want to reveal my identity.
I know that tailscale's android application is written in it but i don't think gioui is great for android apps.
> Tell me you've never done any Android development, without telling me...All this Java/Kotlin bashing is getting really old, especially for a forum like this one.
Ok, this one hurts. Why are you attacking me instead of defending your stance. All are allowed to have opinions and I am allowed to have one(It's sad to explain this to someone on forum like this one). I dream of Linux-desktop kinda situation where you can program in any language you want, where you are not hindered by any platform/framework, where you have complete freedom and where you don't want to be bothered/(vendor locked-in) by Bigcorps(looking at you Google services framework).
> write GUIs in a non-GC language like Rust which _has_ to run on what's essentially a Java VM (ART).
Haha, non-GC languages power the GUIs on Android fyi. Jetpack compose is powered by Skia. Chromium is powered by Skia. Skia is C++.
Please do your own research before commenting low-effort replies.
Tell me you've never done any Android development, without telling me...
This is such a low-effort "take" without any effort to justify _why_ you'd want something like this. There's a high amount of impedance mismatch trying to write GUIs in a non-GC language like Rust which _has_ to run on what's essentially a Java VM (ART).
At least with a language like Go, it somewhat makes sense, and has been attempted: https://gioui.org/
All this Java/Kotlin bashing is getting really old, especially for a forum like this one.
-
net/http extension to exchange structs
I've been writing a WASM app using gio & I found myself wanting for a simplified web library. In addition I drew some inspiration from leptos server functions. A friend of mine mentioned it has some similarities with next.js
-
htmx/Go experiences?
I am building the same but with golang and https://gioui.org/
- Ideas for GUI libraries?
-
Gonum & Gonum/Plot v0.13.0
This release of Gonum/plot is in sync with Gonum-v0.13.0 and updates the vg/vggio backend to the latest Gio API.
-
Are there any popular computer applications written in Golang?
Historically, C++. Today, (unfortunately) a lot of (non-game) desktop apps are written in HTML/CSS/JS using Electron. There are projects like Fyne and GIO that aim to make Go a viable language for building large-scale performant desktop apps. My open-source hobby project Supersonic is a music player app built using Fyne.
-
Is Go appropriate to develop Linux Desktop app ?
gioui.org
sciter
-
Show HN: Dropflow, a CSS layout engine for node or <canvas>
> wondering if css and svg could be used as abstraction over graphics and UI libraries
There's another project called Sciter that uses CSS to target native graphics libraries: https://sciter.com
> I wonder how hard it was to implement css. I've heard it can be pretty complex.
It was hard, but the biggest barrier is the obscurity of the knowledge.
Text layout is the hardest, because working with glyphs and iterating them in reverse for RTL is brain-breaking. And line wrapping gets really complicated. It's also the most obscure because nobody has written down everything you need to know in one place. After I finished block layout early on, I had to stop for a couple of years (only working a few hours a week though) and learn all of the ins, outs, dos, and don'ts around shaping and itemizing text. A lot of that I learned by reading Pango's [1] source code, and a lot I pieced together from Google searches.
But other than that, the W3C specifications cover almost everything. The CSS2 standard [2] is one of the most beautiful things I've ever read. It's internally consistent, concise, and obviously the result of years of deliberation, trial and error. (CSS3 is great, but CSS2 is the bedrock for everything).
- Ask HN: Fastest cross-platform GUI stack/strategy
-
Immediate Mode GUI Programming
otherwise, if we have only retained mode as in browsers, we will need to modify the DOM heavily and create temporary elements for handles.
- This year in Servo: over 1000 pull requests and beyond
-
Rusty revenant Servo returns to render once more
I've still never used it but I've long been curious about Sciter:
- Ode to the M1
-
So you want to write a GUI framework (2021)
These bullet points are exactly what I did in Sciter (https://sciter.com)
- Windowing
-- Tabs
-- Menus
-- Painting
-- Animation
-- Text
-The compositor
-Handling input
-- Pointer input
-- Keyboard input
- Accessibility
- Internationalization and localization
- Cross-platform APIs
- The web view
- Native look and feel
On top of that DOM and CSS implementations to achieve declarative UI. And JS as a languuage behind UI - declarative in some sense way of defining UI behavior.
-
Servo, the parallel browser engine written in Rust
I'm not sure if it can support all the libraries but yes it can be used to make desktop apps. Theres also Sciter.
-
Digital Audio Workstation Front End Development Struggles
I agree web stuff is really the best way to develop UIs. Good luck making responsive stuff in C++ for example. The paradigm of HTML, CSS, and JS is extremely powerful and even allows you to use canvas, webgpu, wasm.
There are multiple commercial projects that use web dev paradigm for GUIs:
-
RePalm
I did UI part of it.
Up until last year my Sciter ( https://sciter.com ) worked on WinCE.
Dropped support after my last customer that was using WinCE decided to drop support of that OS.
WinCE had pretty solid and stable core runtime and API. Graphics was limited by GDI (no antialiasing and alpha channel) but that was the only major problem.
What are some alternatives?
fyne - Cross platform GUI toolkit in Go inspired by Material Design
webview - Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
qt - Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
imgui-go - Go wrapper library for "Dear ImGui" (https://github.com/ocornut/imgui)
go-flutter - Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
flexboard - React component library for re-sizable sidebars
RmlUi - RmlUi - The HTML/CSS User Interface library evolved
NanoGUI - Minimalistic GUI library for OpenGL
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
Wails - Create beautiful applications using Go