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