{"id":13341549,"url":"https://github.com/BaseMax/FirstWebAssembly","last_synced_at":"2025-03-11T22:31:06.702Z","repository":{"id":151535352,"uuid":"197740483","full_name":"BaseMax/FirstWebAssembly","owner":"BaseMax","description":"Getting Started With WebAssembly technology.","archived":false,"fork":false,"pushed_at":"2020-06-05T19:30:52.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T15:11:48.804Z","etag":null,"topics":["web-assembly","webassembly","webassembly-demo","webassembly-tutorial"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-19T09:05:01.000Z","updated_at":"2020-06-08T03:21:29.000Z","dependencies_parsed_at":"2023-07-10T14:01:04.477Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/FirstWebAssembly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstWebAssembly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstWebAssembly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstWebAssembly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstWebAssembly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/FirstWebAssembly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125106,"owners_count":20240263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["web-assembly","webassembly","webassembly-demo","webassembly-tutorial"],"created_at":"2024-07-29T19:25:29.247Z","updated_at":"2025-03-11T22:31:06.689Z","avatar_url":"https://github.com/BaseMax.png","language":null,"readme":"# First Web Assembly\n\n[WebAssembly](https://webassembly.org) (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications.\n\n# WASM\n\nWebAssembly is an open standard that defines a portable binary code format for executable programs, and a corresponding textual assembly language, as well as interfaces for facilitating interactions between such programs and their host environment.\n\n\n## Short Info\n\n- **Filename extensions:** `.wat`, `.wasm`\n- **First appeared:** March 2017; 2 years ago\n- **License:** Apache License 2.0\n- **Typing discipline:** Static\n- **Designed by:** World Wide Web Consortium\n- **Developer:** W3C; Mozilla; Microsoft; Google; Apple\n\n## Install from mirror\n\n```\n$ sudo apt install emscripten # ubuntu\n$ sudo pacman -S emscripten # arch, https://www.archlinux.org/packages/community/x86_64/emscripten/\n```\n\n## Install\n\n$ git clone https://github.com/emscripten-core/emsdk.git \n\n$ cd emsdk/\n\n$ ls\n```\nbin                           emsdk_env.fish              LICENSE\nDockerfile                    emsdk_env.ps1               python_selector\nemcmdprompt.bat               emsdk_env.sh                README.md\nemscripten-releases-tags.txt  emsdk_manifest.json         test.py\nemsdk                         emsdk.ps1                   test.sh\nemsdk.bat                     legacy-binaryen-tags.txt\nemsdk_env.bat                 legacy-emscripten-tags.txt\n```\n\n$ ./emsdk install latest\n```\nFetching emscripten-releases repository...\nCloning into '/home/max/emsdk/releases'...\nremote: Total 2564 (delta 747), reused 2564 (delta 747)\nReceiving objects: 100% (2564/2564), 1.25 MiB | 662.00 KiB/s, done.\nResolving deltas: 100% (747/747), done.\nFetching latest changes to the branch 'master' for '/home/max/emsdk/releases'...\nAlready up to date.\nSuccessfully updated and checked out branch 'master' on repository '/home/max/emsdk/releases'\nCurrent repository version: \"Fri, 19 Jul 2019 05:41:08 +0000 d2967ba63d9c00c31b31f59702beba400921c7ca\"\nFetching all precompiled tagged releases..\nDownloading: /home/max/emsdk/llvm-tags-32bit.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/linux_32bit/index.txt\nDownloading: /home/max/emsdk/llvm-tags-64bit.txt from https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/linux_64bit/index.txt, 2379 Bytes\nInstalling SDK 'sdk-releases-fastcomp-f42b12c45fd3f4c20de1321402fbc28f8fd21df1-64bit'..\nInstalling tool 'releases-fastcomp-f42b12c45fd3f4c20de1321402fbc28f8fd21df1-64bit'..\nDownloading: /home/max/emsdk/zips/f42b12c45fd3f4c20de1321402fbc28f8fd21df1-wasm-binaries.tbz2 from https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/f42b12c45fd3f4c20de1321402fbc28f8fd21df1/wasm-binaries.tbz2, 166664114 Bytes\nUnpacking '/home/max/emsdk/zips/f42b12c45fd3f4c20de1321402fbc28f8fd21df1-wasm-binaries.tbz2' to '/home/max/emsdk/fastcomp'\nDone installing tool 'releases-fastcomp-f42b12c45fd3f4c20de1321402fbc28f8fd21df1-64bit'.\nInstalling tool 'node-8.9.1-64bit'..\nDownloading: /home/max/emsdk/zips/node-v8.9.1-linux-x64.tar.xz from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v8.9.1-linux-x64.tar.xz, 11387108 Bytes\nUnpacking '/home/max/emsdk/zips/node-v8.9.1-linux-x64.tar.xz' to '/home/max/emsdk/node/8.9.1_64bit'\nDone installing tool 'node-8.9.1-64bit'.\nDone installing SDK 'sdk-releases-fastcomp-f42b12c45fd3f4c20de1321402fbc28f8fd21df1-64bit'.\n```\n$ ./emsdk activate latest\n\n```\nWriting .emscripten configuration file to user home directory /home/max/\nThe Emscripten configuration file /home/max/.emscripten has been rewritten with the following contents:\n\nimport os\nLLVM_ROOT = '/home/max/emsdk/fastcomp/fastcomp/bin'\nBINARYEN_ROOT = '/home/max/emsdk/fastcomp'\nEMSCRIPTEN_NATIVE_OPTIMIZER = '/home/max/emsdk/fastcomp/bin/optimizer'\nNODE_JS = '/home/max/emsdk/node/8.9.1_64bit/bin/node'\nSPIDERMONKEY_ENGINE = ''\nV8_ENGINE = ''\nTEMP_DIR = '/tmp'\nCOMPILER_ENGINE = NODE_JS\nJS_ENGINES = [NODE_JS]\n\nTo conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.\n\n   /home/max/emsdk:/home/max/emsdk/fastcomp/emscripten:/home/max/emsdk/node/8.9.1_64bit/bin\n\nSet the following tools as active:\n   releases-fastcomp-f42b12c45fd3f4c20de1321402fbc28f8fd21df1-64bit\n   node-8.9.1-64bit\n\n```\n\n[Read more](https://webassembly.org/getting-started/developers-guide/)\n\n\n## Using and compile\n\n```\n$ emcc hello.c -s WASM=1 -o hello.html\n```\n\n## Serve\n\nTo serve the compiled files over HTTP, we can use the emrun web server provided with the Emscripten SDK:\n\n```\n$ emrun --no_browser --port 8080 .\n```\n\n---------\n\n# Max Base\n\nMy nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers.\n\n## Asrez Team\n\nA team includes some programmer, developer, designer, researcher(s) especially Max Base.\n\n[Asrez Team](https://www.asrez.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBaseMax%2FFirstWebAssembly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBaseMax%2FFirstWebAssembly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBaseMax%2FFirstWebAssembly/lists"}