wagon icon indicating copy to clipboard operation
wagon copied to clipboard

Implementing Go-specific features

Open vibhavp opened this issue 8 years ago • 1 comments

Because wagon will be primarily designed for golang, it also needs to implement features that are native to Go: maps, interface/type assertion, and most importantly, goroutines. As wagon will primarily consume wasm code translated from Go, does it make sense to use intrinsic functions to implement them? For instance, wagon would provide the function __gocall to call functions on a new goroutine:

(call $__gocall
 (get_local $func)
 )

Similarly, functions __hashaccess and __hashwrite could be used to work with maps.

vibhavp avatar May 07 '17 13:05 vibhavp

I think it is fair. However, I can't seem to have a good grasp at how it would work for channels.

How would you specify generic channel data sending / retrieving ?

Spriithy avatar Nov 02 '17 15:11 Spriithy