HNHacker News
TopNewBestAskShowJobs

jbrandhorst

50 karma · joined January 10, 2019

submissionscomments
jbrandhorst··on WASI Support in Go
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.
jbrandhorst··on WASI Support in Go
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.
jbrandhorst··on Go 1.21 Release Candidate
FWIW the WASI support is 99% a community contribution, so unfortunately it's not much of an indicator of Google's commitment.
jbrandhorst··on Go 1.21 Release Candidate
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!
jbrandhorst··on Trail Tracker: Strava trail completion calculator
Accompanying tech blog post: https://www.kwoodhouse.co.uk/tech/trail-tracker
jbrandhorst··on Esbuild 0.9
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.
jbrandhorst··on The state of gRPC in the browser
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.

jbrandhorst··on The state of gRPC in the browser
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.