Coder Social home page Coder Social logo

snowcoders / boilerplate-emscripten-typescript Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 0.0 4.6 MB

This is a boilerplate example of how to write c++ code and translate it using emscripten into javascript. Then using a typescript declaration (definition) file or *.d.ts, how to use that in a typescript application

License: MIT License

JavaScript 1.50% TypeScript 50.95% Makefile 24.44% HTML 15.29% C++ 7.48% SCSS 0.34%

boilerplate-emscripten-typescript's People

Contributors

k2snowman69 avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

boilerplate-emscripten-typescript's Issues

Add iOS example

I can see this being two parts, similar to the web version

  • c++ -> swift conversion
  • iOS Swift application

Add continuous integration

Probably wouldn't be a bad idea to add continuous integration into the system. I think travis CI is free for open source projects?

Add Android example

I can see this being two parts, similar to the web version

  • c++ -> java conversion
  • Android application

client.shared.js fails to build - could not find the assigment to "asmLibraryArg"

When I run make

D:\Projects\boilerplate-emscripten-typescript\client.shared.js>mingw32-make

The output I get is the following:

emcc --bind ..\client.shared\ship\client.shared.bc -o ship\client-shared.js -std=c++11 -Oz -s NO_EXIT_RUNTIME=1 --pre-js .\src\prefix.js --post-js .\src\postfix.js
Stack: Error
    at assertTrue (eval at globalEval (D:\Emscripten\emscripten\1.38.12\tools\js-optimizer.js:114:8), <anonymous>:59:26)
    at Object.emitDCEGraph (D:\Emscripten\emscripten\1.38.12\tools\js-optimizer.js:8182:3)
    at D:\Emscripten\emscripten\1.38.12\tools\js-optimizer.js:8406:14
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (D:\Emscripten\emscripten\1.38.12\tools\js-optimizer.js:8405:21)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)

undefined:60
    throw msg;
    ^
Assertion failed: could not find the assigment to "asmLibraryArg". perhaps --pre-js or --post-js code moved it out of the global scope? (things like that should be done after emcc runs, as they do not need to be run through the optimizer which is the special thing about --pre-js/--post-js code)

Add a webpack example

I'd love to see a webpack + react and a webpack + knockout example as I think those are in pretty good generic examples for other libraries (e.g. angular, vue, etc).

Add banditcpp as a submodule

Doing so would mean that developers wouldn't have it as a separate dependency but instead would just require doing a git clone -recursive

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

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.