From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: Loops and parallel execution
Date: Tue, 15 Feb 2011 22:10:05 +0100
Date: 2011-02-15T22:10:04+01:00 [thread overview]
Message-ID: <4d5aebac$0$7667$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <ca880763-d1cb-4dde-96fa-1776eae86e95@glegroupsg2000goo.googlegroups.com>
On 2/15/11 12:27 AM, Tuck wrote:
> On Wednesday, January 26, 2011 5:47:00 AM UTC-5, Georg Bauhaus wrote:
>> Is anything known yet
>> about what John Barnes's Integrate example would look like if
>> written in idiomatic ParaSail?
>
> It might look something like this:
>
> function Integrate(
> function Func(X : Floating is Float<>) -> Floating;
> Over : Interval<Floating>)
> -> Floating is
> ...
> end function Integrate;
>
> ...
>
> const Result := Integrate(Sin, Over => 0.0 .. Pi/2.0);
Thanks, I must have overlooked nested declarations.
(Thought that one would have to make passing values
explicit; thus using an outer function's argument
within another function local to the former would
have been ruled out. Doesn't seem so!)
next prev parent reply other threads:[~2011-02-15 21:10 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 15:40 Loops and parallel execution Georg Bauhaus
2011-01-25 16:37 ` Dmitry A. Kazakov
2011-01-25 17:36 ` Georg Bauhaus
2011-01-25 17:38 ` Georg Bauhaus
2011-01-25 21:32 ` Dmitry A. Kazakov
2011-01-25 22:07 ` Georg Bauhaus
2011-01-26 1:31 ` Yannick Duchêne (Hibou57)
2011-01-26 9:04 ` Dmitry A. Kazakov
2011-01-26 1:06 ` Yannick Duchêne (Hibou57)
2011-01-26 10:08 ` Dmitry A. Kazakov
2011-01-31 13:01 ` Paul Colin Gloster
2011-02-06 20:06 ` Yannick Duchêne (Hibou57)
2011-02-07 11:43 ` Nicholas Paul Collin Gloster
2011-01-26 8:46 ` Egil Høvik
2011-01-26 10:47 ` Georg Bauhaus
2011-02-14 23:27 ` Tuck
2011-02-15 21:10 ` Georg Bauhaus [this message]
2011-01-26 11:29 ` Peter C. Chapin
2011-01-26 21:57 ` Randy Brukardt
2011-01-27 23:01 ` tmoran
2011-01-29 0:23 ` Randy Brukardt
2011-02-06 20:10 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox