Comments (5)
@prabirshrestha I agree, but it looks like a problem of the vim build system. Almost all of the platforms just symlink to the wasm3 source
directory. Including a single file is only a slight improvement (IMHO).
Could you elaborate on the spceific problem you faced (scenarios, logs), then we can decide if (and what) can be improved.
P.S. Also, some build systems enable -Werror
by default. This creates problems when embedding wasm3
. It's currently not documented how to deal with this, but the easiest way is to disable this switch using -Wno-error
, preferably just for wasm3 sources.
from wasm3.
Nice idea. I think it should be possible.
Right now it's also quite easy to embed the library (by including all the files), but we will try improving that once the API is more stable.
from wasm3.
I was trying to make the same changes as in ECMAScript duktape support in vim and gave up after 2 hour of trying. The biggest issue with C programs are that each repo has its own way of compiling so rather then trying to prototype WASM in vim it I spent too much time on the vim build system just to make it compile.
from wasm3.
@prabirshrestha could you provide more info on this? Thx
from wasm3.
I have pushed by branch. Which can be found at https://github.com/prabirshrestha/vim/tree/wasm-build.
Currently you need linux or mac since win builds for vim are completely different.
./configure --enable-wasminterp
make
Currently failing with.
make[1]: *** No rule to make target `src/wasm/source/m3.h', needed by `objects/m3_api_libc.o'. Stop.
make: *** [first] Error 2
Most likely I have done something stupid.
Currently my goal is to just make sure compilation is working and it is embedding wasm3 in vim and then next is to slowly expose wasm apis to vim.
from wasm3.
Related Issues (20)
- Run Wasm3 android examples HOT 2
- how to compile wasm for android HOT 1
- Crash Report
- Unexpected behavior on the instruction `memory.grow`
- Error: missing imported function('wasi_snapshot_preview1.sched_yield')
- Future features: is wasm3 considering wasi preview 2 and components?
- List import-functions (with signature) HOT 1
- m3_Call: missing imported function HOT 1
- Compilation issue with Clang 17 on Windows (MinGW)
- docs: update docs because Go v1.21 implemented support for WASI snapshot preview 1
- Print error?
- Memory leak in python bindings?
- Undefined behavior in wasi implementation (and public-facing API is error prone) HOT 3
- Use-After-Free in ForEachModule HOT 1
- Wasm3 doesn't work
- Missing m3_Free(i_module->memoryExportName) in m3_FreeModule HOT 1
- memory leaks in Read_utf8
- Invalid Memory Read/Deref
- Program(wasm3) DoS
- Segmentation fault due to illegal write access
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 wasm3.