When you are ready for more, you can look at the exercises on my blog <a href="http://programmingpraxis.com">http://programmingpraxis.com</a>. All the solutions are given in Scheme. One of the exercises is a Sieve of Eratosthenes.<br>
<br><div class="gmail_quote">On Thu, Aug 6, 2009 at 3:52 PM, SiWi <span dir="ltr"><<a href="mailto:wimmersimon@googlemail.com">wimmersimon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for your hints and tips first of all. As I've been on<br>
holiday the last days, I had no internet access and couln't reply to<br>
your posts therefore.<br>
<div class="im">> Question is what is your goal?<br>
> -- functional programming per se (as a philosopher, I would have to <br>
> question if it exists)<br>
> -- Scheme programming in a functional way?<br>
> -- Scheme programming in the 'best' possible way?<br>
> -- best could mean 'fastest' (as you saw Eli's program is faster <br>
> than yours)<br>
> -- best could mean 'suitable for proving theorems automatically'<br>
> -- and many more things<br>
<br>
</div>My goal is functional programming in genreral and Scheme programming<br>
in the 'best' way. I'd also be interested in where exactly the<br>
differences between 'best' Scheme programming( where 'best' would<br>
rever to a mixture between speed and idiomatic Scheme programming) and<br>
'best' functional programming style can be found.<br>
On a sidenote, I want to use the primes code to try out a few project<br>
euler problems with Scheme to get started with the language.<br>
Therefore speed matters a bit, but of course it should not be the<br>
world's most efficient prime numbers generator. :)<br>
<div class="im">> So the last question is:<br>
> -- perhaps you really want to learn to program in PLT Scheme so <br>
> that you can see what<br>
> elegant lazy functional programmers do,<br>
> strict lazy programmers,<br>
> OO programmers,<br>
> logic programmers,<br>
> and imperative programmers<br>
> without ever leaving the language.<br>
<br>
</div>My main goal is to learn something new, not only PLT-Schme, but also<br>
about programming styles in general.<br>
Therefore I want to learn coding in Scheme in general, but I'm also<br>
interested in strict lazy and logic programming.<br>
I've done enough OO and imperative programming in other languages so<br>
I'm not really interested in that at the moment, although I would like<br>
to learn about this in Scheme as well.<br>
<div><div></div><div class="h5">_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</div></div></blockquote></div><br>