go icon indicating copy to clipboard operation
go copied to clipboard

tinygo for embedded

Open ghost opened this issue 6 years ago • 2 comments

We should give tinygo a try. Its very active and has been reasonable. sturdy in my tests. https://github.com/tinygo-org/tinygo

It does not support 100% of the golang std though. But there is a good chance it will work. I have not tried compiling the go client with it yet. The simplest way is to use Docker as shown here: https://tinygo.org/getting-started/using-docker/

This would allow reuse of the go client on tiny embedded devices. Pretty cool if we can leverage the code and logic.

ghost avatar May 26 '19 07:05 ghost

@gedw99 Sorry for the late reply, seeing this just now. This would indeed be great, need to try to build the current version against tinygo and see if it'll work.

kelindar avatar Jun 29 '19 11:06 kelindar

@kelindar a fair few other golang packages now work with tinygo, so work a try. still a few gotchas but its getting really quite usable.

example: https://github.com/vugu/vugu works well with tinygo.

both for in browser and also when running under wasi.

gedw99 avatar Jun 19 '21 15:06 gedw99