For Programmers: Free Programming Magazines  


Home > Archive > Scheme > November 2007 > Re: [MIT/GNU Scheme] How to write applications for console









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [MIT/GNU Scheme] How to write applications for console
Aaron W. Hsu

2007-11-07, 7:15 pm

Stephan Lukits <Stephan.Lukits@FernUni-Hagen.de> writes:

>I'm completely new to scheme (not to programming) and since the
>writer of my lecture script and the authors of "Structure and
>Interpretation of Computer Programs" where so fond of
>functional programming in general and scheme in particular
>I thought, I download MIT/GNU-Scheme and write as well as
>compile programs. By now it seems to me that scheme is
>more an (interpreted) add on to programs which need a
>scripting language. I'm a bit .


Alright, I can't tell you much in the way of exactly what you are
trying to do, but I use MIT Scheme extensively, so I should be able to
help in some respects. The first thing you should examine is the
commands for getting input from the screen. Second, remember that a
lot of things in MIT Scheme, especially the latest snapshot, have not
been properly documented, so sometimes you have to go digging through
the source to find what you want. Reading through the Changelog is a
good way of finding out what features may or may not exist.

Additionally, MIT Scheme does have a compiler, though it may not be
the "best" around. You invoke the compiler by starting Scheme with the
--compiler option. You should read in the MIT Scheme User's Manual
about some of this stuff. It will give you some more information about
how all the options work. Basically, there are a bunch of bands
containing the functions that do different things in the system.

One of the ways that you can operate Scheme is to build your own band,
and then you invoke Scheme with this new image, and it will run your
program. Doing this, you can control everything that happens when
Scheme runs your software. Specifically, you can bypass the REPL and
you don't have to print out anything but what you want. Unfortunately,
I don't really now how to do that well, as I have never had to do that.

There are people around that can help you, especially on the MIT
Scheme mailing list. Also, you can send me an email and I will try to
get you in touch with people I know can help. ;-)

MIT Scheme is a very neat and useful Scheme implementation, but it is
not what we would call the easiest thing to use when you first get to
it. After you use it for a while, it's not so bad, but the lack of
documentation of some of the neater features is a problem that some
people, including myself, hope to rectify in the future.

I hope this helps. I know that MIT Scheme can do what you want, but
the question is how, and I don't know all the answers to that, yet.

--
((name "Aaron Hsu")
(email/xmpp "aaron.hsu@sacrificumdeo.net")
(site "http://www.aaronhsu.com"))
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com