clang-wasm
cheerp-meta
clang-wasm | cheerp-meta | |
---|---|---|
2 | 2 | |
147 | 1,081 | |
2.7% | 1.6% | |
0.0 | 5.7 | |
over 2 years ago | 8 months ago | |
C++ | JavaScript | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
clang-wasm
-
Cheerp 3.0: The most advanced C++ compiler for the Web now permissively licensed
I'm particularly curious on what parts cheerp adds to their clang+llvm base. Presumably it's something like the C standard target library for WASM/JS?
For reference, here's examples of what you could do with the baseline clang with wasm (but not JS?) [1] [2] [3], referenced from a similar thread on HN.
[1] https://github.com/ern0/howto-wasm-minimal
[2] https://github.com/robrohan/wefx
[3] https://github.com/PetterS/clang-wasm
-
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
See also my example I put together some time ago: https://github.com/PetterS/clang-wasm
At the time, I could not find something like this online.
cheerp-meta
-
Ask HN: Real-world examples of WASM usage
Yours is a fair question. I think that, right now, adoption of WebAssembly is quite limited. On the other hand (here at LeanigTech) we are extremely bullish about its potential.
We believe that this technology would be adopted more with better tooling. Our main contribution to this space is Cheerp: A C++-to-WebAssembly _and_ JavaScript compiler (https://github.com/leaningtech/cheerp-meta/). It is designed to seamlessly take advantage of Wasm without sacrificing easy access to Web APIs, all from within C++ with no need of post-processing and glue code.
We know for a fact that amazing products can be build with Cheerp, because we have done it ourselves.
CheerpX is a x86 virtual machine running in the browser, fully written in C++ and compiled with Cheerp. It includes a JIT-compiler that is able to analyze x86 binary code and emit new WebAssembly modules on the fly.
Our most impressive demo yet (WebVM) is available here: https://webvm.io/
-
A JavaScript optimizing compiler
A similar project, for WebAssembly so with limited scope is this: https://github.com/bytecodealliance/wizer. And somehow similar but limited on LLVM IR a colleague worked on this for Cheerp (the compiler used here as backend): https://github.com/leaningtech/cheerp-meta/wiki/Cheerp-PreExecuter.
What are some alternatives?
wasm-fizzbuzz - WebAssembly from Scratch: From FizzBuzz to DooM.
EmGlue - 🕸️ Glue C++ to your browser! Universal bindings for JavaScript/Wasm using Glue and Embind.
wajic - WebAssembly JavaScript Interface Creator
PSI - Private Set Intersection Cardinality protocol based on ECDH and Bloom Filters
llvm-project - This is the canonical git mirror of the LLVM subversion repository. The repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
walt - :zap: Walt is a JavaScript-like syntax for WebAssembly text format :zap:
cib - clang running in browser (wasm)
wizer - The WebAssembly Pre-Initializer
chip8-book - An introduction to Chip-8 emulation using Rust
sk-experiments - The collection of Srecko Kostic's experiments.
wefx - Basic WASM graphics package to draw to an HTML Canvas using C. In the style of the gfx library
obs-studio-node - libOBS (OBS Studio) for Node.Js, Electron and similar tools