Re: swi-prolog for embedded engine ?

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 11/10/2013 04:48 AM, Patrick wrote:
> Hi Everyone
>
> This is my first post here.
>
> I really hope this email will not upset anyone. Any sort of project A VS
> project B topics are likely to offend but it is also important to pick
> the right tool for the job. This is not meant as an attack.
>
> I would like to embed prolog for use in an assisted speech device. The
> main loop will be in QT C++.  I thought I should use gprolog as it seems
> to be faster and it doesn't sound like it ships with any libraries.

The guy to talk to wrt. Qt and SWI-Prolog is Carlo Capelli.  He is on 
this list and might react.  I don't know whether gprolog is in general
faster.  I probably depends a lot on what you do.

> Speed is not the utmost concern however, understanding the code I write is.
>
> Someone on the freenode ##prolog IRC channel spoke favourably of SWI
> today and I am second guessing myself now.
>
> The documentation looks excellent and it seem to have a good sized
> following.
>
> Is SWI also a logical choice for embedded use? Is it light without it's
> libraries?

The primary aims of SWI-Prolog are scalability, integration with other
IT systems, threading and networking. There is a lot of infrastructure
for processing RDF, XML and JSON data. Being small isn't really an aim.
The shared object is about 1Mb. A minimal system requires about another
Mb for data. That easily fits just about anything you can buy these days
except tiny embedded controllers. Of course, you can load gigabytes of
data into it and write programs that use a lot of stack space.

There is no need to load libraries that you do not use.

The main glitch with embedding SWI-Prolog are platform specific linking
issues.  There are ways to do just about anything you like on just about
any platform, but how exactly varies from platform to platform.  Most of
that are general shared object/DLL issues though.

	Cheers --- Jan


>
> Thanks-Patrick
>
>
>
>
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.