POV-Ray : Newsgroups : povray.unofficial.patches : Retaining persistent variables in MegaPov 1.0 Server Time
4 Jul 2024 20:36:03 EDT (-0400)
  Retaining persistent variables in MegaPov 1.0 (Message 4 to 13 of 23)  
<<< Previous 3 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: ABX
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 8 Oct 2003 13:45:36
Message: <4si8ovsu7bgdaato8e14rf9lf3bonc7rf0@4ax.com>
On Wed,  8 Oct 2003 13:27:52 EDT, "sups" <sbh### [at] lycoscom> wrote:
> I have tried the file I/O feature. Due to the very
> large size of the file (476 Kb), reading seems extremely slow, almost same
> time as generating the data. e.g.

What method do you use to perform writing/reading ?

Do you use #write #read ? Perhaps reading through #include would be faster ?
Perhaps writing it into array would offer later fastest #include? Perhaps
other trick could be possible as well - for example you could write data into
ascii image and then read it through evaluation of colors on pigment. I
suggest to seeking for workarounds temporary as long as persistent variables
are not available.

ABX


Post a reply to this message

From: Christoph Hormann
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 8 Oct 2003 14:02:02
Message: <jtvd51-41u.ln1@triton.schunter.etc.tu-bs.de>
sups wrote:
> Hi ABX!
> 
> Thank you for both your replies. From your previous reply it was clear that
> persistent variables may not have made it to MP1.0. But in the manuals of
> MP1.0, nowhere it has been explicitly mentioned. Therefore I had the
> slightest hope that this feature may be accesible in some other way. It
> would be really nice to get this feature back since my code is not
> compatible with MP0.7.

It is not very likely that this will happen any time soon.  The 
persistence of variables patch was somewhat ugly and Nathan was probably 
the only one who really understood it.

I would also prefer a different syntax for such a patch.  Like for 
example a new #persistent directive which works like #declare and #local 
but stores the data differently so it is not cleared after each frame.

Christoph

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


Post a reply to this message

From: sups
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 8 Oct 2003 14:10:01
Message: <web.3f8452f2b6855006d467bfc30@news.povray.org>
Right now, I have used the #read and it seems too slow. I will try #include
and let you know what happens. I also agree with Chris on the syntax of
persistent variables.

thank you
Sup

ABX wrote:
>On Wed,  8 Oct 2003 13:27:52 EDT, "sups" <sbh### [at] lycoscom> wrote:
>> I have tried the file I/O feature. Due to the very
>> large size of the file (476 Kb), reading seems extremely slow, almost same
>> time as generating the data. e.g.
>
>What method do you use to perform writing/reading ?
>
>Do you use #write #read ? Perhaps reading through #include would be faster ?
>Perhaps writing it into array would offer later fastest #include? Perhaps
>other trick could be possible as well - for example you could write data into
>ascii image and then read it through evaluation of colors on pigment. I
>suggest to seeking for workarounds temporary as long as persistent variables
>are not available.
>
>ABX
>


Post a reply to this message

From: ingo
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 8 Oct 2003 14:19:21
Message: <Xns940ECEBB9AD8Bseed7@netplex.aussie.org>
in news:jtv### [at] tritonschunteretctu-bsde Christoph Hormann 
wrote:

> I would also prefer a different syntax for such a patch

Just an idea, how about something inspired by Pythons pickle and shelve:
http://www.python.org/doc/current/lib/module-pickle.html
http://www.python.org/doc/current/lib/module-shelve.html

You could make not just variables persistent but whole objects or scene 
sections.

Ingo


Post a reply to this message

From: Micheal (Mike) Williams
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 9 Oct 2003 08:39:32
Message: <3f855704$1@news.povray.org>
#declare_persistant = XXXX;

This seems like the best way. This would work for objects as well I would
assume. Just my thoughts.

"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:jtv### [at] tritonschunteretctu-bsde...
> sups wrote:
> > Hi ABX!
> >
> > Thank you for both your replies. From your previous reply it was clear
that
> > persistent variables may not have made it to MP1.0. But in the manuals
of
> > MP1.0, nowhere it has been explicitly mentioned. Therefore I had the
> > slightest hope that this feature may be accesible in some other way. It
> > would be really nice to get this feature back since my code is not
> > compatible with MP0.7.
>
> It is not very likely that this will happen any time soon.  The
> persistence of variables patch was somewhat ugly and Nathan was probably
> the only one who really understood it.
>
> I would also prefer a different syntax for such a patch.  Like for
> example a new #persistent directive which works like #declare and #local
> but stores the data differently so it is not cleared after each frame.
>
> Christoph
>
> --
> POV-Ray tutorials, include files, Sim-POV,
> HCR-Edit and more: http://www.tu-bs.de/~y0013390/
> Last updated 2 Sep. 2003 _____./\/^>_*_<^\/\.______
>


Post a reply to this message

From: Christopher James Huff
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 9 Oct 2003 13:09:31
Message: <cjameshuff-C6E436.13070809102003@netplex.aussie.org>
In article <3f855704$1@news.povray.org>,
 "Micheal \(Mike\) Williams" <mic### [at] quixnetnet> wrote:

> #declare_persistant = XXXX;
> 
> This seems like the best way. This would work for objects as well I would
> assume. Just my thoughts.

Simply #persistant should be enough, and consistent with the existing 
#declare, #local keywords. And it should be possible without too much 
work for anything that can be declared...but I haven't really looked at 
the changes that would need to be made.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: ABX
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 9 Oct 2003 13:36:32
Message: <rk6bov0qt73b9hmm5af9oj8tgibihbemgb@4ax.com>
On Thu, 09 Oct 2003 13:07:08 -0400, Christopher James Huff
<cja### [at] earthlinknet> wrote:
> Simply #persistant should be enough, and consistent with the existing 
> #declare, #local keywords. And it should be possible without too much 
> work for anything that can be declared...but I haven't really looked at 
> the changes that would need to be made.

I suppose it will be more difficult at least because of functions existence.

#declare C=function{pigment{object{sphere{0,1}rgb 0 rgb 1}}}
#persistent D=function{C(x,y,z)+1}

BTW I would prefer #persist more than #persistent

ABX


Post a reply to this message

From: Ken
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 9 Oct 2003 22:09:05
Message: <3F861502.C70467C8@pacbell.net>
ABX wrote:

> BTW I would prefer #persist

I would agree with that.

-- 
Ken Tyler


Post a reply to this message

From: Christopher James Huff
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 9 Oct 2003 23:08:23
Message: <cjameshuff-88ED7F.23055809102003@netplex.aussie.org>
In article <rk6bov0qt73b9hmm5af9oj8tgibihbemgb@4ax.com>,
 ABX <abx### [at] abxartpl> wrote:

> BTW I would prefer #persist more than #persistent

Well, it doesn't fit in with either of the the other commands. #declare 
is an action, you declare a variable. #local is a descriptive word like 
#persistent. You can't persist a variable...it is the variable that 
persists. But you can declare a persistant variable. The word "persist" 
just doesn't seem to fit into the language.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Christoph Hormann
Subject: Re: Retaining persistent variables in MegaPov 1.0
Date: 10 Oct 2003 03:49:41
Message: <7l3i51-8u1.ln1@triton.schunter.etc.tu-bs.de>
Christopher James Huff wrote:
> Well, it doesn't fit in with either of the the other commands. #declare 
> is an action, you declare a variable. #local is a descriptive word like 
> #persistent. You can't persist a variable...it is the variable that 
> persists. But you can declare a persistant variable. The word "persist" 
> just doesn't seem to fit into the language.
> 

I agree.  You can also say #local implies a 'declare' -> 'to declare sth 
local(ly)'.  #persistant would be logical in the same way.

Christoph

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


Post a reply to this message

<<< Previous 3 Messages Goto Latest 10 Messages Next 10 Messages >>>

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