From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: "AIscm" array JIT Date: Fri, 10 Jun 2016 15:33:56 +0200 Message-ID: <8760thyxq3.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1465565691 17667 80.91.229.3 (10 Jun 2016 13:34:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2016 13:34:51 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jun 10 15:34:43 2016 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 1bBMa9-00046y-Ke for guile-user@m.gmane.org; Fri, 10 Jun 2016 15:34:41 +0200 Original-Received: from localhost ([::1]:41168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBMa8-0003HX-Nc for guile-user@m.gmane.org; Fri, 10 Jun 2016 09:34:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBMZp-0003HR-EM for guile-user@gnu.org; Fri, 10 Jun 2016 09:34:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBMZm-0007x0-79 for guile-user@gnu.org; Fri, 10 Jun 2016 09:34:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBMZm-0007wq-0S for guile-user@gnu.org; Fri, 10 Jun 2016 09:34:18 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bBMZj-0003nn-Qj for guile-user@gnu.org; Fri, 10 Jun 2016 15:34:15 +0200 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2016 15:34:15 +0200 Original-Received: from ludo by pluto.bordeaux.inria.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2016 15:34:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pluto.bordeaux.inria.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 Prairial an 224 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:dZGpEpspx4xWV3PMaWTWNVsPtiI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:12607 Archived-At: Jan Wedekind skribis: > Here is an example adding an integer to each element of a 2D array > and returning the result: > > scheme@(guile-user)> (use-modules (oop goops) (aiscm jit) (aiscm int) > (aiscm pointer) (aiscm sequence)) > scheme@(guile-user)> (+ (arr (2 3 5) (7 11 13)) 3) > $1 = #>>>: > ((5 6 8) > (10 14 16)) > > The fallback method for the GOOPS generic "+" adds a JIT compiled > plus operation for the specific array types to the generic and then > calls "+" again. Woow, exciting stuff! It can surely make a different for number crunching applications. Ludo’.