From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Some guile-unify activities Date: Sun, 08 May 2011 17:38:52 +0200 Message-ID: <87iptlcicz.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304869157 6419 80.91.229.12 (8 May 2011 15:39:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 May 2011 15:39:17 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun May 08 17:39:14 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJ64g-0008OB-1S for guile-devel@m.gmane.org; Sun, 08 May 2011 17:39:14 +0200 Original-Received: from localhost ([::1]:51541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ64f-0000Tb-KW for guile-devel@m.gmane.org; Sun, 08 May 2011 11:39:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ64c-0000TL-Vd for guile-devel@gnu.org; Sun, 08 May 2011 11:39:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ64c-0001kK-1n for guile-devel@gnu.org; Sun, 08 May 2011 11:39:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ64b-0001jl-SR for guile-devel@gnu.org; Sun, 08 May 2011 11:39:10 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJ64X-0008Ky-Jl for guile-devel@gnu.org; Sun, 08 May 2011 17:39:05 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 May 2011 17:39:05 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 May 2011 17:39:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?iso-8859-1?Q?Flor=E9al?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:V/Gq5JSbv56dc8A0ku+z+Niuzx4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:12461 Archived-At: Hey, Nice stuff! Stefan Israelsson Tampe writes: > 3. For the type-checking examples I've been working with the assumptions of > having fixed declarations for > lambdas and deduce types for variables and their passage through the system. > The thought is that in the end > one need to allow lambdas to be explicitly typed in order to allow advanced > type-checking and at the same time > avoid infinite recursions. I think that it's not uncommon in Haskell > programming to add type information in order > to guide the type checker and being at such an infant stage having something > useful and working must simple allow > for type hint's in the code. FWIW the Hindley-Milner type inference example of Mini-Kanren works well, at least for simple cases: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (run* (q) (!- (parse '(lambda (x) (+ x 1))) q)) $1 = ((int -> . int)) scheme@(guile-user)> (run* (q) (!- (parse '(lambda (x) (zero? x))) q)) $3 = ((int -> . bool)) --8<---------------cut here---------------end--------------->8--- Thanks, Ludo’.