olin icon indicating copy to clipboard operation
olin copied to clipboard

Go Runtime Support

Open Xe opened this issue 5 years ago • 0 comments

  • [ ] Timeouts/Callbacks https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L263 https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L282
  • [ ] HTTP transport
  • [ ] global.fs -> glue to abi.File?
    • [ ] writeSync https://github.com/golang/go/blob/0fe1986a72ea578390d4909988a1d7cb3a687544/misc/wasm/wasm_exec.js#L37
    • [x] write https://github.com/golang/go/blob/0fe1986a72ea578390d4909988a1d7cb3a687544/misc/wasm/wasm_exec.js#L46
    • [x] open https://github.com/golang/go/blob/0fe1986a72ea578390d4909988a1d7cb3a687544/misc/wasm/wasm_exec.js#L53
    • [ ] read https://github.com/golang/go/blob/0fe1986a72ea578390d4909988a1d7cb3a687544/misc/wasm/wasm_exec.js#L58
    • [ ] fsync https://github.com/golang/go/blob/0fe1986a72ea578390d4909988a1d7cb3a687544/misc/wasm/wasm_exec.js#L63
    • [ ] stat https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L206
    • [ ] fstat https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L91
    • [ ] readdir https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L92
    • [ ] mkdir https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L128
    • [ ] rmdir https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L226
    • [ ] unlink https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L218
    • [ ] chmod https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L234
    • [ ] fchmod https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L239
    • [ ] rename https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L281
    • [ ] truncate https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L289
    • [ ] ftruncate https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L294
    • [ ] readlink https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L322
    • [ ] link https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L341
    • [ ] symlink https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L352
  • [x] global.fs.constants https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L23
    • [x] O_WRONLY
    • [x] O_RDWR
    • [x] O_CREAT
    • [x] O_TRUNC
    • [x] O_APPEND
    • [x] O_EXCL
  • [ ] global.crypto
    • [ ] getRandomValues https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L72
  • [ ] global.performance
    • [ ] now https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L80
  • [ ] global.TextEncoder https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L87
  • [ ] global.TextDecoder https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L92
  • [ ] global.process
    • [ ] cwd https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L300
    • [ ] chdir https://github.com/golang/go/blob/dc75744f9c16e6af08f3e4677f28850b874ecc51/src/syscall/fs_js.go#L310
  • [ ] envvar/arg population https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js#L414
  • [ ] artificially lower ram usage of Go modules

Xe avatar Mar 21 '19 05:03 Xe