*
The moose likes Other Languages and the fly likes Scheme Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Scheme" Watch "Scheme" New topic
Author

Scheme

Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
Does anyone here use Scheme? I heard about it a few weeks ago and from what I've seen it is a very interesting language. I just wanted to know if anyone had a good book/web resource that they recommend for learning it. Thanks.


Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41147
    
  45
"Use" is probably saying too much -at least not regularly-, but I've had a soft spot for it ever since I learned about it in college, and still keep a working implementation on my machine. See http://faq.javaranch.com/java/LearnScheme for some pointers to get started; Structure and Interpretation of Computer Programs is a really good book.


Ping & DNS - my free Android networking tools app
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Scheme is a terrific language, although not my favorite Lisp-y language. There are a multitude of excellent implementations, including a few for the JVM. I'm partial to DrScheme, but if you're just starting out you might want to explore a more "vanilla" implantation, depending on your goals.

I second SICP as being a Very Important Book for developers.

(Much of what's great about Scheme is also great about Clojure, although Clojure's macros are CL-like as opposed to Scheme-like. But if you're interested in staying on the JVM, great Java integration, and functional programming and concurrency, Clojure is a better choice.)
Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
Thanks for all the help! I will go through SICP and see how I do. Just out of curiosity, I have done some simple things like written the quadratic equation and found the standard deviation of a set of numbers, is there a way to compile it to an exe? I have googled around and not found anything useful.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Totally depends on which Scheme you're using. Some will go from Scheme to C, which can also be compiled.
Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
The scheme I am using is Dr.Scheme. I like it because it has the listener so you can test things out while writing the program in the upper window. Is there a way to compile it to C then to an exe?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

In all fairness, essentially every Scheme has tight integration with Emacs (hands-down the best Lisp environment, still). But I agree, DrScheme is good.

To be accurate, we should refer to it as Racket now, I just keep forgetting.

I'd probably just read the documentation regarding various ways to package your programs. Quicker than waiting for someone else to answer your questions, almost always. If specific issues pop up, why not ask on the Racket mailing list/forum? They have a lot more expertise using their system than almost (99.9%) anybody on JavaRanch.

http://docs.racket-lang.org/guide/exe.html
Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
Thanks for all of your help. The link you pointed me to helped, but i keep getting and error. If you can help I would appreciate it. If not then i will go surf there forums and see if anyone else has ran into the problem i have.

here is 'hello.ss'


and here is what i get from command prompt when i use



Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://docs.racket-lang.org/raco/exe.html wrote:The raco exe command works only with module-based programs. The compiler/embed library provides a more general interface to the embedding mechanism.

I'd consider spending a bit more time with the documentation--you'll find it quite helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scheme
 
Similar Threads
Wanna purchase Coupon
Encoding 8859_1 to 8859_7
WSAD - JNDI name for local home interface
Control scheme for the client GUI
PostgreSQL scheme import