macdriver
qmux
macdriver | qmux | |
---|---|---|
13 | 4 | |
4,350 | 223 | |
- | - | |
7.9 | 0.0 | |
about 2 months ago | about 2 years ago | |
Go | Go | |
MIT License | MIT License |
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.
macdriver
- Are there native bindings for native UI development with Go? Window, GTK, MacOS
-
Towards the Personal Potential of Software
The first big release of the year was the macdriver project, which got a significant response on Hacker News. It gives us Objective-C and Apple framework bindings for Go, letting you build simple Apple apps entirely from Go. That wasn't possible before, so it was a little exciting, but it was early. The native Go APIs included for commonly used Foundation and Cocoa classes were far from complete. They could still be used if you knew what you were doing, but with an ideal of total coverage of Apple frameworks, that wouldn't be enough. There were also unresolved issues just deciding how to best manage memory and pointers, which I knew would fall on me to figure out and take some time.
-
Apple API schemas for code generation and more
Even less common are schemas for non-web APIs. In 2016, Electron started releasing a JSON schema of all their APIs that allowed me to build a bridge to use Electron APIs from Go. I had that prototype in mind when I started the macdriver project that was released a couple months ago. Right now we're manually wrapping Apple framework classes with Go types so you can write native Apple platform applications that look like this:
-
Customize your computer screen with HTML
It started as a demo for macdriver, but over the last week or so I've been making a standalone version. 90% of that time was playing around with it while trying to make demos.
-
Native Mac APIs for Go
Done https://github.com/progrium/macdriver/issues/12
qmux
-
Making programs interact using qtalk
The connection multiplexing layer is based on qmux, a subset of SSH that I've written about previously. It was designed to optionally be swapped out with QUIC as needed. Either way, everything in qtalk happens over flow-controlled channels, which can be used like embedded TCP streams. Whatever you do with qtalk, you can also tunnel other connections and protocols on the same connection.
-
Towards the Personal Potential of Software
Unrelated to macdriver, I released a protocol called qmux with a post explaining why this (but really any) muxing protocol, including and especially QUIC, is such a great primitive for network programming. The project came with two implementations, Go and TypeScript, with more on the way. The post about it was the first explainer article I'd done in a while and people liked it. This was important because the idea behind it was really more valuable than the protocol itself, but regardless we still need implementations of it to exist. To show the idea in action, I built a 130 line version of Ngrok, which turned into a great post walking through how it works.
-
Building your own Ngrok in 130 lines
What qmux does is give us a subset of the SSH protocol to multiplex many connections over a single connection. It was the missing piece of my original Twisted prototype. You can read more about how there aren't a lot of these protocols (but perhaps with QUIC are also the future of the Internet) in my previous post.
-
The History and Future of Socket-level Multiplexing
If nothing else, I hope people use this story as inspiration to think about using multiplexing to design better, simpler application protocols. Even if for some reason QUIC isn't the future, you now have qmux!
What are some alternatives?
appify - Create a macOS Application from an executable (like a Go binary)
localtunnel - Expose localhost servers to the Internet
micromdm - Mobile Device Management server
topframe - Local webpage screen overlay for customizing your computing experience
go-smc - Golang library to read and write the OSX System Management Controller (SMC)
webtransport - WebTransport is a web API for flexible data transport
go-pmset - Go library to get OSX assertions, like the command line pmset -g assertions
macschema - Toolchain for generating JSON definitions of Apple APIs
goplay2 - Airplay 2 Receiver written in Go
go-vhost - HTTP/TLS hostname multiplexing library for Go
ludo - A libretro frontend written in golang
qtalk-go - versatile stream IO and RPC based IPC stack for Go