• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scheme

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Totally depends on which Scheme you're using. Some will go from Scheme to C, which can also be compiled.
 
Cody Long
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic