FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


json and swi

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
augustinharrison




Joined: 28 Jul 2010
Posts: 27

PostPosted: 31 May 2017 20:17    Post subject: json and swi Reply with quote

we have a new team member from the AI dept of the University of Georgia. he has written a json doc
parser from swi prolog using DCG grammer. it was stated in this forum that grammar is somewhat of a window dressing and could be adapted fairly easily in vip.

having 30 years in visual prolog (all the way back to before borland bought it sold 200k copies and sold it back), i would like to keep it in place in my EKS which is now being considered for swi prolog. i can either finish my parser which he did in one day or possibly compile his parser and rest calls into vip.

i am attaching an update with questions from chris (the new member) which i want you to take a look at and give me your opinion on which option might work best. he did a comparison and states vip is around 8 times faster than swi which is my best argument for leaving the eks in vip.


thanks,

AEHJ



chrisUpdate.txt
 Description:

Download
 Filename:  chrisUpdate.txt
 Filesize:  1.89 KB
 Downloaded:  8 Time(s)


_________________
aeh
Back to top
View user's profile Send private message
Paul Cerkez



Lexington Park MD, USA
Joined: 06 Mar 2000
Posts: 616

PostPosted: 31 May 2017 21:55    Post subject: Reply with quote

Years ago, back in the PDC 3.x days I remember doing a comparison between SWI and PDC Prolog (as it was called then).

PDC was noticeably faster in all my tests, event when used as the PIE. I can't vouch for the current versions of VIP v. SWI because I don't use SWI at all. (I am a little biased towards PDC/VIP after my first encounters.)

some of the reasons I came up with then:
PDC/VIP is 'Typed'
PDC/VIP is also (usually) compiled
SWI was only available as "interpreted" (all code parsed and executed at run time). However, even PIE shown itself to be faster on the same code/operations.

All tests were run on the same computer.

It will be interesting to see if anyone has current data. Wink

P.

_________________
AI Rules!
P.
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3077

PostPosted: 1 Jun 2017 8:12    Post subject: Reply with quote

You should definitely use Visual Prolog Wink.

You new team member ask about already existing JSON support, so you should recall our conversation: json doc.

_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum