World: r3wp
[!REBOL3-OLD1]
older newer | first last |
Henrik 24-Mar-2009 [12264] | no, it simply makes a shape block with tick lines for sliders, gradient bars and the rgb spectrum viewer. it will be used in more places than it currently is in use. |
Anton 24-Mar-2009 [12265x2] | Yes, fairly recently we saw those slider demos with ruler marks on them. |
.. which is where make-ticks was used. | |
Henrik 24-Mar-2009 [12267] | essentially MAKE-TICKS [3 1 2] would draw something like: | . . : . . | . . : . . | |
Steeve 24-Mar-2009 [12268] | Woooh, it means..., nothing to me :-) |
Henrik 24-Mar-2009 [12269] | your clock on the wall probably has something similar. (if it's an analog clock) :-) |
BrianH 24-Mar-2009 [12270] | Anton, the --do bug is known, cross-platform (not just Linux), and part of a half-dozen bugs that can be fixed by rewriting one function. It's the next R3 thing on my todo list, when I get the chance. I'm swamped with work at the moment. |
Pekr 24-Mar-2009 [12271] | :-) I thought it is Braile letters :-) |
Anton 24-Mar-2009 [12272] | BrianH, cool, that it's next on your todo list - glad you've noticed. |
BrianH 24-Mar-2009 [12273] | User datatypes can't add new syntax. |
Henrik 24-Mar-2009 [12274] | http://rebol.hmkdesign.dk/files/r3/gui/106.png Make-ticks was used in the 5 sliders at the top. |
BrianH 24-Mar-2009 [12275] | I've just been busy lately. Carl fixed/documented a lot of things in alpha 37 for me, but I'm in crunch time at work now. Soon. |
Anton 24-Mar-2009 [12276] | Henrik, I advise not spending the energy lobbying for the new datatype. Just implement the "counter" algorithm as optimally as you can and move on. |
Henrik 24-Mar-2009 [12277] | Sorry, I think there's too much in this to pass it up. I think this would be very useful. |
Anton 24-Mar-2009 [12278] | Ok, sliders, rulers, analog clocks... anything else? |
BrianH 24-Mar-2009 [12279] | Aside from the syntax, this could be done as a user-defined datatype. Or it could be done as an API. |
Henrik 24-Mar-2009 [12280x2] | Anywhere you want to count with varying base on multiple numbers and act on it. I've run into this numerous times. |
BrianH, are there docs anywhere on user defined datatypes yet? Limitations? | |
BrianH 24-Mar-2009 [12282] | Just discussions, but I know what the limitations are. |
Anton 24-Mar-2009 [12283] | Henrik, I'll have to think more on it. |
Henrik 24-Mar-2009 [12284] | Steeve, where was your disk-block scheme source? |
Steeve 24-Mar-2009 [12285] | http://sites.google.com/site/rebolish/ |
Henrik 24-Mar-2009 [12286] | thanks. maybe it's better to implement it as a scheme anyway. |
Gregg 24-Mar-2009 [12287] | I'm confused on your proposal as wel Henrik. A concrete example would really help, since it's a complex concept. |
Henrik 24-Mar-2009 [12288] | I think I'll wait. I've discovered some problems with the idea, which makes it less useful than I thought it would be. |
Pekr 25-Mar-2009 [12289] | There is new blog about small change to modules - http://www.rebol.net/r3blogs/0179.html |
Steeve 25-Mar-2009 [12290] | Eh Ammon ! how do you manage selection over several text gobs ? I'm trying to do it currently, but i'm not sure to have the best design |
Ammon 25-Mar-2009 [12291] | I haven't gotten that far yet. I recently had to rewrite my parser from the ground up, mostly due to the fact that NOT isn't implemented yet and I want to be able to handle unicode without too much trouble. I think I'm going to have to handle a lot events like text selection by passing them through the text faces to the main scrollable area and let it handle them. I expect I'll be rewriting the highlighting from the ground up. |
Steeve 25-Mar-2009 [12292] | i'm rewritting completly the key handler with my own cursor (a gob). I don't like the default handler |
Ammon 25-Mar-2009 [12293] | I like the design of the default handler. =D I'll need to modify or extend it before I'm through though. |
Steeve 25-Mar-2009 [12294] | too much ovverrides have to be done, redoing it from the scratch is simpler |
Ammon 25-Mar-2009 [12295] | You know that you can get the source from DevBase, right? |
Steeve 25-Mar-2009 [12296x2] | my cursor is gob i'm moving from gobs to another gobs |
i have the sources | |
Ammon 25-Mar-2009 [12298] | Yup, I'll be doing that as well. |
Steeve 25-Mar-2009 [12299] | in the default design, the cursor is not a gob |
Ammon 25-Mar-2009 [12300] | well, the handling of text editing is very powerful. I will definitely be using the same design just extending it a bit. |
Steeve 25-Mar-2009 [12301x2] | i don't like it so much ;-) |
but perhaps i'm wrong | |
Ammon 25-Mar-2009 [12303] | It's a simple state machine. It's taken me a long time to grok what can be done with such a system but now they are starting to dominate my code. |
Steeve 25-Mar-2009 [12304] | A state machine ? What a big word. It's just a serie of switch commands :-) |
Ammon 25-Mar-2009 [12305] | Instead of having to add a lot of refinements and refinement handling to related functions you can just put them together into an object and as each of the functions are called they are setting values that are local to the collection of functions and each of those values modify the behavior as if you were using refinements and passing in more values. It's kind of an inference engine. |
Steeve 25-Mar-2009 [12306] | Again, what a big word. I do that too to have a more readable, and compact code. I don't like to pass thousand of parameters. But nothing is related to a state machine to my mind |
Ammon 25-Mar-2009 [12307x3] | You may be right. I may be misinterpreting the meaning of state machine... |
I'm seeing some strange behavior with Parse... ws: charset rejoin [space tab newline] parse " This is a test!" [s: some ws e: (probe copy/part s e) to end] ; == false parse/all " This is a test!" [s: some ws e: (probe copy/part s e) to end] ; " " ; == true I shouldn't need /all when I provide a rule block should I? | |
In truth it doesn't always fail but I'm not sure what causes it to change it's behavior. | |
Ammon 26-Mar-2009 [12310] | Heh. Or rather I don't know why SOME was ever working but I saw it work once. parse " ^- this is a test!" [s: any ws e: (probe copy/part s e) to end] ANY appears to work all the time though. Strange. |
Steeve 26-Mar-2009 [12311] | charset is bugous in R3 currently |
Ammon 26-Mar-2009 [12312] | So this is a problem with Charset not Parse? |
Steeve 26-Mar-2009 [12313] | I made my own function. charset: func [str /local bitset][ bitset: make bitset! 256 foreach char str [append bitset char] ] |
older newer | first last |