Re: [Flora-development] [Xsb-development] XSB and Flora-2 wrappers for .NET and Python
Brought to you by:
kifer
From: Markus S. <msc...@fo...> - 2007-01-17 13:16:00
|
Dear Gon=E7alo, Well, this is great! It's funny that at a pretty much same time two people= =20 do allmost the same thing in different parts of the world (except you live= =20 in my neighbourhood) :-) As I see it from your message it seems that you=20 have put more time into your .NET wrapper and are more familiar with .NET= =20 then me. What regards the Flora-2 interface it's pretty simple to add it=20 to a XSB wrapper if you export functions like xsb_command_string and=20 xsb_query_string since Flora-2 can be loaded this way. Maybe we should=20 exchange our solutions and see if we can work out whats the best for the=20 community (e.g. combine ideas and concepts) to faciliate the community=20 with a good and working .NET interface to XSB and Flora-2? Best regards -- Markus Schatten, dipl. inf. e-mail: mar...@fo... http://www.tiaktiv.hr On Wed, 17 Jan 2007, Gon=E7alo Lopes wrote: > Dear Markus, > > I think your contribution is very interesting as well. I myself have > finished recently a .NET interface to XSB and was also thinking of > submitting it to the community, but maybe we should compare some notes > first. > > I'm not very familiar with Flora-2, and I'm just focusing on bringing > XSB's expressive power over to the .NET domain, so maybe your wrapper > has more to offer on this regard. On the other hand, I've also focused > on making my wrapper something more than a dll wrapper. Here are some > of the current features so far: > > - Complete .NET classes for XSBPrologEngine and PrologTerm (making it > much more elegant to handle terms in an object-oriented manner) > - Integration made through C++/CLI in order to take advantage of XSB's > configuration macros (future multithreading support...) > - Possibility to register .NET delegates as managed XSB predicates, so > some Prolog predicates can be properly implemented by managed code. > > I'll be submitting my source code soon with a more detailed > explanation of the features as long as some working examples. I hope > we can both get feedback in order to supply the best possible .NET > wrapper to the XSB community. > > Best regards, > > Gon=E7alo > > > On 1/16/07, Michael Kifer <ki...@cs...> wrote: >> >> Dear Markus, >> Thank you very much for the contribution. >> To be included in either XSB or Flora-2, your files have to be released >> under LGPL. >> >> I didn't quite understand what the wrapper around xsb.dll does. >> Is it exporting things like xsb_query to .NET languages >> (in this case it should be really part of XSB)? >> >> Or is it an object-oriented interface, which can talk to Flora-2 directl= y? >> You alluded to this in connection with the Python wrapper, which is very >> interesting. >> >> >> regards >> --michael >> >>> Dear sirs, >>> >>> my name is Markus Schatten, I'm an assistant on the Faculty of Organiza= tion >>> and Informatics in Vara=C5=BEdin, Croatia in Databases and Formal Meth= ods. One of >>> my professors (dr.sc. Mirko =C4?ubrilo) asked me to develop a XSB and = Flora-2 >>> dll-wrapper for MS Visual Studio.NET, which I have developed using the >>> C-binding of XSB. I'm not a .NET professional so there are probably som= e bugs >>> in the solution, but it works fine, and since I'm not sure if I will ha= ve >>> time to develop it further I'd like to contribute it to your projects, = of >>> course if there is interest in such a contribution. >>> I've created a C# class which wraps around the xsb.dll and makes allmos= t all >>> functions exported in the dll available to all other .NET languages. I'= ve >>> also implemented two methods for converting prolog terms to strings and >>> printing of terms (allmost direct translation of printpterm in cmain2.c= ). >>> Since my primary programming language is Python I also created a wrappe= r for >>> Python (using SWIG http://www.swig.org) which could be used to wrap XSB= and >>> Flora-2 to all the other scripting languages supported by SWIG. The Pyt= hon >>> wrapper is not fully implemented by now since I'd like to make the inte= rface >>> more intuitive to Python programmers and will probably try to combine t= he >>> power of Flora-2 and ZODB (http://www.zope.org/Products/ZODB3.3). >>> So if there's any interest I'll be very happy if I can contribute to yo= ur >>> projects. >>> >>> Best regards >>> >>> -- >>> Markus Schatten, dipl. inf. >>> Faculty of Organization and Informatics >>> Vara=C5=BEdin, Croatia >>> e-mail: mar...@fo... >>> http://www.foi.hr >>> >>> -----------------------------------------------------------------------= -- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share= your >>> opinions on IT & business topics through brief surveys - and earn cash >>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >>> _______________________________________________ >>> Flora-development mailing list >>> Flo...@li... >>> https://lists.sourceforge.net/lists/listinfo/flora-development >>> >>> >> >> >> >> ------------------------------------------------------------------------= - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share = your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >> _______________________________________________ >> Xsb-development mailing list >> Xsb...@li... >> https://lists.sourceforge.net/lists/listinfo/xsb-development >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Flora-development mailing list > Flo...@li... > https://lists.sourceforge.net/lists/listinfo/flora-development > |