Skip to content
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

native api requests #228

Open
velkyel opened this issue May 16, 2022 · 1 comment
Open

native api requests #228

velkyel opened this issue May 16, 2022 · 1 comment
Labels
feature request Requesting for new featuers TODO It hasn't implemented yet.

Comments

@velkyel
Copy link

velkyel commented May 16, 2022

Hello,

finish please native interface:

  • _vecAdd() function in tests/native/example2.c (native object from slot)
  • example how to call pk function from c/c++ with parameters (pkRunString() is not enough)
  • list api

thank you

@ThakeeNathees ThakeeNathees added TODO It hasn't implemented yet. feature request Requesting for new featuers labels May 16, 2022
@ThakeeNathees
Copy link
Owner

I've just implemented the native instance "ffi", and completed the example2.c which you can find #229, Apis for other types (string, list, map, functions..) is just a matter of writing wrappers for them including function calls, which I'll write them soon.

Additionally, I've been planning about native extensions -- importing shared libraries *.so *.dll as pocketlang libraries (like Lua, Ruby, etc do) "ffi" binding generator script for that can be found at : https://github.com/ThakeeNathees/pocketlang/blob/master/scripts/generate_native.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requesting for new featuers TODO It hasn't implemented yet.
Projects
None yet
Development

No branches or pull requests

2 participants