Git Product home page Git Product logo

simple-wasm-demo-md5's Introduction

md5 by webassemly

一个很简单的使用webassemly的md5算法实现例子

浏览器环境调用已有的C/C++代码来实现功能

编译C代码

emcc md5-wrap.c md5.c -O1 -s WASM=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap"]' -s ASSERTIONS=1

编译之后的产物就是

  • a.out.js
  • a.out.wasm

Tip:该项目中已经提前生成好产物

创建http容器

npm install
npm run dev

然后打开 http://127.0.0.1:9090 查看运行结果

link

simple-wasm-demo-md5's People

Contributors

ajlovechina avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

godxkey

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.