Skip to content

piotrkabacinski/wasm-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hello, Wasm! πŸ‘‹

My humble test projects using WebAssembly for Hacklab meetup.

πŸ™ Setup

Output wasm files are included in the repository. If you would like to play with source C/C++ files you need to install Emscripten complier first.

For more details, go to Emscripten docs.

$ git clone https://github.com/emscripten-core/emsdk.git
$ ./emsdk/emsdk install latest
$ ./emsdk/emsdk activate latest

# Update certificate if need:
$ open /Applications/Python\ 3.7/Install\ Certificates.command

# Setup local envs and you're ready to go:
$ source ../emsdk/emsdk_env.sh --build=Release
# Compile all projects:
$ make

# Compile specific one:
$ make sha256
$ make createZip

...and launch local server in selected project's directory.

Projects ✨

  1. sha256 Calculator

Convert input value to sha256 hash using C++ library.

Live Demo

  1. ZIP creator

POC: create ZIP package locally (using C Zip library) with provided files via browser's File API.

Live Demo

Licence

MIT

Used libraries have their licence files included in src directories.

About

Exploring Web Assembly πŸ”¦

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published