Code Monkey home page Code Monkey logo

Comments (5)

vshymanskyy avatar vshymanskyy commented on May 10, 2024 1

@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.

vshymanskyy avatar vshymanskyy commented on May 10, 2024

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.

prabirshrestha avatar prabirshrestha commented on May 10, 2024

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.

vshymanskyy avatar vshymanskyy commented on May 10, 2024

@prabirshrestha could you provide more info on this? Thx

from wasm3.

prabirshrestha avatar prabirshrestha commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.