~eliasnaur/gio#151: 
tinygo compilation

This is the only working example that i could find to show tinygo being used to compile golang to WASM for browsers

Its all here:

https://github.com/vugu/vugu/blob/master/devutil/tinygo-compiler.go

Which uses: https://github.com/vugu/docker-vugu-tinygo-dev

  • this does nothing special and is just a convenience.

This is the example that shows it:

https://github.com/vugu-examples/tinygo

I plan to have a go at this approach, but wanted to let others know also as they may have their own thoughts on this.

It would be cool to get this working as the WASM code will go from 8 MB to 400 KB in general for basic projects.

Status
REPORTED
Submitter
~joe-getcouragenow
Assigned to
No-one
Submitted
6 months ago
Updated
2 months ago
Labels
No labels applied.

~inkeliz 2 months ago*

Seems that Tinygo supports go modules, and the go.mod.

I'm trying to build using Tinygo. But even after some changes on Gio source-code the compiler still running, without any error and any success. I wait some couple of hours to see what happens. I think it'll not work, but I'm really interesed on the tinygo support.

EDIT: It return "LLVM ERROR: out of memory", without any clue to fix.

Register here or Log in to comment, or comment via email.