home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2769
Discussions: 188,382, Posts: 2,243,480, Members: 232,611
Old February 28th, 2003, 04:12 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Mar 2002
Location: BYU - Provo
Posts: 43
Send a message via AIM to Fractile81 Send a message via Yahoo to Fractile81
Scheme

Hey, all. I'm taking a class here at school and they're teaching us about a language called Scheme. It's relativly cool, yet somewhat hard to grasp. Anyone out there played with it, or better yet USED it? I'm just curious as to how helpful learning this language will be after this class.

Thanks
__________________
-Fractile81

Fractile81 is offline   Reply With Quote
Old February 28th, 2003, 05:05 AM     #2 (permalink)
Member
 
Join Date: Jan 2003
Location: Sydney
Posts: 128
Send a message via ICQ to stamenkd
I'm pretty sure scheme is a functional language. We did Haskell which is also a functional language. Functional languages in general haven't had any great commercial success. What is nice about learning it, is that it provides you with an alternate way of thinking about programming in a way that isn't Object Oriented or procedural. It's basically great for mathematical functions, and stuff like searches and sorts are really efficient.

Then again, if it isn't a functional language ignore everything I said

stamenkd is offline   Reply With Quote
Old February 28th, 2003, 06:51 AM     #3 (permalink)
Member
 
Join Date: Mar 2002
Location: BYU - Provo
Posts: 43
Send a message via AIM to Fractile81 Send a message via Yahoo to Fractile81
Oh, I believe it is... er, at least it sounds like it is. I've been told it's a lot like LISP(??). Here's some example code:

(define add1
(lambda (x)
(+ x 1)
))

This just defines add1 to take a value (x) and return x+1. It would be called:

(add1 5)

And the return would be 6. Our teacher said something about it being used for AI programming?

Fractile81 is offline   Reply With Quote
Old February 28th, 2003, 07:09 PM     #4 (permalink)
Member
 
Join Date: Jan 2003
Location: Sydney
Posts: 128
Send a message via ICQ to stamenkd
aha in haskell u sort of say
add1::Integer->Integer --takes Int parameter and returns Int
add1 x : x+1

And yoiu invoke it add1 5. It's not as fussy with brackets if you know what you're doing. Hey they do use it for AI, especially LISP because of the way that the storage of funtions and data reflects how the program is used. And the program can modify itself, or take a program as a parameter, just like a procedural language takes a function as a parameter.

Thats one of the things that distinguishes them from other types of programming.
stamenkd is offline   Reply With Quote
Old March 1st, 2003, 04:15 AM     #5 (permalink)
Member
 
Join Date: Mar 2002
Location: BYU - Provo
Posts: 43
Send a message via AIM to Fractile81 Send a message via Yahoo to Fractile81
Other that what we've talked about, what's LISP like? Any references on it? I want to do some AI programming and I know that any ideas I can get from Scheme/LISP/whatever else will help (since I'll be actually doing everything in C++ anyway =D ).
Fractile81 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2887)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
hp compaq nc6000 problems (138)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Help with an Ati Radeon HD 4850 512.. (27)
Recent Discussions
G&Z 10th Anniversary Specia.. (0)
Building a gaming computer advi.. (2)
Help with an Ati Radeon HD 4850.. (27)
CPU wont boot (4)
2nd video card (1)
special characters in quarkxpre.. (3)
Need help removing my front usb.. (2)
Genuine Broadband Connection my.. (14)
BATCH FILE WONT OPEN!!! HELP!!! (3)
New Build ( Finally ) (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)


All times are GMT -4. The time now is 09:21 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28