Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Ashbad on May 14, 2011, 11:20:45 am

Title: Prolog discussion and help
Post by: Ashbad on May 14, 2011, 11:20:45 am
While I'm not a prolog programmer, some here are prologgers, and so they deserve a thread (I too have dabbled in it from time to time)

Feel free to ask questions or post code here, someone will be sure to answer your questions speedily ;)
Title: Re: Prolog discussion and help
Post by: Deep Toaster on May 14, 2011, 11:22:49 am
What do you mean by prolog? Prologues that come before a game, or the <?xml prolog line in web pages?

If it's the second, I hate them. Nobody has any real reason to use quirks mode, anyway. It got outdated a decade ago :P
Title: Re: Prolog discussion and help
Post by: Ashbad on May 14, 2011, 11:24:13 am
This: http://en.wikipedia.org/wiki/Prolog

I know a few members such as Qwerty are extremely fluent in this language, so it merits a thread for them ;)
Title: Re: Prolog discussion and help
Post by: Deep Toaster on May 14, 2011, 11:25:05 am
Yeah, I just LMGTFY'd myself (http://lmgtfy.com/?q=prolog) and found that it's a language.... Whoops. Sorry 'bout that.
Title: Re: Prolog discussion and help
Post by: ruler501 on May 14, 2011, 12:19:43 pm
It looks interesting I might try learning it some day.
Title: Re: Prolog discussion and help
Post by: DJ Omnimaga on May 14, 2011, 03:45:49 pm
I never heard of that one. At first I even misread the topic title as Pronog discussion and help.
Title: Re: Prolog discussion and help
Post by: Deep Toaster on May 14, 2011, 03:46:39 pm
Stop thinking of such things :P
Title: Re: Prolog discussion and help
Post by: ruler501 on May 14, 2011, 09:12:11 pm
DJ it is amazing to see where the minds of the staff on this site are...
Title: Re: Prolog discussion and help
Post by: Quigibo on May 14, 2011, 09:31:29 pm
I know prolog and had to learn it for my compilers class.  Its probably one of the coolest languages ever since its so radically different than any other language I've ever seen.  Basically, you tell it rules about what a function should do and it will automatically find the algorithm to produce that solution!  It takes a while to get used to though since its such a huge paradigm switch.
Title: Re: Prolog discussion and help
Post by: ruler501 on May 14, 2011, 09:33:25 pm
what would this language best be used for? It looks liek it could have some interesting applications
Title: Re: Prolog discussion and help
Post by: Quigibo on May 14, 2011, 09:57:20 pm
Well, we used it for typing, which is assigning types to variables through inference rather than user specification.  Its also great for relational databases (like SQL) and it definitely has a lot of application with artificial intelligence and extracting meaning from sentences.
Title: Re: Prolog discussion and help
Post by: ruler501 on May 14, 2011, 10:04:40 pm
I'll definitely have to learn to use it some time.
Title: Re: Prolog discussion and help
Post by: FinaleTI on May 15, 2011, 08:31:53 am
Prolog sounds cool. I'm gonna have to take a look at it once I get through my LISP book.
Title: Re: Prolog discussion and help
Post by: TIfanx1999 on May 15, 2011, 11:01:28 am
I know prolog and had to learn it for my compilers class.  Its probably one of the coolest languages ever since its so radically different than any other language I've ever seen.  Basically, you tell it rules about what a function should do and it will automatically find the algorithm to produce that solution!  It takes a while to get used to though since its such a huge paradigm switch.
That's pretty unique. I've never heard of a language that worked that way before. Interesting.
Title: Re: Prolog discussion and help
Post by: calcdude84se on May 15, 2011, 01:22:54 pm
I've tried Prolog before, and it's pretty interesting :)
While we're on declarative languages, Haskell's cool too.