unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: "AIscm" array JIT
Date: Fri, 10 Jun 2016 15:33:56 +0200	[thread overview]
Message-ID: <8760thyxq3.fsf@gnu.org> (raw)
In-Reply-To: alpine.DEB.2.11.1606082145020.10565@wedemob

Jan Wedekind <jan@wedesoft.de> 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 = #<sequence<sequence<int<8,unsigned>>>>:
>     ((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’.




  parent reply	other threads:[~2016-06-10 13:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08 21:16 "AIscm" array JIT Jan Wedekind
2016-06-09  9:02 ` tomas
2016-06-09 11:48   ` Jan Wedekind
2016-06-10 13:33 ` Ludovic Courtès [this message]
2016-06-10 16:03   ` Jan Wedekind
2016-06-10 21:48     ` Arne Babenhauserheide
2016-06-11  7:32       ` Jan Wedekind
2016-06-10 17:38 ` Nala Ginrut
2016-06-11  1:42 ` Basa Centro
2016-06-11 12:22   ` Jan Wedekind

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760thyxq3.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).