World: r3wp
[View] discuss view related issues
older newer | first last |
shadwolf 8-May-2005 [1015x3] | hundreds of line C code are spent into the recycle function but only one line could be used free () :) |
well i'm too simpling the thing ... | |
Rebol is not the only one to use GC but it's the only one to give coders so little control upon it ;) | |
Anton 8-May-2005 [1018x2] | C is definitely not Rebol. But consider this: a: b: context [data: "love me"] a: none Obviously the object should not be freed yet. The question is, should a full recycle occur (checking for unattached values) ? I think that would make setting words very slow and degrade performance terribly. |
(After all, just about every second word in rebol code is a set-word.) | |
shadwolf 8-May-2005 [1020] | Anton it depends if a; and b; store each the cloned content ;) |
Anton 8-May-2005 [1021] | No, the object is shared in this case. |
shadwolf 8-May-2005 [1022x4] | >> recycle >> stats == 2936994 >> a: make object! [print "I love rebol but not GC"] I love rebol but not GC >> stats == 2937746 >> |
and | |
>> recycle >> stats == 2936994 >> a: b: make object! [print "I love rebol but not GC"] I love rebol but not GC >> stats == 2937810 >> | |
as size are different into the 2 examples maybe the object is clonned ... | |
Anton 8-May-2005 [1026] | No, they are not cloned. I can assure you of that. |
shadwolf 8-May-2005 [1027] | you have it twice in memory but in fact no because if you make a: b: make object! [ test: 'test"] |
Anton 8-May-2005 [1028] | And you should recycle and check stats multiple times before and after each test. |
shadwolf 8-May-2005 [1029x2] | then a/test: "test200" print b/test |
this shows the content to the shared object change ;) | |
Anton 8-May-2005 [1031] | sometimes the returned stats value is not stable. |
shadwolf 8-May-2005 [1032] | Anton both code are witen into 2 separated consol |
Anton 8-May-2005 [1033] | But we are polluting, I go to Performance group to continue this discussion... |
shadwolf 8-May-2005 [1034x3] | if you make a: make object you use less memory than a: b: make object! that's a fact ;) |
in rebol there is an allocation table that will allow us to know if a data is share betwin several word in the rebol diccionary | |
and obviously you will clear only single related data | |
Henrik 8-May-2005 [1037] | where in the heck is that damn prompt... |
shadwolf 8-May-2005 [1038] | henrik don't know I don't have tested it under linux ... |
Henrik 8-May-2005 [1039] | happens in core too now... no problems with an older rebol/view |
Anton 8-May-2005 [1040] | Doing any startup scripts ? Check your user.r |
Henrik 8-May-2005 [1041] | no such file. created an empty user.r and now it won't start at all |
shadwolf 8-May-2005 [1042] | you're trying to fight the system without coming up with a better one, that's all. OH OH Comon we are talking about a serrious issue and that's not because I make a criticise of the system that I have a better solution .... |
Anton 8-May-2005 [1043] | Did you install the binary into the same directory as your other Views ? |
Henrik 8-May-2005 [1044] | yes |
Anton 8-May-2005 [1045x2] | shadwolf -> I meet you in "Performance" group |
mmm. | |
shadwolf 8-May-2005 [1047] | ypu can say I hate capitalism because it makes little people very ricth and most of the people just poor without having a rechange solution ;) |
Henrik 8-May-2005 [1048] | running scripts directly as an argument works.... |
Volker 8-May-2005 [1049] | debian? you lack a config-file for teminal which name i forgot. |
Anton 8-May-2005 [1050] | There's a quick workaround maybe - run a "halt" script. Does it give a console then? |
Volker 8-May-2005 [1051x3] | termcap? |
its in some old package for backward compatiility | |
shadwolf: try setting all inbuild functions to none and see if the system needs less memory. maybe that helps | |
Henrik 8-May-2005 [1054] | ah... let me check... |
Anton 8-May-2005 [1055] | Mmm.. When you figure it out, write a quick "install script", which detects debian (if you can), and alerts the user with the advice. Then, when someone asks in future, you can just give your script. Also, this may evolve into a fully cross-platform installer script. |
Henrik 8-May-2005 [1056] | with a halt script I get a prompt but no keyboard interaction |
Volker 8-May-2005 [1057] | /etc/termcap ? i lack some concentration, early morning here. carl has changed keyboard handling for redirection and now you need that stuff. but cant remember the names. apt-getted something and it worked. |
Henrik 8-May-2005 [1058] | installing termcap-compat (ubuntu) |
Volker 8-May-2005 [1059] | i seem to remember that name. :) |
Henrik 8-May-2005 [1060] | that was it! thanks |
Volker 8-May-2005 [1061] | have fun :) |
Anton 8-May-2005 [1062] | Excellent. Don't forget to write that script ! :) |
Henrik 8-May-2005 [1063] | when I get time... |
Anton 9-May-2005 [1064] | As a minimum copy the notes into a text file... |
older newer | first last |