Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Object > Re: Storing dat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 33 of 34 Topic 276 of 365
Post > Topic >>

Re: Storing data and code in a Db with LISP-like interface

by "Nick Malik [Microsoft]" <nickmalik@[EMAIL PROTECTED] > Apr 22, 2006 at 12:29 PM

"Neo" <neo55592@[EMAIL PROTECTED]
> wrote in message 
news:1144986888.222283.143660@[EMAIL PROTECTED]
> Below is a simple example that stores a person named John who likes
> Mary and then finds who John likes. Could you or someone familiar with
> Prolog show how to do this. Later I would like to extend the example to
> distill Prolog's fundamental forte (and possible weakness in
> representing things).

Get ready for a really long program!

    likes(john, mary).

That's it.

The query looks like this:

    ?- likes(john, Who)

the response is:

    Who = mary


Not much to it really.
I guess it is only interesting in the fact that your language takes about
30 
lines to do what Prolog does in, what, one?

-- 
--- Nick Malik [Microsoft]
    MCSD, CFPS, Certified Scrummaster
    http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not 
representative of my employer.
   I do not answer questions on behalf of my employer.  I'm just a 
programmer helping programmers.
--
 




 34 Posts in Topic:
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-12 00:57:05 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-13 16:48:22 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-14 00:56:12 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-16 16:25:50 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-17 07:39:07 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-17 20:07:26 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-18 23:13:34 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 10:11:59 
Re: Storing data and code in a Db with LISP-like interface
Pascal Bourguignon <pj  2006-04-23 01:55:15 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-28 09:23:34 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 13:05:58 
Re: Storing data and code in a Db with LISP-like interface
Pascal Bourguignon <pj  2006-04-21 16:33:02 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 14:49:06 
Re: Storing data and code in a Db with LISP-like interface
Pascal Bourguignon <pj  2006-04-21 17:13:44 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 17:13:50 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 18:33:19 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 20:44:02 
Re: Storing data and code in a Db with LISP-like interface
"David Cressey"  2006-04-22 15:04:03 
Re: Storing data and code in a Db with LISP-like interface
Bill Atkins <NOatkinwS  2006-04-22 12:57:37 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-22 17:29:38 
Re: Storing data and code in a Db with LISP-like interface
A..L. <alewando@[EMAIL  2006-04-22 14:11:05 
Re: Storing data and code in a Db with LISP-like interface
Frank Hamersley <terab  2006-04-23 08:30:45 
Re: Storing data and code in a Db with LISP-like interface
"Dmitry A. Kazakov&q  2006-04-21 22:27:47 
Re: Storing data and code in a Db with LISP-like interface
"Dmitry A. Kazakov&q  2006-04-22 11:12:09 
Re: Storing data and code in a Db with LISP-like interface
Sasa <sasa555@[EMAIL P  2006-04-21 22:38:36 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 21:03:30 
Re: Storing data and code in a Db with LISP-like interface
Sasa <sasa555@[EMAIL P  2006-04-22 07:40:29 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 10:47:30 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-22 18:46:57 
Re: Storing data and code in a Db with LISP-like interface
Sasa <sasa555@[EMAIL P  2006-04-22 21:58:37 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-22 20:10:22 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 10:20:37 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 12:29:41 
Re: Storing data and code in a Db with LISP-like interface
"Nameless" <  2006-04-23 17:28:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 1:03:15 CDT 2008.