World: r3wp
[!REBOL3-OLD1]
older newer | first last |
BrianH 23-May-2009 [14334] | The problem is that the R2 DLL interface sucked. One of the base requirements of the R3 plugin model wass that it be powerful enough that you cold write a generic wrapper dialect as a plugin, and then use that dialect to specify the API a DLL. |
Pekr 23-May-2009 [14335] | yes, that is what I want. |
BrianH 23-May-2009 [14336] | Of course that wouldn't be as good as actually writing a custom plugin for the DLL (or more likely using one that someone else wrote). |
Pekr 23-May-2009 [14337] | As for other blog - Objects as a base type ... is there any implication what it means for object semantics? IIRC you expected some changes in object semantics, but Carl states, that other types as ports, tasks, etc. share the implementation, so I wonder if you can really expect any change here? |
BrianH 23-May-2009 [14338x4] | To write a rebcode replacement all you need is user-defined types and the knowhow - it's on my todo list. However, user-defined types will probably need to be defined in plugins, and at the very least we couldn't even specify how to define them without a working plugin model. So it will help, indirectly :) |
Objects as a base type blog = documentation of the way things have always been, not a sign of things to come. It was probably in response to bug#838 and my reply to it. | |
Once you have plugins and commands, there may be less need for rebcode! - you can just write natives if need be. The reason for a rebcode replacement then would be security (not rebcode's strong suit), since rebcode would be managed code. | |
security (not *the old* rebcode's strong suit) | |
Pekr 23-May-2009 [14342] | OK, thanks for explanation. Looking forward to something more concrete = 1st plugin code example :-) |
Maxim 23-May-2009 [14343] | brian: what is Carl using for compilation... GCC? |
BrianH 24-May-2009 [14344] | He doesn't say, but I expect GCC on *nix and OSX, and I'd be surprised if he wasn't using MSVC on Windows. REBOL has been around much longer than GCC has been usable to build normal Windows apps. We'll seee soon :) |
Paul 24-May-2009 [14345] | what do you call words such as "back" and "tail" and "next"? Is there a special term were using for these? |
BrianH 24-May-2009 [14346] | I call them navigation functions, usually for series. I'm not aware of any official term. |
Paul 24-May-2009 [14347x2] | I'm thinking about putting in an enhancement request. |
or wish. | |
BrianH 24-May-2009 [14349] | Interesting. For what do you wish? :) |
Henrik 24-May-2009 [14350] | if so, there should be a way to classify them in a helpful way in documentation and help |
BrianH 24-May-2009 [14351] | These functions have been part of the recent debate over series! and its types... |
Henrik 24-May-2009 [14352] | the nearest method is to search for functions that manipulate specific datatypes. |
Paul 24-May-2009 [14353x2] | http://curecode.org/rebol3/ticket.rsp?id=844 |
I just submitted that wish. | |
Henrik 24-May-2009 [14355] | there is a better way to write that request: AT should support block directly as index. |
Paul 24-May-2009 [14356] | what you mean? |
Henrik 24-May-2009 [14357] | copy/part does that. |
Paul 24-May-2009 [14358] | yeah but that is a copy. |
BrianH 24-May-2009 [14359] | BACK TAIL series sets the position - the AT is a noop in your example. |
Paul 24-May-2009 [14360] | not sure what that means. |
Henrik 24-May-2009 [14361] | BrianH, not if the AT specifies a different series than the BACK TAIL. |
Paul 24-May-2009 [14362] | if it isn't doable just update the ticket to state such. I just wanted to get the wish in there in case I think of it again and forget we discussed it. |
Henrik 24-May-2009 [14363] | instead of writing: at block1 index? block2 it could be: at block1 block2 |
Paul 24-May-2009 [14364x2] | But those are supposing you know the index length. I was hoping to avoid that with my request. |
Specifically for dynamically allocated series. | |
Henrik 24-May-2009 [14366] | you can always use skip -n if you want to jump relatively in a series. |
Paul 24-May-2009 [14367x2] | to me it just seemed more REBOLish to use AT in the manner that I posted. |
Follows the KISS principle to me. | |
BrianH 24-May-2009 [14369] | I can update the ticket if you like. What would you like it to say? INDEX? can return the result of your calculated position. Your example would be: AT series1 INDEX? BACK TAIL series2 |
Paul 24-May-2009 [14370x2] | Wait a minute - Carl's method is simple things should be simple to do (STSBSTD). A longer acronym. |
You can write what you want. It is just a placeholder for me to not suggest it again. | |
BrianH 24-May-2009 [14372] | I'm not downplaying it, I'm just trying to clarify. At this point I don't understand what you want well enough to answer the question. |
Oldes 24-May-2009 [14373] | I don't understand it either... what should be result of your example code? |
Steeve 24-May-2009 [14374] | i think he wants AT working like COPY/PART (the index could be an integer or a serie aswell) |
BrianH 24-May-2009 [14375] | Well, if the index is a series offset, even a calculated one, then you can already have a reference to that offset without the AT. |
Steeve 24-May-2009 [14376x2] | It makes sense if the 2 series are differents. |
but i agree, i don't see so much use cases for that. | |
Paul 24-May-2009 [14378] | >> series == [1 2 3 4 5 6 7 8 9 10] >> series: at series back tail series >> series: [10] |
BrianH 24-May-2009 [14379] | >> series == [1 2 3 4 5 6 7 8 9 10] >> series: back tail series == [10] The AT is implied by TAIL, and then again by BACK. |
Paul 24-May-2009 [14380x2] | yeah only example I can think of. |
I had it written down from something I had been working on. Go ahead and resolve the ticket if you like - if I come across the problem that resulted in my notes then we can revisit it. | |
BrianH 24-May-2009 [14382] | An example where you are trying to go to the same position of another series would be more useful, since that would mean removing an INDEX? function instead of adding an AT function. |
Paul 24-May-2009 [14383] | Yeah in my notes I have "no copy'" so something I was involved with wanted the fucntionality without copy. |
older newer | first last |