-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What about native extensions? #2
Comments
This repo/guide will be more specific to hxcpp itself, extensions are a bit higher level than that. There is ongoing work on the above mentioned concepts though, more information about that will be made available soon. It requires a lot of moving parts and to get it done right it takes patience. |
I should note btw, that extensions are typically made up of CFFI bindings, are typically built using the HXCPP build tools - this guide will definitely cover these parts on their own so you can easily understand and create extensions. The specifics about extensions that relate to using them in frameworks is unrelated to the hxcpp guide - is what I meant! |
I would also like to see some guides about data types conversions between haxe and cpp, more for linc than CFFI.
Info on memory management between haxe/cpp will also be very useful. |
Some of these are a good idea to be have a short guide on! I will mention again though that they might not be what documented as you might expect. It is for this reason that many things can feel undocumented, like there is a lot of "missing pieces", but a large percent of this knowledge doesn't come from hxcpp, it comes from knowing c++, then you can see how the hxcpp things relate. There are many undocumented things on top of that (in hxcpp usage), which this guide targets. The guide tries to be approachable though, so hopefully it helps a little in both ways! |
Yeah I understand that. What I really meant is to have some guides on the precautions to be taken when working between c++ and hxcpp. To be more specific, let me rephrase some parts of my last post: Memory Management: hxcpp is a GC environment, which should we do when passing values/references/pointers to and from hxcpp and plain c++? How to convert types between hxcpp and c++ or use haxe type directly (or indirectly) in plain c++ (and vice versa)? On haxe side we have Array, String, Dynamic, Anonymous object, Function. On c++ side we have "raw" array (like |
I've seen google group theme about native extensions formalization over different haxe frameworks or something like that... I just can't find it right now :(
The text was updated successfully, but these errors were encountered: