cilame / go_wasm Goto Github PK
View Code? Open in Web Editor NEW虽然感觉 go 可以直接做现成的 vm 。不过一旦调用系统函数,就还是会出现一些问题。目前观察下来,用 wasm 少数非常大的好处就是所有的算数运算就不会被捕捉到参数了。另外还有少量的 go 函数直接使用不会被挂钩系统函数捕捉到,比如 Date 比如 Random 比如各种 go 加密库的使用。
虽然感觉 go 可以直接做现成的 vm 。不过一旦调用系统函数,就还是会出现一些问题。目前观察下来,用 wasm 少数非常大的好处就是所有的算数运算就不会被捕捉到参数了。另外还有少量的 go 函数直接使用不会被挂钩系统函数捕捉到,比如 Date 比如 Random 比如各种 go 加密库的使用。
从官网上找 golang 1.15 版本安装 ( tinygo 目前只能支持 1.11-1.15 ) 从 git 上找到 tinygo 0.16 安装 ( 必须使用 tinygo 来编译 wasm 不然,go 编译的 wasm 体积太大了。 ) 工具若是下载慢可以考虑直接在下面的地址下载。 链接:https://pan.baidu.com/s/1Jiz9x2VZxIEi7VP7Zb3xog 提取码:3bda 下载完分别解压到不同路径,将 go.exe 和 tinygo.exe 的路径加入环境变量即可使用。 双击 run.bat 或者在命令行执行 run.bat 即可编译并启动 127.0.0.1:80 端口进行调试。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.