Get Going with WebAssembly

15th August 2018

Johan Brandhorst

Backend Developer, InfoSum

Today we will

2

WebAssembly

3

GopherJS

4

WebAssembly for Go

5

Server setup

$GOROOT/misc/wasm/wasm_exec.html
$GOROOT/misc/wasm/wasm_exec.js
var contentTypeSetter = func(h http.Handler) http.Handler {
    return http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
        if strings.HasSuffix(req.URL.Path, ".wasm") {
            resp.Header().Set("content-type", "application/wasm")
        }
        h.ServeHTTP(resp, req)
    })
}
6

Go WASM examples

7

Repulsion by Luis Figueiredo
8

Future

9

We've learned

Source: Go 1.11: WebAssembly for the gophers
10

Further reading

Source: GopherAcademy
11

Thanks to

12

Questions?

Gopher by Renée French
13

Thank you

Johan Brandhorst

Backend Developer, InfoSum

Use the left and right arrow keys or click the left and right edges of the page to navigate between slides.
(Press 'H' or navigate to hide this message.)