|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
>> What do you need the STL for? Reference counting is trivial to
>> implement.
> Yes, reinvent the wheel.
Exactly which part of the STL implements reference counting?
(Ok, most std::string implementations use the copy-on-write technique,
which is a superset of reference counting, but that's a completely different
story because it's a completely hidden feature which you can't use in any
way yourself. Other than that, I don't think there's reference counting
anywhere in the STL.)
> And then try to add it in a clean manner in
> POV-Ray. The problem of not being able to use "real" classes as members of
> most data structures makes it a real hassle. It is about getting a clean
> well-working implementation. It isn't about "Reference counting is trivial
> to implement." at all.
I suppose that since pov4 will be designed from the scratch, it will be
made so that reference counting will be easier to implement (ie. the
"file handle" entity is a class in the first place).
Reference counting and the copy-on-write technique are quite efficient
ways of improving the performance of a program when well used.
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |