15 karma · joined Apr 26, 2021 (5y ago) · 49 submissions
comment 1y ago · link · parent
They are doing a huge service for developers that just want to build stuff and not get into the platform wars.
https://github.com/cogentcore/webgpu is a great example . I code in golang and just need stuff to work on everything and this gets it done, so I can use the GPU on everything.
Thank you rust !!
comment 1y ago · link · parent
It uses a simple crdt table structure, and allows me to have many live SQLite instances in all data enters.
A Nat Jetstream server is used as a core with all SQLite DBS connected to it.
It operates off the WAL and is simple to install.
It also replicates all blobs to S3 , with the directory structure in the SQLite db.
With a Cloudflare domain , the users request is automatically sent to the nearest Db.
So it replaces cloudscapes D1 system for free . Just a hetzner 4 euro cos is enough.
Mine is holding about 200 gb of data.
comment 1y ago · link · parent
It does not work with wasi.
I just use a simple driver:
https://github.com/syumai/workers
Wasi is so painful that I just write all my golang using stdio and have a shim per runtime. Web browser, Cloudflare, server ( with wazero ).
The new go:wasmexport might be useful in go 1.24 but I highly doubt by it.
comment 2y ago · link · parent
Same but in golang
Used by gio, Fyne and ebiten golang gui projects
comment 2y ago · link · parent
It’s a self hosted Cloudflare.
It uses nats Jetstream , as a work around to Nat having bog / anycast , like how Cloudflare does its magic.
https://github.com/synadia-io/nex
You have to run it on bare metal or any cloud that supports next virtualisation.
I use nats Jetstream listening to git repo web hooks to deploy.
comment 2y ago · link · parent
also can use GitHub
comment 2y ago · link · parent
https://extensions.htmx.org/ Has a big where the “no-load” extension is listed twice
comment 2y ago · link · parent
V0.6 made your issues much less tricky.
Also there is a Material Design theme. And also light and dark.
Here is an excellent example of a gioui app that has light / dark with a custom theme.
https://github.com/chapar-rest/chapar
If you’re on MAC or Windows it’s just “ go run .”.
If you wanted text keening or text sweeping around an arc or RTL / LRT it can do it thanks to github.com/go-text/typesetting
Complex widgets for Calendar spinners or diagrams are out there on GitHub. An effort to bring these together is lacking, and I reckon that if all these things weee brought together it would definitely encourage more developers to dive in.
comment 2y ago · link · parent
When I need a web gui I use a gioui plugin system here: https://github.com/gioui-plugins/gio-plugins
WebViews work on web, desktop and mobile. It’s amazing. Deep linking also so you can send out a link to an email or Monike notification and the users app will open the gio gui in the right part of the gui.
It also has notifications and share extensions for all OS’s. It’s really a complete system. I can’t believe how much devs complain about things not being easy , when it’s all there. I definitely share the feelings that’s it’s so hard to support so many OS’s, but it’s the world we live in - plurality.
I like how I can do all of this with only golang , instead of switching between bits and bobs.
I always write my golang backend to work with gio and html.
So if I need SEO or video playback I can still do it in a web view and also keep googles seo happy for the gio web. I just use Hugo and feed it markdown. This is what Google SEO sees.
comment 2y ago · link · parent
https://github.com/sveltecult/franken-ui/tree/master/src/lib...
I am using golang and htmx and am looking around for a simple html based system .
Daisyui or something might work
comment 2y ago · link · parent
https://github.com/delaneyj/datastar
https://data-star.dev/examples
The way SSE is done is pretty cool as well as the NATS server integration.
The 3D aspects with htmx looks talk fab too
comment 2y ago · link · parent
The next request hits the service worker and then gets any json from the server ( if not cached ) and returns the html fragment.
It uses htmx .
I thought it was a nice have your cake and eat it too
comment 3y ago · link · parent
It’s reactive native using htmx.
Less hungry than react and simpler to develop on.
comment 3y ago · link · parent
Coroutines can explicitly yield control to their callers and other coroutines and send and receive data across yield points.
https://github.com/stealthrocket/coroutine has the code and a basic sample.
28.
Coroutines for Golang(stealthrocket.tech ↗)
3 points · by gedw99 · 3y ago · 1 comment