Git Product home page Git Product logo

libmujs's Introduction

Easy-to-use Interface Wrapper for MuJS 1

First of all, many thanks to the authors of MuJS for providing an excellent embeddable javascript interpreter.

libMujs is a simple and easy to use interface to MuJS, and includes these features in addition to the vanilla libmujs:

  • Windows-based message queue for thread management and data synchronization between script and process threads.
  • require - function used to load new external javascript modules (file system based).
  • mujs_bind_c_function - With a built-in JS to C++ method routing function, which is forwarded through the bindings.
  • mujs_evalute_js - To execute the js fragment but will push to the bottom of the message queue, and finally execute and then use parameters to determine whether to asynchronous
  • mujs_call_js_function - Used to actively call js function, the parameter is temporarily set to a vector, don't ask me why it doesnt support every data type, the use of mujs is very lightweight.
  • mujs_show_builtin_function - to see which of the built-in functions are provided by libMujs,
  • setTimeout, setInterval - Important common window object functions missing from the core mujs. setTimeout execution must run in the original thread context, and until proper marshalling is added, the only supported method for the function execution is through a string to be executed. This will be improved later to work more like the native setTimeout and related functions.

Originally built using VisualStudio 2013 which does not have a complete C++11 feature set, so this project remains C++98,03 compatible.


1 Auto-translated (with some editing) from the Chinese libMujs/README.md to english by tsunami650

libmujs's People

Contributors

fatezhou avatar tsunami650 avatar

Watchers

James Cloos avatar

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.