Re: Question about SWIG
Julien Marrec <[email protected]> Thu, 29 Jun 2023 15:32:33 +0200
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <CAEqKKtw=AgGj_YfUknO6_2R7qn5PU+Cjg2gMcczN07=w2ipsqw@mail.gmail.com> |
Hello, I find the question a bit confusing, or maybe backwards. Use swig *when* you *do* have a use case for it? Anyways, amongst other reasons, it allows you to write a C or C++ library *once*, while still making it available to users of other languages (Python, Ruby, etc). - You guarantee the same behavior and implementation regardless of the target language - Using C / C++ allows you to maximize performance (your mileage may vary depending on your implementation of course...) - Your users are happy as they don't need to reimplement it (potentially with far worse performance too) to use it in their target language. Your users might need your library for a tiny portion of their workflow, so it's definitely not an option for them to switch their entire stack to C++ just to use it. A random example: CoolProp <http://coolprop.org/#environments-supported>, a scientific library to figure out thermophysical properties / psychrometrics conditions. You can use it in C++ directly, but also in Python, C#, MATLAB, Modelica, etc. Best, Julien -- Julien Marrec, EBCP, BPI MFBA Owner at EffiBEM <http://www.effibem.com> T: +33 6 95 14 42 13 LinkedIn (en <https://www.linkedin.com/in/julienmarrec>) *| *(fr <https://fr.linkedin.com/in/julienmarrec/fr>) : <http://www.linkedin.com/in/julienmarrec> Le mar. 27 juin 2023 à 12:09, Turritopsis Dohrnii Teo En Ming < [email protected]> a écrit : > Subject: Question about SWIG > > Good day from Singapore, > > In what scenarios do I need to connect programs written in C and C++ > with a variety of high-level programming languages? > > Please advise. > > Thank you. > > Regards, > > Mr. Turritopsis Dohrnii Teo En Ming > Targeted Individual in Singapore > Blogs: > https://tdtemcerts.blogspot.com > https://tdtemcerts.wordpress.com > GIMP also stands for Government-Induced Medical Problems. > > > _______________________________________________ > Swig-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/swig-user > _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user