Better HN
topnewbestaskshowjobs
Log inSign up

bradpeabody

68 karma · joined Jan 18, 2017 (9y ago) · 17 submissions

Submissions

1.

In 2026 T-Mobile gives me an IPv6 /64 without prefix delegation(github.com ↗)

4 points · by bradpeabody · 5mo ago · discuss

2.

Cgo-ta-lib: TA-Lib Go bindings using embedded source, cross platform(github.com ↗)

3 points · by bradpeabody · 8mo ago · discuss

comment 7y ago · link · parent

There are some setbacks, but it's definitely still being worked on.

comment 7y ago · link · parent

Interesting, I'll add it to the issue here - https://github.com/vugu/vugu/issues/25 - needs more compatibility testing for sure.

comment 7y ago · link · parent

I can't comment on Wails but Vugu is for building front-end code that runs in-browser, written in Go and running via WebAssembly. You can make calls to the backend however you like, it doesn't impose much at all in this regard except as it relates to updating the UI/DOM.

comment 7y ago · link · parent

There is nothing in the Vugu project which will prevent proper accessibility standards from being used (as others here have mentioned it will output whatever you ask it to). It's a valid point that examples should include such features where relevant.

comment 7y ago · link · parent

This is more or less the exact discussion I had with a co-worker recently on structuring large database-driven projects in Go. It would be interesting to hear how other people have decided to represent their database entities and corresponding relationships in Go.

8.

Go Structs for Database Tables and Relations, a Faustian Bargain(peabody.io ↗)

2 points · by bradpeabody · 7y ago · 1 comment

comment 7y ago · link · parent

Yup. That's part of the "experimental" experience. :) (Although that wasm file should be gzipped, will double check what's up with that). More info on the size of Go's wasm binaries here: https://github.com/golang/go/wiki/WebAssembly#reducing-the-s...

The doc site is a prototype and proof-of-concept using Vugu. First attempt, just wrote it last week. Lots of optimizations still needed for sure.

comment 7y ago · link · parent

Yeah, I still need to write a lot more docs and examples (not to mention implement a lot more feature), but the site does have some useful stuff. I'm also making a "playground" and will link to it prominently from the github readme when it's avail.

comment 7y ago · link · parent

Yeah the data marshaling is definitely a big topic. For now you have to just http.Get() stuff from the wasm code to an API on a server. No doubt some solutions with a lot less boilerplate would be really handy.

comment 7y ago · link · parent

Thanks for the tip, I agree. I'm thinking of making a "playground" also, which would help with quickly showing how it works and allowing people to fiddle with it easily.

comment 7y ago · link · parent

I put this together as a prototype of what it would look like if we had something like .vue files that were converted to Go, built to WebAssembly. So far I don't hate it.

It's basically a go-generate-time tool that parses a .vugu file similar to a vue file but the expressions in it are Go code. It spits out a big function that, when run, produces the resulting virtual DOM - with conditionals, loops, etc.

Some tooling helps with this so you can rebuild automatically on page load and so forth, but the above is the basic idea. Curious what people think.

14.

Vugu: Experimental library for web UIs written in Go and targeting WebAssembly(github.com ↗)

95 points · by bradpeabody · 7y ago · 25 comments

15.

tmeta: Minimalistic Idiomatic Database “ORM”(ish) Functionality for Go(github.com ↗)

1 points · by bradpeabody · 8y ago · discuss

16.

Wouldn't It Be Simpler Without a Router? Pattern for HTTP Request Handling in Go(peabody.io ↗)

2 points · by bradpeabody · 8y ago · discuss

17.

Browser Push Techniques: Pre-Medieval to Modern Day(peabody.io ↗)

2 points · by bradpeabody · 9y ago · discuss