AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 32 |
r3wp | 304 |
total: | 336 |
results window for this page: [start: 33 end: 132]
world-name: r3wp
Group: All ... except covered in other channels [web-public] | ||
[unknown: 5]: 6-Jan-2009 | yes but I don't think anyone new to REBOL is going to expect 10,000 dollar plus 1 to equal 11 dollars. | |
Group: Ann-Reply ... Reply to Announce group [web-public] | ||
BrianW: 27-Feb-2005 | Graham: Is '== the operator for 'strict-equal? then? | |
Group: !AltME ... Discussion about AltME [web-public] | ||
Gabriele: 3-Jan-2005 | distributed means that all nodes are equal. and with the right measures, a few nodes failing are not enough to cause a data loss. | |
Brock: 23-Oct-2007 | Are you meaning you want the worlds you host to auto-start? If so, simply create a shortcut in your startup folder with the taget field equal to; | |
Group: RAMBO ... The REBOL bug and enhancement database [web-public] | ||
shadwolf: 13-May-2005 | >> greater-or-equal? 1.2.48.3.1 system/version == false >> system/version == 1.2.102.3.1 >> | |
DideC: 13-May-2005 | >> help greater-or-equal? USAGE: GREATER-OR-EQUAL? value1 value2 DESCRIPTION: Returns TRUE if the first value is greater than or equal to the second value. GREATER-OR-EQUAL? is an action value. ARGUMENTS: value1 -- (Type: any) value2 -- (Type: any) | |
DideC: 13-May-2005 | So you have to invert arguments : greater-or-equal? system/version 1.2.48.3.1 | |
Pekr: 1-Dec-2005 | so 6 in his example is equal tail ... index? tail "abcde" = 6 | |
Anton: 22-Dec-2005 | Is this a bug ? I was making a field validator function, and it was hard to understand why VALUE wasn't always equal to face/text. | |
Maxim: 8-Nov-2006 | I do admit that he has a point wrt how the help states things. if there is a stated difference between '= and '== then maybe the '= should be expanded (and explicitely documented) for obviously equal values... like char and one letter string, $ and equivalent decimal, etc. | |
Ladislav: 26-Jan-2007 | thanks, I personally tend to think it *is* a bug, because they are only equal | |
Ladislav: 26-Jan-2007 | I show you something from my article: a: b: charset [#"a" #"b"] c: insert charset [#"a"] #"b identical?: func [ {are the values identical?} a [any-type!] b [any-type!] /local var var2 ] [ ; compare types if not-equal? type? get/any 'a type? get/any 'b [return false] ; there is only one #[unset!] value unless value? 'a [return true] ; errors can be disarmed and compared afterwards if error? :a [a: disarm :a b: disarm :b] ; we need to be transitive for decimals and money if any [decimal? :a money? :a] [ return found? all [same? a b zero? a - b] ] ; we need to be transitive for dates if date? :a [return found? all [same? a b same? a/time b/time]] ; we need to be able to compare even the closed ports if port? :a [return equal? reduce [a] reduce [b]] ; our function has to work for structs if struct? :a [return same? third a third b] ; we can have something stronger than SAME? for bitsets if bitset? :a [ unless same? a b [return false] if 0 = length? a [return true] unless equal? var: find a 0 find b 0 [return false] either var [ remove/part a 0 var2: find b 0 insert a 0 ] [ insert a 0 var2: find b 0 remove/part a 0 ] return var <> var2 ] same? :a :b ] identical? a b ; == true identical? a c ; == false | |
Volker: 26-Jan-2007 | Expected behavior: things which are modified when one thing is modified should be same. Expected Reason for current behavior: bitsets with the same data share the same data automatically to save space. Expected Reason for bug: 'same? compares the pointer to the data, which is automatically made same with equal data. Expected Fix: comare something else :) | |
Ladislav: 26-Jan-2007 | Expected Reason for bug: 'same? compares the pointer to the data, which is automatically made same with equal data. proven wrong above | |
Volker: 26-Jan-2007 | hu? a and b have the equal content. so they would point to the same data. so 'same? would return true. | |
Volker: 26-Jan-2007 | .. return still the equal stuff. | |
Rebolek: 26-Jan-2007 | Not a bug. DESCRIPTION: Returns TRUE if the values are equal. >> equal? #"a" #"A" == false and >> to integer! #"a" == 97 >> to integer! #"A" == 65 Definitely not equal. | |
Ladislav: 27-Jan-2007 | Another question worth asking: I can agree that it is useful to obtain TRUE from equal? 0.1 + 0.1 + 0.1 0.3, although zero? 0.1 + 0.1 + 0.1 - 0.3 cannot yield TRUE due to the limitations of 64-bit IEEE754 floating point format. On the other hand the STRICT-EQUAL? and/or SAME? functions may be stricter. E.g. my IDENTICAL? function (see above) is the most strict possible in that respect and yields FALSE. | |
Volker: 27-Jan-2007 | AFAIK equal? in rebol is relaxed and does a range-check. For close-to-zero. And 'equal? is the relaxed version. 'strict-equal? should not. IMHO. | |
Volker: 27-Jan-2007 | even more strict than 'strict-equal? :) | |
Maxim: 11-Feb-2007 | (Ladislav is the one thinking this to be suspicious ;-) I have a merge func which could not care less, all it wants is to make sure that equal things get inserted equaly, string into string, blocks into blocks... so in that sense, the above is not suspicious at all. but if only reacted differently for string, then I'd have to add an ugly escape route for that case ;-) | |
Geomol: 3-May-2011 | Found a couple RAMBO tickets dated back to 13-May-2006 related to the double evaluation of lit-words: http://www.rebol.net/cgi-bin/rambo.r?id=4100& http://www.rebol.net/cgi-bin/rambo.r?id=4101& The tickets suggest, USE might be the problem, but isn't it SAME? that's the problem here? See the following R2 code: >> a: first ['word] == 'word >> b: 'word == word >> strict-equal? a b == true >> strict-equal? :a :b == false >> same? a b == true >> same? :a :b == true I would expect all 4 to return false, but with double evaluation of lit-words, the last should still be false. | |
Group: Core ... Discuss core issues [web-public] | ||
Sunanda: 30-Dec-2004 | string comparisons are, in effect, right padded, to equal length before comparing. The comparison is really max "1000" "999*" where "*" is whatever the pad character is (probably a binary zero) | |
Anton: 10-Jan-2005 | ah yes.. that's right. When you sort an already sorted list, some equal values would swap around sometimes. | |
Sunanda: 12-Jan-2005 | It's easy to do case sensitive or case insensitive tests for equality: >> "abc" = "ABC" == true >> "abc" == "ABC" == false (Or use equal? and strict-equal?) Anyone know a similar shorthand way to do the same for greater/less than comparisons? >> "abc" < "ABC" == false >> "abc" > "ABC" == false Right now, I'm using to-binary to get the right result: >> (to-binary "abc") < (to-binary "ABC") == false >> (to-binary "abc") > (to-binary "ABC") == true | |
[unknown: 10]: 30-Mar-2005 | from my point of view its equal ;-) | |
Chris: 30-Mar-2005 | Are you trying to compare area? -- greater-pair?: func [p1 p2 /local ps][ps: reduce [p1 p2] pick ps (p1/x * p1/y) > (p2/x * p2/y)] -- which can be tweaked for when p1 and p2 are equal... | |
Sunanda: 2-May-2005 | On a related theme......Is there an easy/built-in way to check if all values in a series are equal? I'm using all-equal?: func [ser [series!]] [ser = join next ser first ser] As in: all-equal? [1 1 1 ] == true all-equal? "yyy" true all-equal? %xxx true | |
Volker: 2-May-2005 | would prefer change/dup too. both lines look equaly ugly :) all-equal?: 1 = length? unique blk | |
PeterWood: 14-Jul-2005 | I looked up = in the Rebol Dictionary and, whilst it is not explicit, it implies different value types can be equal. | |
PeterWood: 14-Jul-2005 | From the dictionary: == - Returns TRUE if the values are equal and of the same datatype. | |
Carl: 19-Sep-2005 | In that case, when source and destination are of equal weight, then you can apply other rules. | |
Terry: 13-Mar-2006 | Does Rebol have an equal to PHP's exit; function? | |
Geomol: 11-May-2006 | Btw. performance-wise the 2 ways look equal good. | |
Anton: 21-May-2006 | That's the more strict-equal, which turns off the case-insensitive equality of strings. | |
Anton: 21-May-2006 | But you could be right. At least there is scope for moving the simple equality test to strict-equal == | |
Anton: 15-Oct-2006 | Anyway, I don't want to argue this, you should know about how to handle units. Everyone should know that 10 Metres x 10 Metres does not equal 100 Metres. | |
Jerry: 20-Oct-2006 | To Gregg, The diff algorithm I am using ... 2 blocks, one for reg-data-old (block1), the other for reg-data-new (block2). data in these blocks are in the following format: [ key1 value1 key2 value2 key3 value3 ... ] where keyX and valueX are both strings. Example: [ "HKEY_LOCAL_MACHINE_SOFTWARE_ABC" {"sid"=dword:00000001^/"tid"=dword:000000FF} ... ] I use "SORT/SKIP 2" to sort the 2 blocks. It's very fast, I guess that's because the original data are in order already. After sorting, I can comapre these two blocks with the "race" algorithm. The "race" algorithm is very simple ... loop [ if ... the key in block1 is equal to the key in block2 then ... check their values (different values mean modified) if ... the key in block1 is less than the key in block2 then ... the key in block1 is deleted-key. Move the key in block 1 to the next key. if ... the key in block1 is greater than the key in block2 then ... the key in block2 is added-key. Move the key in block 2 to the next key. ] Well, my English is not very good. I hope you understand what I am saying here. | |
sqlab: 27-Nov-2006 | >> strict-equal? probe to-string join #{a4} #{68} probe to-string join #{a4} #{48} ¤h ¤H == false | |
Maxim: 16-Jan-2007 | this is where objectivity is at loss. they are equal and not depending on what you consider equal, or rather if: - the evaluated human concept is equal (a space) - the rebol value can be converted to from two types symbiotically. - they obey a specified set of guidelines like (if converted to string both are equal) - they must be strictly equal (of same type, but not the actually same instance) - the same (actually two references to the same value) | |
Oldes: 20-May-2007 | If you just need to save large arrays of integers, you can use format used in AS3: The AS3 Integer can be encoded into between 1 and 5 bytes. * if the integer is between 0×00 and 0x7F then only one byte (representing the integer) * if between 0×80 and 0x3FFF then 2 bytes : o (i & 0x7F) | 0×80 o (i » 7) * if between 0×4000 and 0x1FFFFF then 3 bytes : o (i & 0x7F) | 0×80 o (i » 7) | 0×80 o (i » 14) * if between 0×200000 and 0xFFFFFFF then 4 bytes : o (i & 0x7F) | 0×80 o (i » 7) | 0×80 o (i » 14) | 0×80 o (i » 21) * if more or equal than 0×10000000 : o (i & 0x7F) | 0×80 o (i » 7) | 0×80 o (i » 14) | 0×80 o (i » 21) | 0×80 o (i » 28) | |
Sunanda: 25-May-2007 | Here's one way -- though it assumes (for simplicity) that the binary is a string of equal length in all keys: data: reduce ["z" make object! [key: 1] "y" make object! [key: 2] "z" make object! [key: 2]] sort/all/skip/compare data 2 func [a b][ return (join a/1 a/2/key) < (join b/1 b/2/key) ] probe data | |
Geomol: 28-Jul-2007 | Started from console, and it should just halt. I get this wrong sometimes myself. It could be good to have an equal way of doing this, so please tell me, when you find a good way! Standards! (It should also work equally on all version of REBOL on all platforms.) | |
Henrik: 31-Jul-2007 | when doing a read/part http://www.somewhere.com500 does it really only read the first 500 bytes, or does the server deliver everything and REBOL just cuts it down to 500 bytes client side? it seems to take an equal amount of time to read 500 bytes and 100 kb. | |
Group: Script Library ... REBOL.org: Script library and Mailing list archive [web-public] | ||
PeterWood: 3-Mar-2011 | I have uploaded a new version of simple-test.r to the Script Library. The main changes were the addtion of some new assertions and a re-structuring of the code to provide an API for the function which evaluates test cases. The assertions added are : equal with tolerance, not equal, not error, same, and not same. | |
Group: View ... discuss view related issues [web-public] | ||
Ashley: 1-Jun-2005 | I've been looking at %view-edit.r recently (and Romano's excellent http://www.rebol.it/~romano/edit-text-undo.txt), and have the following three code change suggestions: 1) Allow Shift-Tab to cycle back through the first / last pane objects (as Tab does): back-field: func [face /local item][ all [ item: find face/parent-face/pane face any [if head? item [item: tail item] true] ; new line added here while [face <> first item: back item][ ... 2) Implement a new function to hilight the current word. current-word: function [str] [s ns] [ set [s] word-limits s: any [all [s: find/reverse str s next s] head str] set [ns] word-limits ns: any [find str ns tail str] ; hilight word hilight-text s ns show view*/focal-face ] 3) Refactor the engage / down action to allow double-click selection of a word (something I use all the time in almost every editor I use). Current code: down [ either not-equal? face view*/focal-face [ focus face view*/caret: offset-to-caret face event/offset ][ view*/highlight-start: view*/highlight-end: none view*/caret: offset-to-caret face event/offset ] show face ] Proposed change: down [ either event/double-click [ current-word view*/caret ][ either face <> view*/focal-face [focus face] [unlight-text] view*/caret: offset-to-caret face event/offset show face ] ] Comments? | |
Anton: 15-Nov-2005 | view/new layout [ the-field: field feel [ ;;;; engage: func [face act event][ switch act [ down [ either equal? face focal-face [unlight-text] [focus/no-show face] caret: offset-to-caret face event/offset show face ] over [ if not-equal? caret offset-to-caret face event/offset [ if not highlight-start [highlight-start: caret] highlight-end: caret: offset-to-caret face event/offset show face ] ] key [ edit-text face event get in face 'action ] ] ] ;;;; ] new-field: field ] focus the-field do-events | |
DideC: 16-Nov-2005 | view/new layout [ the-field: field feel [ engage: func [face act event] bind bind [ switch act [ down [ either equal? face focal-face [unlight-text] [focus/no-show face] caret: offset-to-caret face event/offset show face ] over [ if not-equal? caret offset-to-caret face event/offset [ if not highlight-start [highlight-start: caret] highlight-end: caret: offset-to-caret face event/offset show face ] ] key [ edit-text face event get in face 'action ] ] ] in ctx-text 'self in system/view 'self ] new-field: field ] focus the-field do-events | |
Henrik: 5-Jan-2006 | 0.0.15 uploaded Changes: New: Updated documentation with images New: DATA can now also be a single block of values Fix: IN-COLS is no longer mandatory Fix: MAIN-COL is no longer mandatory New: Default WIDTHS now a fraction value. New: Fractional widths of the list width as decimals Fix: List size calculation optimizations Fix: Scroller width is now always equal to the corner reset button width New: SCR-WIDTH lets you set the scroller width Fix: AGG is no longer a requirement New: CLEAR to quickly clear the list The files have moved again: http://www.hmkdesign.dk/rebol/list-view/list-view.r Docs are available in makedoc2 format at: http://www.hmkdesign.dk/rebol/list-view/list-view.txtand http://www.hmkdesign.dk/rebol/list-view/list-view.html | |
Oldes: 11-Mar-2006 | That's the way how the twips works 1px = 20twips so 1.2px = 24twips - the scaling is done on the draw engine side so you don't need to scale it yourself. In my dialect i just have directive 'units twips' and then the interpreter know that 24x24 is equal to 1.2x.1.2 --- if I'm not using twips all values are multiplied by 20 and rounded - that's the way how it's in Flash and in my Rebol/Flash dialect | |
Janeks: 20-Jul-2006 | How to change part o f a color in gradient? F.ex. at 535x100 box teal 30x315 effect [ draw [ fill-pen linear 0x0 0 315 90 1 1 red yellow green box 0x0 30x315 ] ] Now I have each color equal, but how to make so that f.ex. green is ~50%, Yellow ~30% and red ~20% of box? | |
Group: Parse ... Discussion of PARSE dialect [web-public] | ||
Gregg: 28-Sep-2006 | I also have a naming convention I've been playing with for a while, where parse rule words have an "=" at the end (e.g. date=) and parse variables--values set during the parse process--have it at the beginning (e.g. =date). The idea is that it's sort of a cross between BNF syntax for production rules and set-word/get-word syntax; the goal being to easily distinguish parse-related words. By using the same word for a rule and an associated variable, with the equal sign at the head or tail, respectively, it also makes it easier to keep track of what gets set where, when you have a lot of rules. | |
Gabriele: 11-Dec-2006 | >> strict-equal? 'A 'a == true | |
Gabriele: 11-Dec-2006 | >> alias 'a "aa" == aa >> strict-equal? 'A 'a == false | |
Steeve: 7-Nov-2008 | hum (i have to be a little bit rude), i just read your response on rebol.net about the opportunity to turn or not return into a more genralized EMIT functions (as i proposedl). I will not discuss about the difficulty to implement that idea (i don't have the sources). But what i can say, is that a COLLECT behaviour will be more usefull than all return break/return stuffs u posted. Have you inspected scripts in Rebol.org recently ? If u had done, you would see that many coders use parsing to collect data. The problem Graham, is that when i read your arguments, i have the unpleasant impression that your are alone to decide if an idea is bad or good. The narrow minded sentence " Incorporating COLLECT and KEEP into PARSE is both unnecessary and doesn't help at all for building hierarchical structures" suggest that you had not widely used parse in your code. I don't think you are the best people here to made these choices. Many script contributors on Rebol.org have made some masterfull piece using parse (not you). So when you reject an idea you should be more sensitive with this simple fact: many poeple here have an equal or better experience whit parsing than you. | |
Steeve: 8-Nov-2008 | ok i try again a new proposal: ALL [rule1 | rule2 | rule3] each rule must be fullfiled one time but in any order (combinatory). it's equal to [[rule1 rule2 rule3] | [rule1 rule2 ruel3] | [rule2 rule1 rule3] etc...] | |
Group: MySQL ... [web-public] | ||
MikeL: 16-Sep-2005 | This is related, I think, to my notes about VID and MySQL in the View section. In a test that we ran in 2004 we were able to load 1,000,000 rows in under 30 minutes. We did not investigate further but we thought we could improve this by running parallel loads and putting it on a real server instead of a laptop. This volume was equal to the annual volume of the transactions we were interested in so would represent a journal of everything that happened to this app as a keyed transaction in one year. From that 1,000,000 row database, we were able to create an HTML report based on some selected criteria in 2.5 seconds. All tests done with REBOL View using Doc's mySQL protocol. | |
Group: Syllable ... The free desktop and server operating system family [web-public] | ||
BrianH: 20-Oct-2005 | As for comparing 13000 lines of Perl to 1600 lines of Ruby, if the Perl was written to be readable, that comparison sounds about right. Perl isn't that powerful a language unless it's written in an unmaintainable way. It takes a lot of Perl to equal Ruby, or REBOL for that matter. | |
Group: SDK ... [web-public] | ||
amacleod: 4-Mar-2009 | Just realized that encapping the db's with the exe is not a good idea as the memory used is equal or close to the size of the exe and these db's will be quite large.... I keep thinking in terms of XPackerX where it unpacks first and runs the main file adn accesess the data as if its on disk (which it is) and does not load it into memory... | |
Group: !RebGUI ... A lightweight alternative to VID [web-public] | ||
Ashley: 27-Nov-2005 | tab-panel: will investigate min-size: from the display users guide: 2.1.2 Min-Size Specify a minimum OS window resize size. display/min-size "Example" [ tight text 80 blue "Some text" #W return box 80x40 #WH ] 400x400 Note The min-size limit will only be enforced upon a window resize, and the size is inclusive of an OS specific number of border / title pixels. Also note that if any widgets are resizeable (#H and #W) and min-size has not been specified then RebGUI will assign a default value equal to the initial window size. table: Already noted by Graham (arrow does not share label feel) - will add to list | |
Ashley: 19-May-2006 | How is the svn related to get-rebgui? The SVN is for developers / experienced REBOLers ... it is used to manage individual widget source files. %get-rebgui.r obtains a pre-built distribution (including a merged %rebgui.r, %tour.r, images and demo scripts). It is targeted at 'end users' who don't want to use SVN. %tour.r is missing I want to add it *without* having to also add sample icon images to the SVN. I'll probably just 'inline' the images so it's all in one big file. min-size: read this very carefully: http://www.dobeash.com/RebGUI/display.html#section-2.1.2 The Note says it all: "The min-size limit will only be enforced upon a window resize, and the size is inclusive of an OS specific number of border / title pixels. Also note that if any widgets are resizeable (#H and #W) and min-size has not been specified then RebGUI will assign a default value equal to the initial window size." | |
Ingo: 24-Jun-2006 | Hi Graham, in my example-2 the the right-most text-lists keep their widths, and the lower text-lists keep their height, and the upper left text-list is maximized to fill the size of the window. I would like to have equal sizes for all text-lists. | |
Ashley: 24-Jun-2006 | Ingo: is there a reason, that display opens the windows, but does not start do-events? ... we can't assume the "first" window automatically needs to start the event loop. Perhaps the display is being assigned to a word and cached for later use? Or the display is done early in the script for lots of subsequent initialization and *then* needs to fire up the event loop. I personally like having to code it explicitly as it then stands out - "We are starting the event loop HERE". Is it possible to get the window size? ... display [button do [ws: face/size]] Is it possible to set an own resizer function? ... No, you'd have to change a lot of code to implement your own. I would like to have equal sizes for all text-lists. The RebGUI resizing model is pretty basic, it supports one resizeable widget in each axis (horizonal and vertical) with any number of offset adjustments (the #XY directives). More advanced schemes (such as proportional or percentage based) are possible, but significantly harder to implement (and require size/state information to be retained). | |
Group: Cookbook ... For http://www.rebol.net/cookbook/requests.html [web-public] | ||
Brock: 26-Mar-2005 | either 1.2.8.31 < system/version [ print "Version greater than 1.2.8.31" ][ print "Version less than or equal to 1.2.8.30" ] | |
Group: Rebol School ... Rebol School [web-public] | ||
Geomol: 8-Feb-2009 | multiply, add, subtract, divide, remainder, lesser?, lesser-or-equal?, not-equal?, equal?, strict-equal?, same?, greater?, greater-or-equal? | |
kib2: 18-Feb-2009 | Hi. Is there a way to call a method (an object function) programmaticaly ? ie supposed I've got a Car object with a function "drive-to" inside. Now, I've got a string "action" equal to "drive-to". I want to do Car/action but that does not work (I can understand why), but is there any workaround ? | |
kib2: 23-Feb-2009 | Hi. Is there a build-in function do do something like this : given the number 5 and the string "abc" construct the string "abcabcabcabcabc" (equal 5 times "abc")? | |
Geomol: 24-Feb-2009 | You asked how to make a random number between e.g. pi and -pi. There are a number of ULPs (Unit in the Last Place) between those two numbers. For 64 bit decimals, it's a large number. The possible decimals in computer arithmetic lie closer together around zero than for large numbers. If you had a routine, that would give you any possible 64 bit decimal number between pi and -pi with equal probability, then you would get a lot more numbers close to zero than close to either pi or -pi. The distribution wouldn't be flat (as you would expect). It's much better to choose, how many different values between pi and -pi, you need, and then make a random integer of that number, and do some calc to get the result between pi and -pi. I hope, it makes sense. | |
PatrickP61: 8-Mar-2010 | BrianH or Steve, I have seen some example code showing the following: x: copy [] y: [] These are both equal right, Why do one over the other? | |
BrianH: 8-Mar-2010 | They are not equal. The first makes a copy, the second references the original. | |
Henrik: 21-Mar-2010 | if not = unless also perhaps: if none? _first [_first: current] = any [_first _first: current] not equal? = not-equal? Didn't check if there are some mezzanines in there, though. | |
Geomol: 30-May-2011 | = (or equal?) is not exact. Use == (strict-equal?) >> (1.48297457491612E-2 + 0.985170254250839) == 1.0 == false | |
Group: rebcode ... Rebcode discussion [web-public] | ||
Volker: 28-Oct-2005 | Hmm, -1 0 1 code sometimes for lesser, equal, higher. brab .. -1 | |
Volker: 29-Oct-2005 | But how about a three-state if too? lesser/equal/higher 0? Could speed up binary search and such? | |
BrianH: 29-Oct-2005 | ; And then use it like this: cmp.i t a b brab [leq lgt] t ; Less than label leq ; Equal label lgt ; Greater than | |
BrianH: 29-Oct-2005 | ; And then use it like this: cmp.i a b [ ; Less than ] [ ; Equal ] [ ; Greater than ] | |
Volker: 29-Oct-2005 | next s1 next s2 seti char s1 sub char s2 bra3 to-equal to-higher ; we are lesser here label to-eqaul next s1 next s2 ; check length.. bra loop label to-higher ; we are higher here | |
BrianH: 1-Nov-2005 | A SIGN opcode would set a word to the integer -1, 0 or 1 depending on whether an argument is less than, equal to, or greater than 0. sign: ["Set variable to the sign of a value (-1,0,1)" word! word!] It would be preferable to have SIGN work with all numeric arguments, but you might choose to implement this as sign.i and sign.d for speed - either way is fine by me. The SIGN opcode, when combined with BRAB, would enable functionality equivalent to the BRAS proposal (#3948), and so would supercede it. There are many other uses as well. | |
Ladislav: 18-Nov-2005 | Related to string COMPARE are these features: 1) case sensitive or not 2) which string is "greater" 3) index of non-equal (tail of compare) 4) find | |
BrianH: 19-Nov-2005 | Well after testing, it seems that the behavior of cmp is: 1) Case sensitive. Lowercase the strings for case insensitive compares. 2) If the first string is less than the second, cmp sets the return word to -1, equal sets to 0, and greater sets to 1. If two strings of different lengths and are the same for the length of the shorter string, the longer string counts as greater. Otherwise, the numeric equivalent of each corresponding character is compared. 3) You can roll your own with length?, repeatz, pick, lt.i, gt.i and breakt (if you want, I'll do it). The cmp opcode won't help here. 4) Use apply i find [ser val] - it'll be faster. | |
BrianH: 19-Nov-2005 | ; Index of non-equal, 1-based, assumes indexes within bounds length? x a length? y b gt.i x y ift [set.i x y] repeat i x [ pick x a i pick y b i eq.i x y breakf ] ; i = first non-equal index | |
Group: Tech News ... Interesting technology [web-public] | ||
Reichart: 25-Jan-2012 | I think we agree it is "useful". But, for example, I would never take ANY fact offered on Wikipedia and assume it is "true" without my own separate confirmation. Nor would i use Wikipedia + some other source "together" to equal truth. In other words, I would use Wikipedia to learn "about" a fact, and then judge a seprate source on its own. | |
Ladislav: 25-Jan-2012 | Nor would i use Wikipedia + some other source together" to equal truth." - well, I learned better from my experience. I was suggested the Standford encyclopedia as a reliable source on the problem I wanted to solve and found out that WP was corrected one point I wanted to find. | |
Group: SQLite ... C library embeddable DB [web-public]. | ||
Ashley: 17-Oct-2008 | const char *sqlite3_libversion(void); sqlite3_libversion() function returns a pointer to the sqlite3_version string constant. int sqlite3_libversion_number(void); sqlite3_libversion_number() interface returns an integer equal to SQLITE_VERSION_NUMBER. | |
Group: !REBOL3-OLD1 ... [web-public] | ||
Anton: 6-Apr-2006 | Maxim, I'm a little unclear about that. Does it mean: f: func [val /option = 77][print option] f 123 ; ==> 77 f/option 123 88 ; ==> 88 So is it that just the presence of the equal sign '= after a refinement in the func spec block creates the closure instead of a normal function ? | |
Henrik: 14-May-2006 | I've been wondering about an extension to EXTRACT as I haven't been able to find this particular functionality anywhere else. If it exists, then I'm wrong and you can ignore this. I would like to propose adding a /size refinement to set the number of values extracted at each point. This would make it very easy to split a string in equal-sized chunks. It could also be used to retrieve equal sized parts of a set of database records. Combining this with /index, I think this could be very useful. Here's how I would like it to work: >> block: [1 2 3 4 5 6 7 8 9] >> extract block 2 == [1 3 5 7 9] >> extract block 4 == [1 5 9] >> extract/index block 2 2 == [2 4 6 8 none] The refinement at work: >> extract/size block 4 2 == [[1 2] [5 6] [9 none]] >> num: to-string 123456789 == "123456789" >> extract num 3 == [#"1" #"4" #"7"] >> extract/size num 3 1 == ["1" "4" "7"] >> extract/size num 3 2 == ["12" "45" "78"] >> extract/size num 3 3 == ["123" "456" "789"] >> extract/size num 3 5 == ["12345" "45678" "789"] >> extract/size/index num 3 5 2 == ["23456" "56789" "89"] >> extract/size num 3 12 == ["123456789"] /size would always return a block of series. | |
Gregg: 14-May-2006 | Looks like it could be useful Henrik. I might call the refinement /part, to match other funcs. For the case of splitting a series into equal-sized pieces, or a fixed number of pieces, here's what I use: | |
Anton: 21-May-2006 | Just considering equality with the CHAR! type. We think it might be better to move the currently simple, case-insensitive equality test to strict-equal. | |
Anton: 22-May-2006 | Alright, off to Rambo then. (I recall discussions all about equality and strict-equal a long time ago.) | |
Maxim: 13-Feb-2007 | yes... but equal is a function... not an op ;-) | |
Pekr: 19-Aug-2007 | kg#123 and kg$123 sound equal to me. It is just that the datatype is called money! Dunno if english unit! term would be more descriptive/general ... | |
Group: Postscript ... Emitting Postscript from REBOL [web-public] | ||
Graham: 19-Apr-2006 | Perhaps they should be equal. | |
Henrik: 24-Feb-2008 | perhaps it's equal in speed, I don't know. odd though, I can't see what's so slow about that code, other than the newline insertion thing | |
Geomol: 20-Apr-2008 | Eh, the baseline is centered in each cell, right? And you're asking each word to be centered within its cell with equal space above and below the text? | |
Group: Plugin-2 ... Browser Plugins [web-public] | ||
JoshM: 4-May-2006 | Here's my thinking on priority on the plugin project: 1. IE plugin for 1.3.2 -- we'll have this online within a couple of days. 2. Mozilla plugin for 1.3.2 -- features equivalent to the IE plugin, although we may need to chop a few things out (do-browser for instance). 3. IE plugin for 1.3.3 -- the most important new features we can include in a relatively short time-frame release. 4. Mozilla plugin for 1.3.3 -- again, features equivalent to the IE plugin, but this is equal priority with the next item. 4. IE plugin for REBOL 3.0 -- new features that will ship with REBOL 3.0 (multithreading/multiple instances per browser, etc.) 5. Mozilla plugin for REBOL 3.0 -- features equivalent to IE | |
JoshM: 4-May-2006 | (I want to change the above priority list. Mozilla 1.3.2 and IE 1.3.3 are equal priority, pri 2) | |
Group: !Liquid ... any questions about liquid dataflow core. [web-public] | ||
Maxim: 16-Feb-2007 | all members of a pipes are equal owners of the same value. | |
Group: !Cheyenne ... Discussions about the Cheyenne Web Server [web-public] | ||
Henrik: 20-Aug-2008 | Is there anything that would cause Cheyenne to crash? I've not yet tracked down the bug, but every time I click a specific link on one of my .rsp pages, it just dies and needs to be restarted. Unfortunately it's now gone so far that it seems not to want to serve pages anymore even though it's running. Under OSX, I get this log output: Aug 20 23:31:16 Macintosh com.apple.launchd[136] (com.rebol.cheyenne[68207]): Stray process with PGID equal to this dead job: PID 68212 PPID 68210 rebol Aug 20 23:31:16 Macintosh com.apple.launchd[136] (com.rebol.cheyenne[68207]): Stray process with PGID equal to this dead job: PID 68211 PPID 68209 rebol Aug 20 23:31:16 Macintosh com.apple.launchd[136] (com.rebol.cheyenne[68207]): Stray process with PGID equal to this dead job: PID 68210 PPID 1 rebol Aug 20 23:31:16 Macintosh com.apple.launchd[136] (com.rebol.cheyenne[68207]): Stray process with PGID equal to this dead job: PID 68209 PPID 1 rebol Are there any file permissions, that if set wrong, would cause cheyenne to stop serving pages? | |
Henrik: 29-Oct-2008 | 29/10/08 21.56.24 com.apple.launchd[1] (com.rebol.cheyenne[65863]) Stray process with PGID equal to this dead job: PID 65868 PPID 65866 rebol | |
Group: gfx math ... Graphics or geometry related math discussion [web-public] | ||
AdrianS: 24-Feb-2010 | Is the situation wrt the range of intensity really as described in the article? I seem to recall that the receptors for the three colors in the retina are not all equal in terms of sensitivity. In particular, the eye is supposedly more sensitive to green. Why the assumption that the three colors should have the same exponential scale? |
1 / 336 | [1] | 2 | 3 | 4 |