C/C++
C and C++ are two of the most well known and widely used languages in the world.
#include <stdio.h>
static int the_meaning = 42;
int main()
{
printf("The mean of life is: %d", the_meaning);
}
Advantages
- Huge ecosystem is existing code, much of which can be compiled for WASM
- Small binary sizes
- Great performance
Drawbacks
- C++ exceptions and threads are not yet supported
- Not all libraries can be compiled for WASM