LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] LISP & Prologue

[ILUG] LISP & Prologue

Albert White (Sysadmin) albertw at netsoc.ucd.ie
Wed Feb 2 00:36:16 GMT 2000


> > Also, how are they in terms of easyness and comparibility with respect to C?

C and LISP are two completely different ways of approaching a problem. I didnt f
ind Lisp to hard to learn once I got the idea of lists and everything being a fu
nction into my head.
e.g. here is code to get the factorial of a number:
in lisp:
(defun fact (n)
        (if (= n 1)
        1
        (* (fact (- n 1)) n)))
in C:
int factorial(int n){
int result=1;
while (n > 0) {
        result=result*n;
        n--;
        }
}

There are some similarities between the two, but after learning lisp you will fi
nd that your C programs contain lots of functions calling other functions callin
g functions for several months!
Ive never used Lisp in Linux, when I had to use it I used Allegro in windows - http://www.franz.com/ though looking at that website there is a Linux and BSD trial edition...

dunno anything about prolog..

> But of course :-) If you learn Lisp, your head won't hurt as much and
> you'll be all setup for customising Emacs and sawmill. The choice seems
> clear to me :-)
If you learn lisp you will be able to customise Emacs as a sawmill!
M-x lumberjack :)
(ok Ill shut up and go to bed now..)


al





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell