LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-13-2004, 12:36 AM   #1
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
Scheme programming


Hello there:

I will be programming in scheme next semester so I'd like to start studiying something about it....... I have a tutorial now explaining sintaxis and all but I need something even more basic:

is there a compiler for it? where can I download it?
the source files.... what extension should I use?? as you can see I really have no idea of what scheme is.... just it's name and people says it's quite difficult so I'd better start right now!!


Thanks a lot!

poeta
 
Old 07-13-2004, 04:53 AM   #2
arvind_sv
Member
 
Registered: Oct 2002
Location: Bangalore
Distribution: Gentoo Linux
Posts: 96

Rep: Reputation: 15
Er, have you tried googling for scheme? How about the first link?

http://www.catb.org/~esr/faqs/smart-...ns.html#before

Everybody on these forums should read the above link. It'd help the people actually in trouble and want answers they might not be able to get by other means.

Arvind
 
Old 07-13-2004, 10:36 AM   #3
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
hehe now I feel bad...
 
Old 07-13-2004, 10:44 AM   #4
jbstew32
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: Debian 3.1
Posts: 149

Rep: Reputation: 15
what school do you go to?

most schools use a program called drscheme for programming. Scheme is a horrible horrible language! I had to learn it inside and out...it is the worst language i've ever tried.

so if you download drscheme, it's a full featured gui that should get you started. It's more like a scripting language...it doesn't actually compile into binary executables, it just kind of executes, heh.

anyway goodluck with that
 
Old 07-13-2004, 10:59 AM   #5
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Good Scheme textbook:

http://www.htdp.org/
 
Old 07-13-2004, 02:50 PM   #6
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
hello:

I study in Mexico at Tecnológico de Monterrey www.itesm.mx hehe yeah I?ve heard people complaining and well.... I don't really know why should I learn it but at school they say I have to....

Thanks thanks a lot! I promise I'll google for it before bugging here hehe

Thanks I?ll check out that book too!
 
Old 07-13-2004, 06:53 PM   #7
jbstew32
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: Debian 3.1
Posts: 149

Rep: Reputation: 15
hey they learn it at MIT too, so I guess it must be the thing to do, heh.www.htdp.org is the book we used.
 
Old 07-13-2004, 07:16 PM   #8
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 545

Rep: Reputation: 30
They also teach it at Purdue if you take Artificial Intelligence. It sucks though because a lot of the time for that class is spent learning scheme rather than AI, which pisses me off. I dropped it about 2-3 weeks into last semester because the professor was a god damn asshole and I didn't want to put up with him. I took an OO Design course instead. I don't think scheme is necessarily a bad language though (doesn't GIMP use it for script-fu?). It is just a lot more abstract to comprehend than a language like C++/Java. Oh by the way jbstew, that professor I was talking about used to teach AI and MIT, so you are lucky
 
Old 07-13-2004, 07:30 PM   #9
jbstew32
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: Debian 3.1
Posts: 149

Rep: Reputation: 15
yea GIMP is the first real application i've seen for it. Scheme is a dumbed down version of LISP (which the AI people here a GaTech tell me is the standard)

oh i don't go to MIT i just know that they learn it there hah. I go to georgia tech (about 6 ranks below MIT in the CS/ECE departments and a bit easier on the freshman programmers) but FYI they have since replaced our Scheme course with MATLAB/Java...they are just a LOT more practical.
 
Old 07-14-2004, 11:42 AM   #10
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
hello:
I've checking scheme but I kinda don't get it.... I have this little program

(define hello-world
(begin
(lambda () (display "Hello, world!")
(newline))))

on DrScheme and it says it doesn't have any sintax mistakes... but I press Execute and nothing happens..... Gosh It's a really abstract language!!
I'm at University and I?d love going to MIT or some school like that... is it really that difficult?

Thanks for your replies!
 
Old 07-14-2004, 11:48 AM   #11
jbstew32
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: Debian 3.1
Posts: 149

Rep: Reputation: 15
um, start simple.

(define (positive-even? x)
(cond [(and (= (remainder x 2) 0) (> x 0)) true]
[else false]))

(positive-even? 23)
(positive-even? 44)


put that into the top window of drscheme, then hit exectute. It checks to see if the given number is greater than zero and even, very simple. The use of things like begin and lambda were topics learned MUCH later in the semester. After you get the basics like what i have above, you can start looking at define-struct, and working with structures. Set drscheme to beginner.
 
Old 07-14-2004, 12:05 PM   #12
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
Unhappy

I did put it into beginner and execute and I've got this:

Welcome to DrScheme, version 207.
Language: ProfessorJ: Beginner.
Expected class definition, found ( which may not be written here
>

and It points to the firs parentesis before the "define" word...

why does it talks about classes? I kinda undertand the sintax.... but having trouble with DrScheme, I've read the help but it doesn't say anything about it

Last edited by poeta_boy; 07-14-2004 at 12:15 PM.
 
Old 07-14-2004, 01:40 PM   #13
jbstew32
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: Debian 3.1
Posts: 149

Rep: Reputation: 15
i think you put the code into the bottom pane of the program. you should put it in the top part. The bottom part is just the interpreter.

like in the bottom window you can do things like
(+ 3 3)
(/ 9 3)

the top window is where you actually define the functions you want to have access to.
 
Old 07-14-2004, 01:41 PM   #14
jbstew32
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: Debian 3.1
Posts: 149

Rep: Reputation: 15
scheme is horrible btw. it uses prefix notation, so you can't just say 3+3 or if ( x == 3) then ..... you have to do (+ 3 3) and (equal? x 3) or whatever

i haven't done scheme in a year, but i think everything i said is accurate
 
Old 07-14-2004, 02:17 PM   #15
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
hehehe I did write it in the top part hehehe........ since I can't copy and paste in the bottom one... but it keeps saying something about class definitions
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install a scheme Starch Linux - Newbie 4 08-16-2005 08:43 AM
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
partioning scheme okplayer02 Linux - Newbie 6 01-31-2005 03:10 PM
partition scheme leeman_s Slackware 2 05-23-2004 11:41 AM
Backup scheme jonas_the_joker Linux - General 1 10-25-2003 07:39 PM


All times are GMT -5. The time now is 09:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration