Replies: 1 comment 2 replies
-
Is your Logtalk application portable so that you can run it with other Prolog systems supported by Logtalk? That would allow you to compare results, which would help QA. If the application is not currently portable, may I ask why? Is there something that I can help in that regard? E.g. additional portable libraries in Logtalk? I'm curious about the arithmetic computation errors. It would be helpful to run the application with at least ECLiPSe and SICStus Prolog. Switching to integer arithmetic may be a good idea. Would that require support for unbound integer arithmetic? That's a feature available from several (but not all) Prolog systems. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
For my VVM public funded project (vvm-projekt.de) I use Logtalk with SWI Prolog as Backend. One part of this app is to manage the road geometries. During the last year of work, I’ve observed that SWI Prolog is probably not the best in arithmetics - I’ve got from time to time some bad calculation errors, and I’m not sure about the speed of calculations.
I have not very much calculations, but some. Now, we consider to rewrite the application, as usual, for speed, cutting out unnecessary features, etc. So my question would be: is arithmetic a special problem of many Prologs, or are some (free) Prologs better than others? For example, I could imagine that Scryer Prolog will be better, or GNU? In the long run this question could be expanded to another question: when is the time right to do arithmetics or calculation in an external app instead of doing it in Prolog? Can there be criteria for such a decision?
Well, I don’t assume to do Fourier in Prolog. My roads the app has to deal with have about few 100 of basic geometrical elements, and for every there are some calculations like area intersection or center points. It’s not that much. In addition, I have thought about to go to Integer arithmetics. The number range is from a few kilometers to centimeters, which is also quite limited.
So, what's your opinion to this topic?
Cheers
Hans
Beta Was this translation helpful? Give feedback.
All reactions