ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!!
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.
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.
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
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
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.
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?
(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.
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.