Comments (3)
Hi!
It's not yet possible, see:
Because PHP has no way to represent an i32
or an i64
, I decided to fallback to i32
everytime.
The hack I've in my head is to create a new “type” in PHP, like wasm\i32
and wasm\i64
(2 “value objects”), and use them instead of int
. Is it something you would use?
from wasmer-php.
I'm likely to adopt a new strategy. We will use the PHP int
type hint, and cast to i32
or i64
according to the Wasm signature in the module.
from wasmer-php.
Yes, it would be great.
from wasmer-php.
Related Issues (20)
- just build with Docker image php-7.2-fpm HOT 1
- add wasm3 backend support HOT 9
- maybe we should have a docker environment HOT 3
- libwasmer.so: file not recognized: File format not recognized HOT 5
- How should call a function from php? HOT 1
- Waht is the mini PHP version requirement? HOT 2
- Is it possible to write to WebAssembly.Memory in PHP that is exported to and read in JavaScript in parallel? HOT 12
- Recipe for target 'wasm.la' failed
- Building from source or pecl fails on PHP 7.2 to 7.4 HOT 7
- Dependabot couldn't find a Cargo.toml for this project
- collect2: error: ld returned 1 exit status HOT 7
- Cannot address by function name
- Compile failed in different situation
- If I did some significant work on this repo (touching almost every file), would you merge it? HOT 6
- Could you tell what version of gcc is required?
- In the mac environment php8.x Unable to load dynamic library 'wasm'
- Go wasm not supported ? HOT 1
- Build fails on Ubuntu 18.04 HOT 6
- Compilation issue on ppa:ondrej/php HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasmer-php.