Skip to main content
gamedev.net
🔒 Locked

Lisp or Prolog

Started by solid_snake41 7 replies 2.5k views
Original Post
solid_snake41
solid_snake41
hey guys, i was wondering if i can get some advise i know some lisp , but witch is more used in the industry, that is witch one might help me get a better job, knowing Lisp or Switching to Prolog? thanx
Snake
Syntax
Syntax
Syntax''s GF:

Switching to Prolog is better because it has the word "pro" in it hope this helps...
-Chukcha

Now me Syntax:
Ignore her, she does not know what she is talking about..

I would start out using Lisp or Scheme (www.drscheme.org), The reason I would say Lisp/Scheme is because it is a very functional and recursive language versus imperative c++. Learning to program in a completely different paradigm will ultimately enhance your imperative programming skills for c++.

Prolog is good if you need to touch up on your Predicate Calculus (a.k.a. Logic) cause it teaches how to write programs using pure logic.

in anycase, both will help, but Lisp IMHO will take you alot further in the long run, even though Prolog''s Logic will help you out as well...

-Lucas
-Lucas
Predictor
Predictor
quote:
Original post by solid_snake41
i know some lisp , but witch is more used in the industry, that is witch one might help me get a better job, knowing Lisp or Switching to Prolog?



Almost certainly there are more systems deployed and more lines of code written in C/C++ than in Lisp and Prolog combined, if we take a broad definition of "artificial intelligence". More to your point, though: what sort of job do you want? "A.I." includes many disciplines, each of which tends to use different tools. Neural networks, for instance, are regularly implemented in MATLAB and Fortran. I understand that much of the work done in bioinformatics uses Perl. What do you want to do? Game A.I. programming? Machine vision? Data mining? Speech recognition?

-Predictor
http://will.dwinnell.com





The_Incubator
The_Incubator
I''m gonna go out on a limb and say I don''t think either will be much help getting a job in the game industry, beyond being one of those things you can use to show you are "well rounded".

Lisp has seen some use in the game industry, the examples that come to mind are the Crash Bandicoot and Jak and Daxter games. I''d be curious to know if Prolog has ever been used in a commercial game. With the exposure I had to it in college, it was easy to write it off as a toy without practical uses. But the latest issue of Game Developer has a really interesting article on using a predicate logic system (basically a language like Prolog) to define facts about a game world in order to reduce the reliance on stuff like managing pointers from a character object to what it''s carrying and pointers from the carried object to it''s carrier.

I don''t think the article is online, but it will probably show up on Gamasutra sooner or later. I''m thinking of trying something like that out in a demo project.

If your job is a goal in the game industry though, you can''t know enough C/C++, and if you want to throw some extra languages in there, it looks like Python and Lua are current favorites for scripting/glue lanuages.

[Edited by - The_Incubator on June 14, 2006 2:33:01 PM]
alexjc
alexjc
Which will help me become a better carpenter: a saw or a hammer?
Join us in Vienna for the nucl.ai Conference 2015, on July 20-22... Don't miss it!
Woodsman
Woodsman
quote:
Original post by alexjc
Which will help me become a better carpenter: a saw or a hammer?

I was about to write something to the same effect.
If a plant cannot live according to its nature, it dies; so a man.
Nekhmet
Nekhmet

Write a prolog to lisp translator. It should take you no more than about 200 lines of code. Once you understand how to do this, you will know the answer to your question.

MDI
MDI
quote:

I would start out using Lisp or Scheme (www.drscheme.org), The reason I would say Lisp/Scheme is because it is a very functional and recursive language versus imperative c++. Learning to program in a completely different paradigm will ultimately enhance your imperative programming skills for c++.



Erm, Prolog programs make heavy use of recursion too.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.