dictu-lang / Dictu

Dictu is a high-level dynamically typed, multi-paradigm, interpreted programming language.
https://dictu-lang.com
MIT License
267 stars 53 forks source link

FFI API #738

Closed liz3 closed 9 months ago

liz3 commented 9 months ago

FFI Api for dictu.

What's Changed:

Adds a FFI api which allows a C abi to easy extend dictu with native functions.

#

Type of Change:

#

Housekeeping:

liz3 commented 9 months ago

im not sure why the docs fail but maybe its the empty links, but all other tests pass. thats good

Jason2605 commented 9 months ago

Apologies been busy, I def will get round to this, thank you so much!

Be good to get your eyes too if you have any spare time @briandowns 🙂

liz3 commented 9 months ago

Apologies been busy, I def will get round to this, thank you so much!

Be good to get your eyes too if you have any spare time @briandowns 🙂

All good no stress

briandowns commented 9 months ago

I love this. Very very cool. Few things:

I can't wait to get started using this!

liz3 commented 9 months ago

I love this. Very very cool. Few things:

* Can we add the shared object libraries to the .gitignore?

* How are would it be to use Dictu as an embedded language now with the shared objects?

* Even thought it's FFI, I was curious aabout folks thoughts on naming the module "external" or something similar.

I can't wait to get started using this!

Can we add the shared object libraries to the .gitignore?

Uh if you can help me build the test libs with the runner sure. Since they are required for the tests.

How are would it be to use Dictu as an embedded language now with the shared objects?

Im not entirely sure what you mean by embedded here, as in including shared objects into a binary? Im a tad confused.

Even thought it's FFI, I was curious aabout folks thoughts on naming the module "external" or something similar.

We can do that idm about the name at all.

Jason2605 commented 9 months ago

This is really really awesome!!! Thank you so much for working on this!! I'm gonna merge this in but left a little comment about moving / copying one file that any of us can pick up at some point (not massively urgent)