World: r3wp
[Rebol School] Rebol School
older newer | first last |
Gregg 15-Apr-2010 [3123] | Nothing comes to mind Ladislav. You're going to have to copy in any case, correct? |
Ladislav 16-Apr-2010 [3124] | Well, I once thought, that there was a way how to circumvent the copy, but it looks to me now, that I was wrong |
BrianH 16-Apr-2010 [3125] | Henrik's method circumvents the extra copy :) |
Ladislav 16-Apr-2010 [3126] | yes, but it does not look to me like a viable way to replace a CHANGE X COPY/PART Y by a cycle of that kind, although I did not measure the speed difference, yet |
NickA 18-Apr-2010 [3127] | forall s [if find [1 2] index? s [s/1: pick head s ((index? s) + 4)]] :) |
Janko 18-Apr-2010 [3128] | hm .. anyone has any idea why rebpro on linux says "Set-Net not provided." I googled but couldn't find the point why is this. I tried do-ing prot.r and mezz.r |
Pekr 18-Apr-2010 [3129] | isn't rebpro just /base package? I mean - without the mezzanines? |
Janko 18-Apr-2010 [3130] | yes |
Pekr 18-Apr-2010 [3131] | you need to include mezz-* functions then |
Janko 18-Apr-2010 [3132x2] | but set-net is defined .. but messages this. And if I do %/usr/share/cheyenne/rebol-sdk-276/source/mezz.r do %/usr/share/cheyenne/rebol-sdk-276/source/prot.r |
it's the same | |
Pekr 18-Apr-2010 [3134] | It errors out after the start here .... |
Janko 18-Apr-2010 [3135x2] | do you think I need to do one by one (I tried some combinations I found on net but same behaviour) |
how do you mean? what error does it show? | |
Pekr 18-Apr-2010 [3137x2] | Script: "User Preferences" (6-Jan-2009/21:58:59+1:00) Set-Net not provided. ** Script Error: set-user-name has no value ** Near: set-user-name "Petr Krenzelok" if (not none? system/view) [ system/view/screen-face/options: none ] >> |
it apparently tries to do user.r, where I have set-net as a first function call. Other SDK kernels don't have such problems ... | |
Janko 18-Apr-2010 [3139x4] | aha.. you get set-net not provided also... maybe you call set-user-name also in user.r and that produces the error |
I will try do-ing all the mezz* files first and see if then it will work | |
what happens to you if you do mezz.r and prot.r before calling set-net? | |
hm.. what does #include in mezz.r do? is this like preprocessing directive and inefective at runtime? | |
Pekr 18-Apr-2010 [3143x2] | yes, inefective in runtime, but effective when you Encap your app, REBOL preprocessor (prebol) uses it ... |
http://www.rebol.com/docs/sdkug.html | |
Janko 18-Apr-2010 [3145x3] | I tried including many mezz-* also mezz-netset.r but same message |
I mean do-ing | |
I also do-ed all prot-* that were in prot.r with no effect? does this have something to do with licences?? Because word set-net is there but it just messages this. And set-net is in all free versions of rebol (and hopefully you can send email from them all along) so I am quite confused. | |
Maxim 18-Apr-2010 [3148] | are you doing set-net within user.r or in your script? |
Janko 18-Apr-2010 [3149x3] | in my script (or in command line) |
is there a difference .. I haven't ever yet user user.r .. I will try. | |
hm.. petr got the same message in user.r if I understood him correctly. | |
Pekr 18-Apr-2010 [3152x2] | yes, correct. Just right after the start of the intrepreter .... |
other kernels in SDK don't show this behaviour ... | |
Ladislav 19-Apr-2010 [3154x4] | Change/part for the n-th time. Did anybody expect this? >> tgt: "123456789" == "123456789" >> src: at tgt 5 == "56789" >> change/part tgt src 1 == "23456789" >> tgt == "5678923456789" |
(R2 and R3 are compatible in this) | |
sorry, this is OK, actually | |
nevertheless, to all that think, that copying/collecting is slower than moving a character at a time, my result is, that the change x copy/part y z expression is about 2.8 times faster on my example x y z, than a cycle moving a character at a time. | |
BrianH 19-Apr-2010 [3158] | Yes, the internal native loop inside CHANGE is faster than a loop run in mezzanine code, even if the loop function is itself a native. |
GiuseppeC 4-May-2010 [3159] | Just a question: is there a way to let external fuctions (outside REBOL) be associated to a rebol word ? Could this fuction access REBOL values via some API ? |
Ladislav 4-May-2010 [3160] | Yes, Giuseppe, in R2 you have struct!s and routines, in R3 you have extensions. |
PeterWood 25-May-2010 [3161] | How do you create a face with VID that has a transparent backdrop? |
Gregg 25-May-2010 [3162] | Give it a color of NONE. (assuming what you need is that simple) |
PeterWood 25-May-2010 [3163] | I' m probably doing something wrong, when I use a color of none I get a gray backdrop not a transparent one. I'm trying to answer one of RebolTutorials questions. Here's the code: I' m probably doing something wrong, when I use a color of none I get a gray backdrop not a transparent one. I'm trying to answer one of RebolTutorials questions. Here's the code: >> b-t: layout [ [ backdrop [color: none] [ text "line 1" red [ text "line 2" blue [ ] >> y-b: layout [ [ b-b: box white 728x90 effect [gradient 0x1 sky] [ ] >> b-t/offset: 0x0 == 0x0 >> b-b/pane: b-t >> view y-b |
Steeve 25-May-2010 [3164x3] | IIRC, backdrop is a style, so it creates a sub-pane in the layout. |
b-t/color: none | |
Or to do it for all of your layouts: system/view/vid/vid-face/color: none | |
PeterWood 25-May-2010 [3167] | Thanks, Gregg and Steeve. |
Anton 28-May-2010 [3168] | PeterWood, you missed the WITH keyword before [color: none] in your layout above, so you mistakenly set the action for the backdrop. |
PeterWood 28-May-2010 [3169] | Thanks for pointing that out Anton. I a real beginner when it comes to view. When I added with I didn't get a transparent face but I did when I triued Steeve's suggestion to set the color of the face to none. |
Anton 28-May-2010 [3170] | Near the top of the source of LAYOUT you can see that the face (which is typically to become a window face) is created from VID-FACE (the very same one at system/view/vid/vid-face). |
florin 29-May-2010 [3171] | Any good example of using "range"? I cannot find a single example. For instance, the copy function can take a range [number port series pair]. I don't know how to specify the range. In the Core tutorial, to copy a range, we need to move to the particular position first and then do the copy. Fine. What is this 'range' about and how do we say it? The following don't work: 3-5, [35], 35, 3:5, 3x5. Thanks. |
Henrik 29-May-2010 [3172] | a: [a b c d] copy/part a 2 == [a b] copy/part next a 2 == [b c] |
older newer | first last |