Comments (5)
It's likely due to limited by environment doesn't implement fully as same as normal worker thread does. Latest cld3-asm doesn't have any env override but browser side bundle already supports worker thread, so you shouldn't need (and not supported anyway) to try set env. Clarifying, broswer side bundle specified -s ENV=broswer,worker
compile time.
I'm bit unsure if it's possible to make it work on given cloudflare worker environment if it doesn't fully support worker's interfaces emscripten uses.
from cld3-asm.
My suggestion is try any minimal hello world wasm with emscripten to verify cloudflare worker doesn't support it really - then this should be supported by cloudflare.
from cld3-asm.
Ok thanks. I'm little bit confused as with cloudflare workes it seems that you need to upload wasm files separately and then use "new WebAssembly.Instance(MY_WASM_MODULE, imports)". However I don't see any wasm-files that cld3-asm produces.
from cld3-asm.
Yes, that's not supported case of cld-3asm out of box. If you'd like to use raw wasm binary, you may need build binary using https://github.com/kwonoj/docker-cld3-wasm which cld3-asm also relies on.
from cld3-asm.
Let me close issue for now cause main target of cld3-asm is node / browser (and worker), don't have immediate plan to separate binaries.
from cld3-asm.
Related Issues (19)
- fix package build for 2.0.0-beta
- Maybe replace binaryendpoint to fn
- An in-range update of lint-staged is breaking the build 🚨 HOT 4
- An in-range update of conventional-changelog-cli is breaking the build 🚨 HOT 5
- An in-range update of prettier is breaking the build 🚨 HOT 3
- LanguageCode is not available on runtime HOT 1
- Support Electron's renderer process HOT 1
- findMostFrequentLanguages gives incorrect results HOT 3
- Support languageresult spaninfo
- Unhandled rejection shut down my service HOT 4
- Refactor loadModule HOT 1
- graceful loading failure
- todo
- Prepare 1.0.0 release with breaking changes
- is there any option to remove detectable language? HOT 1
- Inaccurate results HOT 1
- Bump up binary / emscripten-wasm-loader HOT 2
- An in-range update of @types/node is breaking the build 🚨 HOT 3
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 cld3-asm.