CosmWasm / cosmwasm-go

Enabling CosmWasm smart contracts in Go using TinyGo
Apache License 2.0
29 stars 8 forks source link

WIP:Confirm suitable json runtime lib in tinyGo #1

Closed KamiD closed 4 years ago

KamiD commented 4 years ago

Summary

cosmwasm-go need support json runtime lib at tinyGo environment, we need found out suitable lib, also need do some test under tinygo->wasm

Proposal


For Admin Use

ethanfrey commented 4 years ago

You can take a look at https://www.vugu.org/doc/tinygo which may be the most advanced project I know of built on TinyGo (web framework). Both their build instructions and their choice of libraries can be a good guide to what we can use.

louisliu2048 commented 4 years ago

You can take a look at https://www.vugu.org/doc/tinygo which may be the most advanced project I know of built on TinyGo (web framework). Both their build instructions and their choice of libraries can be a good guide to what we can use.

Yeal, a good advice! Currently, easyjson and ffjson all relay on encoding/json package, while tinygo does't support!

ethanfrey commented 4 years ago

After some digging, I found this is what they use in vugu. https://github.com/vugu/vjson

It would be good to get in touch with them regarding libs and their docs do show some nice build docs to get tinygo working

KamiD commented 4 years ago

Hi there, the lib of jsonparser can compiled by tinygo -target wasm, I have tested it in my dev environment @louisliu2048 @ethanfrey

KamiD commented 4 years ago

we are using both of them, also we need create a new repo for develop on jsonparser and vsjon

ethanfrey commented 4 years ago

Great work