POV-Ray : Newsgroups : povray.unofficial.patches : pvmpovray35 release Server Time
5 Jul 2024 14:37:09 EDT (-0400)
  pvmpovray35 release (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Matthew Grove
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 00:43:16
Message: <3df821f4@news.povray.org>
On Thu, 12 Dec 2002 01:29:58 +1300, Warp wrote:

>   I successfully installed PVM for myself and compiled pvmpovray35.
> 
>   Using 12 sparcs benchmark.pov (with the suggested options) rendered in
>   34
> minutes. Not bad.

Nice to hear that it actually works for someone else :-)
It would be nice to see more parallel benchmark results on
povbench/tabsnet, so I encourage all to post their results.

Matthew.


Post a reply to this message

From: Matthew Grove
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 00:53:53
Message: <3df82471@news.povray.org>
On Wed, 11 Dec 2002 23:14:04 +1300, Warp wrote:

>   By the way, I wouldn't like to start a sermon about programming
>   guidelines,
... 
>   For some reason many programmers have the odd idea that a header file
>   is
> a file where you declare all types and constants, regardless of where
> they are used. This is certainly not the purpose of a header file.
> 
>   Sorry, couldn't help myself... :)

I didn't write the original, I just did enough to get the thing to work
with 3.5. Quite frankly, POV-Ray and the PVM patch have enough holes to
drive a fairly large truck through.
However, I do agree that in theory, only 'public' stuff should go in the
header files, but sometimes it is not always that simple...

Matthew.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 04:35:22
Message: <3df8585a$1@news.povray.org>
In article <3df7e833@news.povray.org> , "Apache" 
<apa### [at] yahoocom> wrote:

> Peopla at university taught me this very thing: put types and constants in
> header file.

Which is completely wrong:  Only put types and constants used in more than
one source file into a header file.  Otherwise you just clutter the
namespace, regardless of the language being used.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Apache
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 04:47:06
Message: <3df85b1a$1@news.povray.org>
Agreed! I had some trouble with those people more than once about this kind
of things.

"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3df8585a$1@news.povray.org...
> In article <3df7e833@news.povray.org> , "Apache"
> <apa### [at] yahoocom> wrote:
>
> > Peopla at university taught me this very thing: put types and constants
in
> > header file.
>
> Which is completely wrong:  Only put types and constants used in more than
> one source file into a header file.  Otherwise you just clutter the
> namespace, regardless of the language being used.
>
>     Thorsten
>
> ____________________________________________________
> Thorsten Froehlich, Duisburg, Germany
> e-mail: tho### [at] trfde
>
> Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 05:50:34
Message: <3df869f9@news.povray.org>
Apache <apa### [at] yahoocom> wrote:
> Peopla at university taught me this very thing: put types and constants in
> header file.

  Then change university. :)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Warp
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 08:30:44
Message: <3df88f84@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   Using 12 sparcs benchmark.pov (with the suggested options) rendered in 34
> minutes. Not bad.

  With 29 sparcs benchmark.pov rendered in 21 minutes.

  One problem is that it takes almost 6 minutes to parse benchmark.pov
regardless of the amount of computers, so the time will never go under
that no matter how many sparcs I use (except if I use faster sparcs,
of course).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Christoph Hormann
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 10:00:23
Message: <3DF8A486.A9637129@gmx.de>
Warp wrote:
> 
>   One problem is that it takes almost 6 minutes to parse benchmark.pov
> regardless of the amount of computers, so the time will never go under
> that no matter how many sparcs I use (except if I use faster sparcs,
> of course).

Distributing the photons should be quite possible theoretically, of course
it would be quite some additional work to implement.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 07 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Michael Goldshteyn
Subject: Re: pvmpovray35 release
Date: 12 Dec 2002 12:18:04
Message: <3df8c4cc@news.povray.org>
Maybe in C, in C++ your types and constants should have the scope of the
class or namespace they are defined in, thus only cluttering that namespace,
if you can even consider that clutter.

Mike

"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3df8585a$1@news.povray.org...
> In article <3df7e833@news.povray.org> , "Apache"
> <apa### [at] yahoocom> wrote:
>
> > Peopla at university taught me this very thing: put types and constants
in
> > header file.
>
> Which is completely wrong:  Only put types and constants used in more than
> one source file into a header file.  Otherwise you just clutter the
> namespace, regardless of the language being used.
>
>     Thorsten
>
> ____________________________________________________
> Thorsten Froehlich, Duisburg, Germany
> e-mail: tho### [at] trfde
>
> Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: pvmpovray35 release
Date: 13 Dec 2002 03:52:54
Message: <3df99fe6@news.povray.org>
Michael Goldshteyn <mgo### [at] n-o-s-p-a-m-earthlinknet> wrote:
> Maybe in C, in C++ your types and constants should have the scope of the
> class or namespace they are defined in, thus only cluttering that namespace,
> if you can even consider that clutter.

  Naturally, but even in C++ the same principle holds: Types and constants
used only inside the module should be defined in the .cpp file, not the
header file.

  Of course the exception to this in C++ are the definitions in the private
part of the (public) class, which must be declared in the same place as the
class itself (ie. in the header). Even though this is cumbersome, the reason
for this is purely technical: The compiler must know the size of the class
everywhere it's used, and member variables inside the class need to be known
in order to know this size (regardless of where they are inside the class).

  One thing which I don't like and don't agree is that in C++ you also must
declare all private methods and types in the same class definition as well.
There's no technical nor syntactical need for this. It would be perfectly
possible to declare private methods and types separately from the class
definition itself.
  For example, I don't see any problem in supporting something like this:

(In file.hh)

class Whatever
{
 public:
    void f();

 private:
    int a;
};

(In file.cc)

void Whatever::f() // Implementation of the public method f()
{
    ...
}

typedef double Whatever::D; // A private type declaration

void Whatever::g() // Declaration and implementation of a private method g()
{
    ...
}

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Apache
Subject: Re: pvmpovray35 release
Date: 13 Dec 2002 18:09:20
Message: <3dfa68a0$1@news.povray.org>
I changed classes :-)


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.