Comments (3)
Initially it was done that way for convenience, but its almost certainly the right thing to move more towards c++. I would avoid the high level wrappers we shipped with flash++.h and instead just use the low level interop if possible as you'll have more control and won't run into any performance gotchas.
Also if you have a demo of any of the stuff you're working on I'd love to see it
from gls3d.
I see. I'm curious now on how flash++ is implemented:
- Is every call basically an inline_as3?
- If I understand it correctly, all C++ code will be translated to action scripts call (through LLVM), so why Flash++ has more performance gotchas?
- Is it possible to create an object in action script and pass the pointer to C/C++ code?
I'm actually just doing R&D for FlasCC technology and not sure if I can show it to you/in public (in addition, i'm just rendering boxes at the moment).
from gls3d.
Yeah the flash++ code is all built on top of the basic interop, but the header is large and will slow down compile times a fair bit. It's probably overkill for this project.
The way flash++ gets references to as3 objects is a bit gross, essentially it keeps the as3 object and a ref count in a dictionary and the flash++ class stores the index, once the ref count hits zero the as3 object is removed from the dictionary and can be collected by the gc
from gls3d.
Related Issues (9)
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 gls3d.