my garbge collector still sucks (from WIKI)
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
1) I saw with my own eyes that tracing (mark & sweep) was bad in that it visited all objects. See thread: http://www.prothon.org/pipermail/prothon-user/2004-June/002532.html 2) I studied up on garbage collection on the web and was pleased to discover that ref-counting was no better than tracing (according to experts) but parrot guy wished tracing didn't have to "stop the world". I was happy because my object-locking meant I could collect continuously while the world was running. 3) Paul argued that ref-counting had deterministic finalization and won the argument, contradicting the experts. 4) Greg popped my bubble by successfully pointing out that I have to stop the world also. This wiped out the favorite feature of my collector, especially in multiple-cpu environments. So I am back to ground zero on my GC solution. I am currently investigating "smart" ref-count macros to make using them easier for C coders. ------- Paul responded with the Pyrex for Prothon idea (see his thread). begin 666 http.png MB5!.1PT*&@H````-24A$4@````P````," 8```!6=5SG````!&=!34$``-D$ MW++:`@```"5T15AT0V]M;65N= `D,#$U,CH@,2I3:&]R=#HQ#20Y,S5#.B _ M/S\_#8QES-<````9=$58=%-O9G1W87)E`$=R87!H:6-#;VYV97)T97(U74CN M```!E4E$051XG&+@X)'7Y>+7<6$@%O (&?IKVW;ME=>):N 1TK!C8&!BQ:N! MD8E-1DC*JLXR</$KW\P-+QS#NP\JZ/D5<0K(&3 RL?-@T\,$Q#)<_$JY3C&S M'U3/N?VW;?&57_%UVUY9^E7/X.235L)J$1"+R&FY]Y1/O_)MWL%__RL6/OEO M&SOG)@>OC!D.O\CKA>3//3]UVX-?4W;_^I,S]?XW446K&J #Q'A$U(R!;F=& M\@<KM[E/Q?3B.4_^=V[^\:][^W\@_?Y?6-G22YJ.Y<O-0B;L8F1BX4>V@(-? MPB##.'CB[?B^&S\K5G[_V[#^V\^^W9_^E2]^]-<^8<,5!D86<70_B+&P"T3( MF25L"VBX\"-UYO=_J;/^_4^8_.._6>B&&PP,+)+8O,+!R,SI9!ZQ\&;BI/>_ M@SN__O&N>__'P&_E909&9@D,U<RL?$)2.JD3;1(/_0UKN?,_M.71?Y^*._]U MW1?>`FK M(&=6\903#5L@;"2]QXA5;?=PFKN^P05W/;PB5M-!;I:!*0&```` 8__\#``/FCNH7,[!M`````$E%3D2N0F"" ` end