Code Monkey home page Code Monkey logo

cilame / go_wasm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

虽然感觉 go 可以直接做现成的 vm 。不过一旦调用系统函数,就还是会出现一些问题。目前观察下来,用 wasm 少数非常大的好处就是所有的算数运算就不会被捕捉到参数了。另外还有少量的 go 函数直接使用不会被挂钩系统函数捕捉到,比如 Date 比如 Random 比如各种 go 加密库的使用。

HTML 94.90% Go 3.84% Batchfile 0.35% Python 0.92%

go_wasm's Introduction

从官网上找 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 端口进行调试。

go_wasm's People

Contributors

cilame avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.