winlamb
gio
Our great sponsors
winlamb | gio | |
---|---|---|
14 | 62 | |
317 | 1,379 | |
- | 4.4% | |
4.6 | 9.2 | |
9 months ago | 20 days ago | |
C++ | Go | |
MIT License | 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.
winlamb
- Cross-platform file mapping
- What middleware would you like
-
dear imgui as a Qt Widgets Alternative?
The first thing that came into my mind was: why not simply go fully native, with the aid of something like WinLamb? Often you can roll your own custom controls quicker than a cross-platform library.
-
Rust takes a major step forward as Linux's second official language
I write C++ and raw Win32 for more than 20 years. I'm the author of this, and I'm rewriting my personal stuff in Rust just for fun.
-
Is WinUI the most modern GUI library for C++ desktop applications on Windows?
I wrote a very thin C++11 wrapper for Win32 a few years ago, in case you're interested: WinLamb. It won't do everything, it just covers window creation and messaging, and leaves room to plug any other Win32 stuff on top of it.
-
Your first Rust project: How bad was the first working version in the context of what you know about the language today? If given the ability to change those early days of learning Rust, what changes would you make?
Given my C++ Win32 background, the very first thing I tried was to write a native Win32 GUI app in Rust. It later became the WinSafe crate, which is strikingly similar to WinLamb C++ lib. The Rust experience was awesome. The correctness of the type system was something I really appreciated, things C++ cannot give you.
-
Which GUI platform and why?
I write native Windows stuff sometimes, and I use Windigo, which I wrote based on my WinLamb C++ lib. It's a GUI system over raw Win32, so this has the disadvantage that you'll have to learn some Win32... but it has the advantage that you have the unleashed power of Win32 at your fingertips.
-
What is an idiomatic rust equivalent of C# events?
I used this pattern in my C++ lib, and I just translated it to Rust idioms. The trickiest part is working under Rust's ownership system – the borrow checker is really unforgiving.
-
Creator of Rufus outlines the problems with Microsoft's UWP
There's a low level wrapper, and on top of the wrapper there's a new API to use native controls and create custom windows (the gui module). It was based on WinLamb, which is a C++ lib.
-
WinSafe: Win32 GUI and related APIs in safe, idiomatic Rust - after 1 year and 5 months of development, first experimental version is finally here
Today I have a bunch of native Win32 applications, all C++, most of them slowly incorporating C++17 features. Some of them are built upon WinLamb library. Some of them are 20 years old, packed with all sorts of tricks. (I think I can be considered one of those "old Win32 dinosaurs".)
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
What are some alternatives?
fyne - Cross platform GUI toolkit in Go inspired by Material Design
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.
Wails - Create beautiful applications using Go
fyne-x - Community extensions to the cross platform GUI in Go based on Material Design
giu - Cross platform rapid GUI framework for golang based on Dear ImGui.
go-astilectron - Build cross platform GUI apps with GO and HTML/JS/CSS (powered by Electron)
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
webview - Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
shadcn/ui - Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
qt - Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
gotk3 - Go bindings for GTK3