World: r3wp
[!REBOL3-OLD1]
older newer | first last |
Chris 20-Jan-2009 [9701x2] | Brian, is it possible to expand on that (setjump/longjump), or is there a Carl post that summarises? This is good to know - specifically as it relates to R2 and R3 implementation... |
For example, [return true] vs [true] or ["a" exit | other rule] | |
BrianH 20-Jan-2009 [9703] | It's the same in R2. PARSE is diifferent though, but exit or return in the parens has the same overhead. |
[unknown: 5] 20-Jan-2009 [9704] | I don't see how the overhead of continue would be greater than the overhead of further evaluation where it isn't used. |
Sunanda 21-Jan-2009 [9705] | I tried timing tests on my R2 ad R3 examples. R3 runs in about half the time. Conclusion: 'continue is a good optimisation over loop 1 [...break...] That does not say anything about the overheads of 'continue.....Just that an extra loop is an extra overhead. |
Oldes 21-Jan-2009 [9706x2] | >> loop 1 [break blah: 1 blahblah: 2] >> find first system/words 'blahblah == [blahblah] |
I think that Rebol first must parse the block to evaluate into 'tokens', that's why the words are defined as unset in the system/words | |
DideC 21-Jan-2009 [9708x3] | Exactly. It must load the block, so create the words. Then it can do it. |
REBOL/View 2.7.6.3.1 14-Mar-2008 Copyright 2000-2008 REBOL Technologies. All rights reserved. REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM >> load [blah: 1] == [blah: 1] >> find first system/words 'blah == [blah] >> blah ** Script Error: blah has no value ** Where: halt-view ** Near: blah | |
REBOL/View 2.7.6.3.1 14-Mar-2008 Copyright 2000-2008 REBOL Technologies. All rights reserved. REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM >> loop 1 [break blah: 1] >> find first system/words 'blah == [blah] >> blah ** Script Error: blah has no value ** Where: halt-view ** Near: blah | |
Anton 21-Jan-2009 [9711x2] | By the way, doing find first system/words 'any-word-you-like will always succeed, because before the console evaluates this line, it first loads it, so the word will be added, and thus, be found. |
A better test is: "any-word-you-like" = last first system/words which does not introduce a new word before evaluation is done. | |
[unknown: 5] 21-Jan-2009 [9713] | >> loop 1 [break blah: 2] >> last first system/words == blah |
Henrik 21-Jan-2009 [9714] | Anton, I think that would be a nice topic for a blog post. |
btiffin 21-Jan-2009 [9715] | Very Heisenberg; Call the post, Anton's Postulate for getting round the REBOL uncertainty principle. ;) |
[unknown: 5] 21-Jan-2009 [9716] | How do I submit a request for Carl to include a feature in R3? |
Henrik 21-Jan-2009 [9717x2] | rebdev is the shortest path for now. I can relay it. |
except, rebdev seems to be down. he said that some changes were going to be made... will see if it comes back up in a few hours. | |
[unknown: 5] 21-Jan-2009 [9719x2] | Henrik my request is a change for ports. |
You know the way we have open/lines function, I would like to see open/blocks function. | |
Henrik 21-Jan-2009 [9721] | have you worked with R3 ports yet? they are very different from R2 ports. |
[unknown: 5] 21-Jan-2009 [9722x2] | No, I don't have access to it. |
I just figure I hadn't seen it mentioned of having this feaure. | |
Henrik 21-Jan-2009 [9724] | rebdev was up. the client was too old. :-) |
[unknown: 5] 21-Jan-2009 [9725] | Good are you making the request? |
Henrik 21-Jan-2009 [9726x2] | I'm not sure how to describe it. |
wait... perhaps it's better to use Curecode if you have an account. | |
[unknown: 5] 21-Jan-2009 [9728x4] | Basically it is open/lines but instead of separating lines from the stream it would separate the blocks. |
So a block of blocks would be returned. | |
I don't know what curecode is. | |
Never heard of it before. | |
Henrik 21-Jan-2009 [9732] | Curecode is the R3 bug database. It's public. |
[unknown: 5] 21-Jan-2009 [9733] | Oh, didn't know that. Got a link? |
Henrik 21-Jan-2009 [9734] | http://curecode.org/rebol3/view-tickets.rsp |
[unknown: 5] 21-Jan-2009 [9735x2] | cool, I'll see what I can do in that regard. |
Thanks Henrik. | |
Henrik 21-Jan-2009 [9737] | NP. Please study the reports. I think there are many regarding ports. |
[unknown: 5] 21-Jan-2009 [9738x3] | Hmmm, it doesn't let me register. |
Oh it took my name but gave me an error. | |
I actually would only request it for the speed. I already have the produced the functionality but it obviously isn't native so I figured we could gain some speed. | |
Pekr 21-Jan-2009 [9741x3] | hmm, not sure there is going to be any /lines etc. for read. |
besides that - line feed is pretty common delimiter, whereas blocks are only REBOL facility. I think it belongs to higher level parsers (decoders) | |
some few weeks ago I posted here xy links about new ports, read vs load etc blogs, which sum those issues up ... | |
[unknown: 5] 21-Jan-2009 [9744] | so no more /lines? |
BrianH 21-Jan-2009 [9745] | READ of file and http ports is binary, so no /lines. |
Henrik 21-Jan-2009 [9746] | The thing is that such facilities may be higher level now, to get more performance on the lower level. It's still possible to do, I think. |
BrianH 21-Jan-2009 [9747] | Other port schemes will differ. Steeve is working on a block port that looks really cool. |
[unknown: 5] 21-Jan-2009 [9748] | Oh I know it would be possible to do but at a cost in performance I would suppose. |
BrianH 21-Jan-2009 [9749] | Performance of ports is greater overall, so that is a tradeoff I am willing to make :) |
Pekr 21-Jan-2009 [9750] | Paul, please read those ones: http://www.rebol.net/wiki/Port_Implementation http://www.rebol.net/wiki/Ports http://www.rebol.net/wiki/Port_Examples(a good one ....) http://www.rebol.net/r3blogs/0127.html"Pruning down |
older newer | first last |