|
From: Bryte M. <bry...@qn...> - 2021-10-14 10:10:56
|
SWIG formerly supported Common Lisp through it's Foreign Function Interface feature. It formerly supported Allegro Lisp implementation, CLISP Implementation and the CFFI Library. What I do have in mind alternatively is to manually write the bindings using the more portable CFFI library the old faction way, though this seems like a rather longer path to my original goal, however this implies I would have a lot more grip over how common-lisp wrapper code is crafted (probably working around implementation specific limitations for each type of compiler or interpreter that supports CFFI Library where possible). Using the CFFI library have the advantage of keeping portability in strict check. I think the current SWIG bindings would point me in a general direction of breaking the process into smaller steps, going one module at a time...... On 13/10/2021 08:25, Luigi Ballabio wrote: > Hello Bryte, > if you want to use SWIG (does it support Common Lisp?), yes, you > can start from the existing SWIG bindings, but be aware that they > require some features like automatic support for shared_ptr, and SWIG > doesn't provide it for all the languages it supports, so you'll have > to check that. > > If you want a pure Common Lisp port, there's no guide — and if there > were one, it would probably get in the way of writing idiomatic CL, I > guess? > > What did you have in mind? > > Luigi > > > On Mon, Oct 11, 2021 at 12:45 AM Bryte Morio <bry...@qn... > <mailto:bry...@qn...>> wrote: > > Is a there a standard guide on porting Quantlib to other > languages. I > have trouble finding any existing HOWTOs or general guides. My > goal is > to port the library to Common-Lisp. > > > > _______________________________________________ > QuantLib-dev mailing list > Qua...@li... > <mailto:Qua...@li...> > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > <https://lists.sourceforge.net/lists/listinfo/quantlib-dev> > |