Friday, July 20, 2007

Scheme Propaganda: Multithreaded Port Scanner

This is probably a repost, but what the heck. It's good stuff. This article introduces Scheme to a wide audience thanks to an annotated example. The example is that of a multithreaded port scanner.

Here's a snippet from the introduction:

When I tell programmers that my favorite programming language is Scheme, they tend to react as though I'd told them my favorite snack were packing styrofoam or my favorite music were junior high orchestra recordings: those who can even bring themselves to believe me mostly wonder what on Earth I could be thinking. Some wonder if I've ever programmed in a real language like C or C++ (I have), if I'm one of those academic nuts who cares more about proving theorems about programs than actually using them for real work (I'm not), or if all those parentheses have rotted my brain (probably). So what could make me like this weird language with no for loop and so many parentheses it makes you crosseyed?

In this article, I'll show you by way of example. By the time I'm finished I hope I'll also have convinced you that you might want to give it a shot yourself.

Read the entire article here.

If you are interested in learning Scheme, one option you may want to try is to read the specification. This is usually awful advice for learning a language. Could you imagine learning Java from the 688 page specification?. Don't think so. In the case of Scheme though, the spec is only 50 pages long, and is quite readable. There will be some topics mentioned in there which need more explanation, but it does provide a nice overview to get you started.

Happy Scheming.

No comments:

Post a Comment