Re: Basic Statistics with OpenEuphoria
- Posted by ghaberek (admin) May 21, 2020
- 3093 views
Can I use C libraries here?
Yes! You'll want to see Dynamic Linking to external code in the docs.
Here are several projects that demonstrate how to wrap C libraries in Euphoria:
For example Apophenia: http://apophenia.info/
or: IMSL C stat library: https://docs.roguewave.com/en/imsl/c/8.6/pdf/C_Stat_library.pdf
Personally, I would go with Apophenia since it seems simpler and it's open source.
Also, is this more easily possible with Phix?
It's more or less the same, but Pete has added some easier support for structures into Phix.
(I would have asked on Phix forum but I just can't find it now)
I think this is effectively the Phix forum.
Just out of curosity, can SWIG ( http://www.swig.org/ ) be used here?
You're welcome to try that, although in my experience the work required to get SWIG working is more involved than just wrapping a library by hand.
You'll find some old SWIG related code on The Archive: https://archive.usingeuphoria.com/
-Greg