MathCAT icon indicating copy to clipboard operation
MathCAT copied to clipboard

Added bridging functionallity to PHP.

Open kalaspuffar opened this issue 1 year ago • 1 comments

This PR will add a couple of functions to the code so you can add this library as a PHP module and run it directly from the PHP code. I've seen that other glue codes have separate repositories, so this might not be how to implement this. I am still very early in my Rust journey, so I've not looked into multi-repository solutions.

I also did a small bug fix so the library doesn't have the name liblibmathcat.so

Best regards Daniel

kalaspuffar avatar Jan 16 '24 09:01 kalaspuffar

Apologies for not seeing this earlier.

The way I have been dealing with language bindings is to have a separate repo (e.g, MathCATForC, MathCATForPython) that has wrappers for that language. The idea was not to "burden" the main library with these bindings. I don't think the current setup of using separate repos is a good idea and welcome suggestions for how to manage this better.

Two ideas that have come up:

If you have any thoughts on either approach or another approach, I'd appreciate your feedback. I have heard from some people that I should avoid github submodules.

Also see https://github.com/NSoiffer/MathCAT/issues/193 for another approach to language bindings.

NSoiffer avatar Mar 26 '24 19:03 NSoiffer