Learn Programming: LISP vs MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter Ratzinger
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the comparison of programming languages LISP and MATLAB, with a focus on their ease of learning, applications in artificial intelligence, and the potential for interesting programming projects. Participants also explore alternatives like Python and Pascal, as well as development environments for LISP.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation
  • Homework-related

Main Points Raised

  • Some participants express interest in learning LISP, questioning its ease of use and beauty as a programming language.
  • One participant argues that LISP is primarily an academic language, lacking practical applications, and suggests Python as a more accessible alternative.
  • Another participant mentions their need to learn either LISP or Pascal for Cognitive Science labs, indicating a lack of familiarity with both languages.
  • There is a suggestion that LISP may be easier for beginners compared to C or Java, though opinions on its intuitiveness vary.
  • Some participants express a desire to learn Python, citing its simplicity and useful features.
  • Discussion includes references to specific resources for learning Python and LISP, including websites and development environments.
  • Participants discuss the challenges of using Emacs and SLIME for LISP programming, noting its initial complexity but potential benefits.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the ease of learning LISP, with some arguing it is easier than other languages while others disagree. There is a general inclination towards Python as a preferred language for beginners, but opinions on LISP's value and usability remain contested.

Contextual Notes

Some participants express uncertainty about the practical applications of LISP and its relevance in modern programming. The discussion also highlights varying levels of experience with programming, which may influence perspectives on language difficulty and choice.

Who May Find This Useful

Individuals interested in learning programming languages, particularly those considering LISP, MATLAB, or Python, as well as students in cognitive science or related fields looking for programming resources.

Ratzinger
Messages
291
Reaction score
0
I would like to learn some programming. What about LISP? Is that easy to learn? Is it a 'beautiful' language? What software do I need to do some basic programming in LISP? I heard it's been used in AI a lot.

I also have MATLAB on my computer. Can I do interesting and easy-to-learn programming with MATLAB?

thanks
 
Physics news on Phys.org
Lisp is almost a purely "academic" language these days. In other words, no one writes any serious programs in it. It has features and flexibility that few other languages offer, which is why it is used in textbook AI programs. On the other hand, it is neither beautiful nor intuitive nor easy to use.

If you're new to programming in general, I strongly suggest you look at Python, http://www.python.org/

It actually includes many of the features of Lisp (i.e. symbolic computation), but also includes the best features of many other languages, including C++ and Perl, but is fantastically simple and easy to understand.

- Warren
 
Ratzinger said:
I would like to learn some programming. What about LISP? Is that easy to learn? Is it a 'beautiful' language? What software do I need to do some basic programming in LISP? I heard it's been used in AI a lot.

I also have MATLAB on my computer. Can I do interesting and easy-to-learn programming with MATLAB?

thanks
I wanted to suggest Python too but Chroot beat me to it :smile:
But in my case, the suggestion is a bit selfish...I am learning it now so it would help to have someone around asking questions too :-p

As an aside, I am almost computer illiterate and I installed it on my desktop with no problem, so it is easy to get it up and running.

Patrick
 
I think I am going to have to learn either LISP or Pascal for my Cog Sci labs. I know virtually nothing about these languages.
 
  • Like
Likes   Reactions: mic*
chroot said:
Lisp is almost a purely "academic" language these days. In other words, no one writes any serious programs in it. It has features and flexibility that few other languages offer, which is why it is used in textbook AI programs. On the other hand, it is neither beautiful nor intuitive nor easy to use.

If you're new to programming in general, I strongly suggest you look at Python, http://www.python.org/

It actually includes many of the features of Lisp (i.e. symbolic computation), but also includes the best features of many other languages, including C++ and Perl, but is fantastically simple and easy to understand.

- Warren

How is lisp NOT easy? It's definitely easier for a beginner than C or Java. I'm not saying I don't agree with you on python though.
 
Thanks!

So let's learn Python.
 
Ratzinger said:
Thanks!

So let's learn Python.
Great!

You probably have all this already, but 3 useful sites are

http://www.python.org

to download.

http://docs.python.org

for documentation (I think there is a link to it from the previous web site)

http://www.vpython.org

to do cool 3-d animations very easily.


I will be keeping an eye here to see if you are posting questions so that I can learn from the answers provided to you!
If you look within the next few days you will see two of my Python questions answered.

Regards

Patrick
 
Math Is Hard said:
I think I am going to have to learn either LISP or Pascal for my Cog Sci labs. I know virtually nothing about these languages.

That's an odd combination. Are you sure it isn't Lisp or Haskell?

chroot said:
Lisp is almost a purely "academic" language these days. In other words, no one writes any serious programs in it. It has features and flexibility that few other languages offer, which is why it is used in textbook AI programs. On the other hand, it is neither beautiful nor intuitive nor easy to use.
Beauty is in the eye of the beholder. I'll admit that my interest in Lisp at this point is purely academic, but that doesn't necessarily make it any less interesting. I wish I had learned it as my first programming language. You might want to look at this:
http://www.gigamonkeys.com/book/introduction-why-lisp.html


On the other hand, I'd like to learn Python too, when I have some free time - hah hah.
 
gnome said:
That's an odd combination. Are you sure it isn't Lisp or Haskell?
I didn't see anything about "Haskell". I have to choose one of these labs:

Cognitive Science Laboratory: Introduction to Theory and Simulation (involves simulations written in common LISP)
or
Cognitive Science Laboratory: Neural Networks (involves simulations written in Pascal)

There are two other labs, "Psychophysical Theories and Methods" and "Neuroinformatics Studio", but these don't mention a programming language.
 
  • #10
OK, ignore my comment about Haskell. I mentioned that only because they (Lisp, Haskell) are often lumped together as "functional" programming languages.

Based on the catalog descriptions, both of those courses sound fascinating. I've never written any Pascal, but I've read some, and it's similar enough to C that it would be easier to learn than Lisp. But you would probably never use it again after that course. I understand that "everybody" was taught Pascal in the '80s and early '90s, but I don't think anybody writes it anymore. So, as intriguing as the neural networks lab sounds, I'd still rather learn how to write simulations in Lisp. Probably more work though.

PS: Here's a link to a talk on Lisp that Peter Seibel gave recently at google in NYC. It runs about 1 hr (279Mb):
http://vp.video.google.com/videodownload?version=0&secureurl=xQAAAG7ggqAHSiJjpW0D3w4aYTV3h-AELKIxGbLwuyrbclo-c3HAo8XNvPP-tSdQRYgL-fYsVHix9Z2q-F5B3REkiyTE_HZJvPkhu4eDCkM4HKRc8SlPUxrUsd-Ba_tu3Lr53joXikyP1R8ZHFoJQPwDYgzJpOA2US7E7E5xqEfCIjI_YlX-56jF9eEDJYFim45jTIRUX1luHVQUWdgzvi4sYa1o6shWIQd259xtBq-ZldZbgsfpfYGxlOpo5ly1rwgZKGq2PFEnvCw6z6uRWf8d9JI&sigh=JvIoYg3pw8WdsWkYR0ACzRefvgI&begin=0&len=4324668&docid=448441135356213813

and you can find his book "Practical Common Lisp" here:
http://www.gigamonkeys.com/book/
 
Last edited by a moderator:
  • #11
Thank you for those links, gnome. I hope I can play around a little bit with Lisp this summer. What do you use for a development environment? I found this "Lisp in a Box" package:
http://common-lisp.net/project/lispbox/
Have you used that SLIME IDE for emacs? This is all completely foreign to me. I rarely venture outside of Visual Studio for anything, so this is intimidating. :redface:
 
  • #12
I have emacs/slime running in linux (with "steel bank common lisp" in my Gentoo machine and clisp in an old RedHat one). I haven't had much time to play with it during the school year so it'll be one of several summer projects for me too. You will find emacs to be pretty bewildering at first. But from the little bit of dabbling that I've managed to do, I'm thoroughly convinced that it will be worth the pain. We can commiserate over the summer. :smile:

That Lisp-in-a-Box is what you want; even though emacs seems to be completely unintuitive at first (at least it does to me), the "people who know" seem to agree that the emacs/slime combination is most convenient environment for working with Lisp. emacs includes a tutorial which helps a little.

Just grab the base installer and the Clisp module from that lispbox page. You don't need the Allegro modules.
 

Similar threads

Replies
6
Views
4K
  • · Replies 22 ·
Replies
22
Views
4K
Replies
86
Views
4K
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
12K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
8
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K