wasmerio / wasmer-php

🐘🕸️ WebAssembly runtime for PHP
https://wasmerio.github.io/wasmer-php/wasm/
MIT License
1.01k stars 42 forks source link

doc(examples) Add the `greet` example. #55

Closed Hywan closed 5 years ago

Hywan commented 5 years ago

Close #40.

This example shows how to:

  1. Allocate memory for a string,
  2. Write a string,
  3. Compute a new string in Wasm, and return a pointer to it,
  4. Read the computed string,
  5. Deallocate memory.