[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "AIscm" array JIT
From: |
Ludovic Courtès |
Subject: |
Re: "AIscm" array JIT |
Date: |
Fri, 10 Jun 2016 15:33:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Jan Wedekind <address@hidden> 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’.