Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #59602

Re: ANN: matmul package available

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: ANN: matmul package available
Date 2017-05-20 16:02 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2017May20.180225@mips.complang.tuwien.ac.at> (permalink)
References (1 earlier) <7d88df2f-8072-4def-8c00-563de8df3be5@googlegroups.com> <2017May19.161605@mips.complang.tuwien.ac.at> <f31c4f64-1c12-4318-a8a8-16522b40b990@googlegroups.com> <2017May20.152340@mips.complang.tuwien.ac.at> <e319fd1d-4e0c-426e-8495-ff4a0dd24e39@googlegroups.com>

Show all headers | View raw


pahihu <pahihu@gmail.com> writes:
>2017. m=C3=A1jus 20., szombat 15:54:11 UTC+2 id=C5=91pontban Anton Ertl a k=
>=C3=B6vetkez=C5=91t =C3=ADrta:
>Just for reference on this particular machine the Gforth FAXPY primitive
>compared to Forth-94/Forth-2012 versions on iForth 5 (which optimizes the=
>=20
>return stack access very well):
>
>Gforth   FAXPY   294
>
>Pahi-12u UNTIL  295
>Pahi-94u stack   299
>Ertl-12u ------    305
>Pahi-12u Gforth  308

This table is not self-explanatory enough.  What do the columns mean?

>> However, VFX and SwiftForth are slightly slower with variants 2 and 3,
>> and given that the default for Gforth does not use this code, I'll
>> stick with variant 1 for the matmul package.
>
>Sure, variant 1 is gforth specific, ie non-standard.

Ah, posting editing mistake.  I meant that, for faxpy-nostride-variant
2 and 4, I decided to stick with the first (i.e., original) of the
three variants I showed in that posting, because it performs better on
VFX and SwiftForth, and does not affect the default for Gforth.

>Why not provide non-standard versions then for VFX and SwiftForth ?

Who is going to write them?  

FAXPY has been part of Gforth since 0.5.0 in 2000, and using it to
write FAXPY-NOSTRIDE was pretty simple, and I also wanted to see how
close the Forth systems are to this C-compiled code.

But thinking about it, using F+!, which is present in both VFX and
SwiftForth, provides an opportunity for both.  Let's see how it works
(if it's not there, it is replaced by a colon definition):

cycles
Forth-2012 Forth-2012
no f+!     with f+!
 1046M     1048M      vfxlin Ndp387.fth
 2220M     2484M      gforth-fast
 4844M     3584M      SwiftForth HW stack, no WAIT

VFX's compiler is so good that the F+! primitive does not buy
anything, but SwiftForth gets a good benefit out of it.  New version
uploaded.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2017: http://www.euroforth.org/ef17/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-19 10:43 +0000
  Re: ANN: matmul package available krishna.myneni@ccreweb.org - 2017-05-19 05:20 -0700
    Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-19 14:16 +0000
      Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-19 08:28 -0700
        Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-20 05:25 -0700
        Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-20 13:23 +0000
          Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-20 08:43 -0700
            Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-20 16:02 +0000
              Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-20 11:36 -0700
                Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-21 07:52 +0000
                Re: ANN: matmul package available mhx@iae.nl - 2017-05-21 03:28 -0700
                Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-21 05:32 -0700
                Re: ANN: matmul package available mhx@iae.nl - 2017-05-21 05:52 -0700
                Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-21 07:54 -0700
                Re: ANN: matmul package available mhx@iae.nl - 2017-05-21 08:32 -0700
                Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-21 11:24 -0700
                Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-21 13:52 +0000
                Re: ANN: matmul package available mhx@iae.nl - 2017-05-21 08:47 -0700
                Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-22 09:50 +0000
                Re: ANN: matmul package available pahihu <pahihu@gmail.com> - 2017-05-22 07:14 -0700
                Re: ANN: matmul package available mhx@iae.nl - 2017-05-22 07:39 -0700
                Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-23 10:06 +0000
  Re: ANN: matmul package available albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-19 17:00 +0200
    Re: ANN: matmul package available anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-20 13:59 +0000

csiph-web