Coder Social home page Coder Social logo

boyanio / angular-wasm Goto Github PK

View Code? Open in Web Editor NEW
225.0 225.0 29.0 2.47 MB

Examples of how to use WebAssembly within Angular

Home Page: https://boyan.io/angular-wasm/

License: MIT License

TypeScript 30.02% JavaScript 4.37% HTML 20.12% C 32.26% CSS 2.36% C++ 10.87%
angular javascript webassembly

angular-wasm's People

Contributors

boyanio avatar dependabot[bot] avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-wasm's Issues

Error on npm run wasm

When I used the latest master branch, and run npm run wasm, I am getting the below error

Compiling wasm source for 3d-cube
docker run --rm -v C:\Users\Phanindra\Downloads\angular-wasm-master\angular-wasm-master:/src emscripten/emsdk emcc -Os src/app/wasm/3d-cube/soil/libSOIL.bc src/app/wasm/3d-cube/3d-cube.c -o src/assets/wasm/3d-cube.js -s LEGACY_GL_EMULATION=1 -Isrc/app/wasm/3d-cube/soil -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall']" -s FORCE_FILESYSTEM=1 -s MODULARIZE=1 -s EXPORT_NAME="Cube3dModule"
'docker' is not recognized as an internal or external command,
operable program or batch file.
child_process.js:674
throw err;

OpenGL texture binding to HTML canvas

Hi,
Awesome project, worked out of the box! (only issue I have is that "Home" routing does not work)

I'm new to WebAssemblies (and to be honest, to Angular as well) but have a fairly good understanding of how things work and bind together (for both frameworks).

I'm trying to understand how the 3d-cube example works, but I can't figure out a few things:

  1. How is main(argc, argv) being invoked?
    After writing the above question I paused writing and started digging a bit more to figure this one on my own, so it would be nice to get a confirmation:

    Each of the objects extend EmWasmComponent which calls instantiateJs to creates a script element in the HTML document which reference the path to the JS file that was created by emcc. This JS code invokes main

  2. How is the canvas of the 3d-cube bound to OpenGL's texture?

Thanks

Fibonnacci working only with Chrome - Edge and Firefox timed out

Hi,

I was trying to load https://boyan.io/angular-wasm/fibonacci, and only under Chrome has worked.
I tried with the newest Firefox: 68.0.2 (64-bit). I tried with Edge version (can't find the exact version).
I tried with Chrome: 76.0.3809.100 (Official Build) (64-bit). So only with chrome is Fibonacci working... Firefox is frozen, Edge can load the results once, then i should restart for new success. I tried under Windows 10 Home, but i tried with Firefox under Ubuntu 16.04 LTS as well. Under Linux it wasn't working as well. I tried to compile your code from master, and the same symptoms I have experienced. I used angular CLI version 8, but with package.json from master. It's very pitty because there are very very few examples can be found about angular with webassambly...

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.