wasmerio / wasmer-php

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

add wasm3 backend support #106

Closed phpstatic closed 4 years ago

phpstatic commented 4 years ago

Motivation

The default backend build size is huge, can we add https://github.com/wasm3/wasm3 as alternative backend choice to reduce the binary size ?

Hywan commented 4 years ago

Hello,

What binary are you talking about? Is it the php binary? We can use our Singlepass backend, which is lighter than the Cranelift backend (learn more about our backends). What's your usecase?

phpstatic commented 4 years ago

we like to add wasm into our deploy package: https://hub.docker.com/r/phpstatic/php https://phpstatic.com/

not know Singlepass before, I will try test build with Singlepass and update there.

Hywan commented 4 years ago

I would love to get your feedbacks about our Singlepass backend :-).

phpstatic commented 4 years ago

late time I try the edge not get it build, I will try late again .

phpstatic commented 4 years ago

Today, I build Singlepass backend with php-ext-wasm into my php package, thanks for the tips.

Hywan commented 4 years ago

Cool :-). If you need any help or assistance, please feel free to ask!

Hywan commented 4 years ago

Also, were you able to reduce your package size? If yes, by how many? I'm interested by your results. Thanks!

phpstatic commented 4 years ago

The Singlepass php-ext-wasm increase about 4M package size, I like this result a lot.

Sorry I forget the old Cranelift package size, I just remember static library is bigger than all others library.

Hywan commented 4 years ago

You probably mean “The singlepass [backend] decreases the package size of 4Mb”. That's great to hear!