World: r3wp
[!REBOL3]
older newer | first last |
Ladislav 31-Dec-2010 [6796] | Re: "I am open to it" - maybe I misunderstood: do you mean, that you really want to obtain NaNs from expressions instead of errors being triggered? |
Claude 31-Dec-2010 [6797] | guys, 2010 is almost finished, and R3 is still not there ;-( ....................but happy new year anyway ................. |
GiuseppeC 31-Dec-2010 [6798] | Hope 2011 will bring us GUI; SQLite, REBDB and other databases connection; many tickets closed. I don't ask for more. |
Pekr 31-Dec-2010 [6799x2] | I hope Carl re-appears refreshed, and defines the beta-list. I wish for device extensions, user types, tasking, timers, new codec system, network schemes :-) |
Some of things might be done by the community, but some of those things are doable only by Carl ... | |
GiuseppeC 31-Dec-2010 [6801] | Pekr, too many things together. See you at the beginning of 2013 :-) |
Kaj 31-Dec-2010 [6802] | Carl will probably reappear frustrated, because he's working on R2 now ;-) |
Gregg 31-Dec-2010 [6803] | Ladislav, I meant that I'm fine with the current model, but if someone presents a strong argument for it I won't discount it out of hand. |
Kaj 3-Jan-2011 [6804] | What does WAIT NONE do? |
Anton 4-Jan-2011 [6805x5] | It waits for events. |
Ports implicitly waited for by WAIT NONE can be seen in the wait-list: print mold system/ports/wait-list | |
Check ?? do-events WAIT [ ] === WAIT NONE | |
13-Sep-2006 Anton Rolls WAIT without also waiting for events: view layout [ button "wait 2" [ remove find system/ports/wait-list system/view/event-port wait 2 ; wait two seconds insert system/ports/wait-list system/view/event-port ] ] | |
Oops, this is Rebol3 group. Sorry, I'm in Rebol2 head-space. | |
Kaj 4-Jan-2011 [6810x2] | Thanks |
I was hoping it would do more or less what you programmed: servicing system events but without waiting for all windows to close | |
Pavel 5-Jan-2011 [6812] | How works the preallocation in R3? str: make string! 10000 length? str -> 0 dtto for blocks etc? why it happens in r3 program? prepared for future use? |
Ladislav 5-Jan-2011 [6813] | Preallocation allocates the space needed to store the required number of characters into string. Nevertheless, the length of the string is zero, since the string initially does not contain any characters. |
Henrik 5-Jan-2011 [6814] | it's there primarily to help the garbage collector. |
Pavel 5-Jan-2011 [6815x4] | So the space IS already reserved? |
So the space IS already reserved? | |
So the space IS already reserved? | |
sorry Altme hangs for me | |
Ladislav 5-Jan-2011 [6819x2] | Here is an example showing a difference: >> time-block [str: make string! 0 loop 10000 [append str "a"]] 0,05 == 0.0023125 >> time-block [str: make string! 0 loop 10000 [append str "a"]] 0,05 == 0.0024375 |
>> time-block [str: make string! 10000 loop 10000 [append str "a"]] 0,05 == 0.002265625 >> time-block [str: make string! 10000 loop 10000 [append str "a"]] 0,05 == 0.002265625 | |
Henrik 5-Jan-2011 [6821x2] | yes, when doing a make string! 10000, the space is preallocated. this helps the garbage collector to collect quicker and also speeds up operations on the string when its expanding in size. |
its expanding in size, within the preallocated size, that is. | |
Ladislav 5-Jan-2011 [6823x2] | I would not say that it "helps the garbage collector to collect quicker", but it does not require to reallocate/recollect the space when expanding the string to 10000 characters length |
and, of course, when no reallocation occurs, no content movement is necessary | |
Pavel 5-Jan-2011 [6825] | Does it also means that it allocates consecutive space? |
Ladislav 5-Jan-2011 [6826] | REBOL strings as well as REBOL blocks (parens, paths, the majority of series,...) use consecutive space |
Robert 8-Jan-2011 [6827] | Is it already supported to get the output of a CLI programm executed via CALL? |
Pekr 8-Jan-2011 [6828x2] | no |
there were several discussions about the topic. Carl stated, that R2 code was very complex, and is willing to provide source for adaptation. After some complaint, we got /wait at least. I think that for now you have to use call/wait, output to file, and read the file .... | |
Pavel 10-Jan-2011 [6830] | Is there any reason why proxy is not implemented? Should it be part of http scheme or should be intermediate scheme? ie http -> proxy -> tcp. Where is oplaned to save proxy settings in R3? |
BrianH 10-Jan-2011 [6831] | The HTTP scheme in R3 needs a lot of work (hopefully not a full rewrite). That's why. |
Kaj 10-Jan-2011 [6832x2] | For what it's worth, the cURL binding supports proxies |
Currently only through environment variables. I don't know if that works on Windows | |
Pavel 10-Jan-2011 [6834] | Kaj full respect to your effort, in the other hand the proxy seems not to be overcomplicated. it may be a good training task, in R2 it has maybe 20 lines. question is if there is some architectual restriction (for example synchronous / asynchronous etc.) |
Kaj 10-Jan-2011 [6835] | It sure would be nice if you implemented it |
Ladislav 11-Jan-2011 [6836x2] | Remembering the function naming discussion from the !REBOL3 GUI group and seeing the http://curecode.org/rebol3/ticket.rsp?id=667&cursor=1#comments I could not help but point out: As I see it, not using the question mark *is* violating a naming principle that was explicitly stated. I know, that in REBOL we don't have to be that rigid, but, when we have explicitly stated a principle, we *should* stick to it. ( http://www.rebol.com/r3/docs/concepts/scripts-style.html#section-10 ) |
http://curecode.org/rebol3/ticket.rsp?id=1818&cursor=1 | |
Pekr 11-Jan-2011 [6838x3] | The we should stick to principles. But I am not sure even Carl himself is strictly following the rules. In his doc he claims, that 'quit is as clear, as quit-system. Well, we have 'do, and we have 'do-browser, 'do-service, where we are breaking on encapsulation rules, with excuses to not polutu 'do's name-space (not complicating it - because in other words, the proper way is to use refinements, as do-browser could be do/browser as well) What is a bit tricky about question marks is, that the meaning is not clear enough,e.g. - modified? Does it stand for the logic value, returning the true or false, or does it stand for the return of modification date? How should user know? That is just my opinion on this topic - sometimes things are not easy to sort-out. Rules are rules, and we should probably stick to them ... the other thing is, if we are not forgetting another rebol "rule" (or at least principle) - make things pop-out to your mind at first sight, if possible. So - what is more self-explanatory - faces?, or get-faces (or what was the suggestion alternative)? |
Take my notes as just another point-of-view,not a counterclaim to what you stated ... | |
You second ticket is interesting indeed .... | |
Ladislav 11-Jan-2011 [6841x3] | The points you made are intelligent and need a discussion, so, here goes: |
'quit vs. 'quit-system and 'do vs. 'do-browse: Carl just pointed out, that if the -system part was unnecessary, it shouldn't have been used. That is clearly not the case of 'do vs. 'do-browse, where the second part cannot be seen as unnecessary | |
Whether to prefer 'do-browser or do/browser - such a principle was not stated explicitly, so, we do not have any "guide" which one shall be preferred | |
Pekr 11-Jan-2011 [6844x2] | Well, I think I know why we went with do-*, open-* - simply to not overload those functions with refinements, and hence slowing them down ... |
Carl should comment. The question is, if you can get his attention - he is not much active in R3 user-land last 2-3 months .... | |
older newer | first last |