Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scheme and socket work?

3 views
Skip to first unread message

Hyperion

unread,
Jun 7, 2003, 11:51:42 PM6/7/03
to
Can anyone advise me on, or point me in the direction of some socket
work examples in scheme?

As yet I haven't found any examples, unless that is Scheme doesn't use
sockets and has a different way for doing network coding like writing an
irc client or an email prog, news reader, httpd, filesharing, that sort
of thing?

Coming from Python and python being my 1st langauge, I have little
experience as yet, and don't know if scheme uses sockets or if there is
some other way of coding network stuff, in scheme?

Anyways any help would be greatly appreciated thanks :)

Hyperion out

Neil W. Van Dyke

unread,
Jun 8, 2003, 2:30:17 AM6/8/03
to
Hyperion <Agent...@Matrix.com> writes:
> As yet I haven't found any examples, unless that is Scheme doesn't use
> sockets and has a different way for doing network coding like writing an
> irc client or an email prog, news reader, httpd, filesharing, that sort
> of thing?

Lots of Scheme implementations provide access to TCP sockets (and
sometimes UDP sockets), but they all do it a bit differently.

If you're using DrScheme, go to the Help Desk (from the Help menu) and
search for "sockets".

And if you're not using DrScheme, I recommend giving it a try. For one
thing, I suspect you'll find the Check Syntax feature helpful.

Thien-Thi Nguyen

unread,
Jun 8, 2003, 4:18:24 AM6/8/03
to
Hyperion <Agent...@Matrix.com> writes:

> some socket work examples in scheme?

wiki in (guile) scheme:

http://www.glug.org/people/ttn/software/wikid/

there is source and documentation under the subdir "dist",
or you can grab the tarball and browse locally.

thi

Anton van Straaten

unread,
Jun 8, 2003, 5:42:00 PM6/8/03
to
> As yet I haven't found any examples, unless that is Scheme doesn't
> use sockets and has a different way for doing network coding like
> writing an irc client or an email prog, news reader, httpd, filesharing,
> that sort of thing?

Which Scheme are you using? Quite a few Scheme implementations come with
some nice examples of network code in Scheme. As Neil mentioned, DrScheme
is a good choice - it has a friendly & useful development environment, good
online help, and a large & useful library which includes code for handling
sockets, urls, and protocols like smtp, pop3, ftp, imap, plus a
sophisticated web server (with source).

For a small standalone code sample, here's a very small web server written
for PLT Scheme (DrScheme/MzScheme):
http://groups.google.com/groups?ic=1&q=msgid:j7vya35jz47.fsf%40sun.cs.rice.e
du

Anton

Hyperion

unread,
Jun 9, 2003, 8:30:16 AM6/9/03
to
Anton van Straaten wrote:

Ahh sorry forgot to mention what type of scheme I was using to learn the
language.

My bad :( I am in fact using DrScheme to teach myself scheme due to its
helpfull parts included with the distro, such as htdp and Teach Yorself
Scheme In fixnum days.

lthough I do find the area of going through the process used for
teachers teaching scheme as I cant work out how to sue it properly or
find answers to some of the tests that your asked to do.

Although I am working sucesfully through htdp and SICP and also Teach
Yorself Scheme In fixnum days. and Scheme programming language doc.

I didnt realise that DrScheme ahad code examples and code for socket
work within it in its library's I will investigate further thanks.

Hyperion out


Hyperion

unread,
Jun 9, 2003, 8:31:26 AM6/9/03
to
Thien-Thi Nguyen wrote:

Yes I had seen this when I did a google for Scheme socket examples and
also irc client in scheme.

Though I am however using DrScheme not guile so.........

Thanks anyways ;)

Hyperion out

Hyperion

unread,
Jun 9, 2003, 8:32:26 AM6/9/03
to

Yes great thanks, I had no idea DrScheme came with tools for using
sockets and code examples in it's libs.

Great stuff ;)

Hyperion out

0 new messages