Better HN
topnewbestaskshowjobs
Log inSign up

jbrandhorst

50 karma · joined Jan 10, 2019 (7y ago) · 13 submissions

Submissions

1.

Type-safe front end APIs with Connect(oblique.security ↗)

2 points · by jbrandhorst · 10mo ago · discuss

comment 3y ago · link · parent

There's no CGO involved when compiling to Wasm. The sometimes slow performance is due to the hoops the compiled code has to jump through to support the Go runtime and goroutine preemption on a single thread.

comment 3y ago · link · parent

Exports are something we'd like to work on but it turns out it's pretty complicated to reconcile the Go runtime with the WebAssembly environment, especially when there's only a single thread. We'll get to exports as soon as we can but it may require Wasm threads to be stable first.

comment 3y ago · link · parent

FWIW the WASI support is 99% a community contribution, so unfortunately it's not much of an indicator of Google's commitment.

comment 3y ago · link · parent

The type conversion will improve in new releases. FYI recent TinyGo releases supports go:wasmimport too. The desire is definitely to allow users to use either or at least easily migrate. Thank you for trying it out!

comment 4y ago · link · parent

Accompanying tech blog post: https://www.kwoodhouse.co.uk/tech/trail-tracker

7.

Trail Tracker: Strava trail completion calculator(trail-tracker.vercel.app ↗)

2 points · by jbrandhorst · 4y ago · 1 comment

8.

Analysis of a Spotify Scammer(twitter.com ↗)

9 points · by jbrandhorst · 4y ago · 1 comment

9.

Buf raises $93M to deprecate REST/JSON(buf.build ↗)

56 points · by jbrandhorst · 4y ago · 84 comments

10.

The Serverless Application Stack(jbrandhorst.com ↗)

2 points · by jbrandhorst · 5y ago · discuss

comment 5y ago · link · parent

Mind sharing some details? I've been working on this myself and I don't have much JS ecosystem experience. I found the same issue around using tailwindcss as a postcss plugin (it basically tripled my build time), so would love to hear alternative solutions.

comment 7y ago · link · parent

I'm the author of this blog post and one of the maintainers of the Improbable grpc-web implementation.

I don't explicitly mention it in the post, but no browser has support for fetch request streaming yet, so true bidirectionality would not be possible even if you had control over the headers. This will come eventually, and then grpc-web will have proper bi-di streaming support. It is doubtful whether it will actually have access to raw HTTP/2 frames which would be required for the gRPC HTTP/2 protocol.

comment 7y ago · link · parent

Hi, I'm the author of this blog post _and_ the author of this repository - so happy to hear you're finding it useful! I agree that the grpc-gateway is very useful still, but for greenfield projects I think it would be useful to consider the grpc-web on its own merits. I see the grpc-gateway as a way to integrate gRPC into existing environments.