From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: Fun with guile, Erastones + goldbach conjecture Date: Tue, 9 Apr 2013 21:35:04 +0200 Message-ID: References: <1551498.g80VkUsTQo@warperdoze> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec54860f077fbeb04d9f2a6a7 X-Trace: ger.gmane.org 1365536114 17578 80.91.229.3 (9 Apr 2013 19:35:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2013 19:35:14 +0000 (UTC) Cc: "guile-user@gnu.org" , guile-devel To: Stefan Israelsson Tampe Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 09 21:35:18 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPeK5-0003Xa-H3 for guile-user@m.gmane.org; Tue, 09 Apr 2013 21:35:17 +0200 Original-Received: from localhost ([::1]:40731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPeK5-0005Bf-5t for guile-user@m.gmane.org; Tue, 09 Apr 2013 15:35:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPeJv-00058b-Ml for guile-user@gnu.org; Tue, 09 Apr 2013 15:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPeJt-00014e-T6 for guile-user@gnu.org; Tue, 09 Apr 2013 15:35:07 -0400 Original-Received: from mail-vc0-f175.google.com ([209.85.220.175]:54658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPeJt-00013P-P5; Tue, 09 Apr 2013 15:35:05 -0400 Original-Received: by mail-vc0-f175.google.com with SMTP id ha12so531681vcb.20 for ; Tue, 09 Apr 2013 12:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=9hG8uVEvlatcXQ4y/UMyez9RumihCHE3+5BKbb1x8ec=; b=eg7DLP5boUHTIuMRxvKHNXI99UQSbe5/N0SIWQ1K2nM2rjiTi+K1PhBAR3Cexi7WQy xEXafT8lrhzm6+LfuLbhWs09Z2q+9w/PFFkcnOxiCjWaIvevxYuvKToxBmqBJg41yk5Q 7ra+hvm6JIxhlTp+GdGWiym8K2GPxNMua5MDg2qFWmxFmXfP067SuQ4cUHyulEVMLUOK hJ5a9NKgUDKfLypB4PWi+3NlKuYC/i+glnbd0lGTl71J/Lzqo9j+6hcxXCj7ujXOwUzy D/5Qdq5iSDYrIGkl/v1B9GCcpPwxAQnKAswcJa9f/xnt+/fAd66zD//Et0o54PtxAX4x bwlg== X-Received: by 10.52.108.10 with SMTP id hg10mr4649415vdb.34.1365536105035; Tue, 09 Apr 2013 12:35:05 -0700 (PDT) Original-Received: by 10.220.141.10 with HTTP; Tue, 9 Apr 2013 12:35:04 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.175 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10254 gmane.lisp.guile.devel:16208 Archived-At: --bcaec54860f077fbeb04d9f2a6a7 Content-Type: text/plain; charset=ISO-8859-1 Hey, I see that the style of your code is fairly unorthodox. I'd suggest you to read the following chapters of SICP, if you haven't already: Section 3.5 (Streams), which introduces the notion of streams, or lazy lists (that can be infinite), with the most amazing example of Erastostenes' sieve implementation, as well as sections 4.1 and 4.3 of Chapter 4 (Metalinguistic abstraction). The first one presents the notion of "meta-circular evaluator", which is then used to implement "non-deterministic evaluator", which allows to express certain problems extremely elegantly. Simultaneously, the book shows many examples of the finest programming style in Scheme. I think you might find it quite entertaining and useful. Best regards, M. --bcaec54860f077fbeb04d9f2a6a7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey,
I see that the style of your code is fairly= unorthodox.
I'd suggest you to read the following chap= ters of SICP,
if you haven't already:
Section 3.5 (Streams), which introduces the notion
of streams, or lazy lists (that can be infinite), with the
most amazing example of Erastostenes' sieve=A0
implemen= tation, as well as sections=A04.1=A0and=A04.3=A0of<= /div>
presents the notion of "meta-circular evaluator&q= uot;, which
is then used to implement "non-deterministic evaluator"= ;,
which allows to express certain problems extremely
=
elegantly. Simultaneously, the book shows many=A0
examples of the finest programming style in Scheme.
I think= you might find it quite entertaining and useful.

Best regards,
M.

--bcaec54860f077fbeb04d9f2a6a7--