From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Ceuppens Newsgroups: gmane.lisp.guile.devel Subject: examples addon and new hacker for guile Date: Thu, 3 Oct 2013 06:17:48 +0900 (JST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1380748680 21270 80.91.229.3 (2 Oct 2013 21:18:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 21:18:00 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 02 23:18:04 2013 Return-path: Envelope-to: guile-devel@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 1VRTny-0000YL-NU for guile-devel@m.gmane.org; Wed, 02 Oct 2013 23:17:58 +0200 Original-Received: from localhost ([::1]:38667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRTny-0000DV-9K for guile-devel@m.gmane.org; Wed, 02 Oct 2013 17:17:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRTnt-0000DQ-HF for guile-devel@gnu.org; Wed, 02 Oct 2013 17:17:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRTns-0004TY-Gf for guile-devel@gnu.org; Wed, 02 Oct 2013 17:17:53 -0400 Original-Received: from mail-wi0-x241.google.com ([2a00:1450:400c:c05::241]:63660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRTns-0004TS-84 for guile-devel@gnu.org; Wed, 02 Oct 2013 17:17:52 -0400 Original-Received: by mail-wi0-f193.google.com with SMTP id hj3so253921wib.0 for ; Wed, 02 Oct 2013 14:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:user-agent:mime-version :content-type; bh=jIxq0mkeNAMTZgV6B8zV2hEzvpr8xSBD+uGuQ6JMm6w=; b=YnsHqWFc6WybNipCxxQjEIZCFkltrhl7RPkloFFVuU2hVT1H7ZUMHM1/eqewByCO9i jcTLwIeLV7e6X5vbQRJFvKlEwvKNOpynjAhZdVWhcJ8/OV/j6tjbqF+mY/wieSZePEwO Thagbzhgt/qqKCrXMjpMNiaz97feRLjex6ks4J9xgYzS62CzTLdDGgLpjHK9HvcFTOwK qqyD8w3hNAR6O4wstOnafoSHL38/+3fnX2TASQquoyVJEJzZ/aAocQbtzcmK/5pbFWz8 Kz8t/qSBkLq2+i1NLkJcz8vgGKTTB+mcNsvGq6Hqi5T3PsMeJpPfEz4FfnBKCIgtJYRN CpXg== X-Received: by 10.180.37.227 with SMTP id b3mr3868713wik.24.1380748670738; Wed, 02 Oct 2013 14:17:50 -0700 (PDT) Original-Received: from [2a02:a03f:23d:c900:5842:859:906a:428a] ([2a02:a03f:23d:c900:5842:859:906a:428a]) by mx.google.com with ESMTPSA id c4sm7306150wiz.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Oct 2013 14:17:50 -0700 (PDT) User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::241 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16663 Archived-At: Hi all, I wonder if you would want an example in the repo with the following actor syntax : ;; start code (define (make-table) (let ((dict (make-dictionary))) (define (add! key color) (dictionary-add! dict key color)) (define (set! key color) (dictionary-set! dict key color)) (lambda (msg) (cond ((eq? msg 'add!) add!) ((eq? msg 'set!) set!) (else (dict msg)))) )) ;; end code Then doing things like : ;; start code (define (make-sub-table) (let ((*subtable (make-table))) (define (dispatch msg) (*subtable msg)) (lambda (msg) (cond ((eq? 'msg msg) (dispatch msg))))) ;; end code Then I am going to try to contribute in the near future, I guess I need to read up on things. How do I get co-author status on the project's working repository ? Best regards, Johan