World: r3wp
[!REBOL3 Extensions] REBOL 3 Extensions discussions
older newer | first last |
Edgar 12-Jul-2010 [887] | Do we have a test files to run to check if all areas of R3 that is implemented is working? |
Graham 12-Jul-2010 [888] | It would be good if we had access to the test suites |
Edgar 12-Jul-2010 [889] | After adding MinGW\bin and msys\1.0\bin to the windows command path and also copying rebol.exe to msys\1.0\bin folder, I was able to build it from a normal command window without modifying the makefile. |
Andreas 12-Jul-2010 [890] | Carl: in any case, I don't care much about CMake. Just shipping the hostkit with your make-build.r instead of a pre-built makefile would most likely do just fine for getting an integrated cross-platrform build working. (Plus, of course, bundling the libraries and sources for all platforms in the hostkit.) |
Edgar 12-Jul-2010 [891] | I see go.r can be use as test. |
Andreas 12-Jul-2010 [892] | And just in case: _THANKS_ a million for the new hostkit code drop, Carl (and everyone else who helped make it happen)! |
Graham 12-Jul-2010 [893] | echo that |
Maxim 12-Jul-2010 [894] | yes thanks to everyone who worked on making it happen. :-) |
Graham 12-Jul-2010 [895] | we now have a domain ( thanks Andreas ) for the tracker http://jira.rebolsource.net:8080/secure/Dashboard.jspa |
Andreas 12-Jul-2010 [896] | and now is probably as good a time as any to move this discussion to !REBOL3 Host Kit |
NickA 13-Jul-2010 [897] | +1 Thank you! |
Pekr 13-Jul-2010 [898] | Apart from Win, OS-X, Linux, BSD, the next most important platform is really imo an ARM plus Android. |
Graham 13-Jul-2010 [899x2] | Put Arm before BSD |
BSD is well serviced by R2 | |
NickA 13-Jul-2010 [901] | I agree - for R3 to gain traction, mobile support should be a priority. |
Robert 13-Jul-2010 [902x2] | Jira: Why a new tracker? Isn't CureCode still be used? No information fragmentation please. |
Priorities: Before getting new platforms up & running I see feature completion to be more critical. Otherwise we have a moving target that takes to much effort to keep in sync. | |
Pekr 13-Jul-2010 [904] | I agree about the completness-first argument ... |
Graham 13-Jul-2010 [905] | Robert, if you read above, Carl did not want to make a public release unless someone gathered all the comments ... and Andreas & I volunteered. The curecode tracker does not have a hostkit project ... so I used my new Jira tracker. Simple as that. |
BrianH 13-Jul-2010 [906x2] | Most of the host kit problems are R3 problems as well. We have categories in R3's Curecode project, and we can add a Host-Kit category if needed (I will do so right now). Multiple trackers are not a good idea, in general. We'll see if they become a problem in this specific case. |
Done. | |
Andreas 13-Jul-2010 [908x2] | Thanks |
Could you add an A100 version as well, please? | |
BrianH 13-Jul-2010 [910] | Done. As with all new versions added, be careful to set that field when you write up a new ticket. But we should be careful with that, because in general we haven't had prereleases. We may end up with problems reported for a100 that will be fixed in a100 :) |
Andreas 13-Jul-2010 [911] | I consider the current hostkit drop to be hostkit version A100. The next hostkit to be released should (and hopefully will) be A101 or later. |
Graham 13-Jul-2010 [912] | Anyone know how to compile in one's own protocols ?? |
BrianH 13-Jul-2010 [913x2] | The "current hostkit drop" is not a release, it's a prerelease. |
This is getting increasingly off topic. | |
Andreas 13-Jul-2010 [915] | Carl calls it a release, so I consider it a release. And yes, should be in R3 Host Kit |
Maxim 13-Jul-2010 [916] | I too vote for an A101 numbering the next time a package is released... its going to be MUCH easier to follow for everyone. IIRC the A97 created this strange pre-release condition too and it had to be specified each time we talked about what we downloaded. |
Graham 15-Jul-2010 [917x3] | Robert, did you ever upload your macros stuff that you mentioned in Jan? I looked in the extensions group and didn't see anything |
And your sqlite3 extension? | |
jocko .. your TTS extension still works under A100 | |
Robert 15-Jul-2010 [920] | No, sorry. Need to bundel all this so it can be used. But it's all still to much in flux, not fully-done etc. |
Graham 15-Jul-2010 [921] | I was wanting to see examples .. doesn't have to be functional, but I thought you said sqlite3 was working well?? |
jocko 15-Jul-2010 [922] | thanks for the test and the feedback, Graham |
Graham 15-Jul-2010 [923] | Jocko, you need to do more :) |
jocko 15-Jul-2010 [924] | Lack of time, but I'm also waiting for more specs for the extensions (image datatype, callbacks ...) |
Graham 15-Jul-2010 [925] | You did yours in C++ .. is that because windows api/com needs this? |
jocko 15-Jul-2010 [926] | yes |
Robert 15-Jul-2010 [927x2] | Here are two functions I created to handle strings a bit simpler: |
// string to convert to R3 string // R3 frame to add string too REBSER* RXI_Make_String(const char *string){ // build string int string_len = string == NULL ? 0 : strlen(string); odprintf("RXI_Make_String with length = %d, string = %s", string_len, string); REBSER *s = RXI_MAKE_STRING(string_len, 0); if(string_len == 0) return s; // and set single chars if there are some for(int x=0; (*(string+x)) != '\0'; x++){ RXI_SET_CHAR(s, x, *(string+x)); } odprintf("RXI_Make_String: done"); return s; } void RXI_Return_String(const char *string, RXIFRM *frm, int frm_position) { REBSER *s = RXI_Make_String(string); // set parameter 1 (=return value?) to constructed string // set index to 0 // set type to string RXA_SERIES(frm, frm_position) = s; RXA_INDEX(frm, frm_position) = 0; RXA_TYPE(frm, frm_position) = RXT_STRING; } | |
Steeve 15-Jul-2010 [929] | What is the best IDE to use with GCC under Windosw ? |
Andreas 15-Jul-2010 [930] | Eclipse, probably. |
BrianH 15-Jul-2010 [931] | Code:Blocks isn't bad. |
Maxim 15-Jul-2010 [932x2] | Code::Blocks http://www.codeblocks.org/ |
continuing Request for object lookup within host/extensions here.... Here is a proposal (using example C code) for OBJECT access within extensions this uses the EXACT same API as commands, and with just a little bit of work on the extensions API by Carl and a single hook within the r3core, we could allow callbacks within objects. the advantage is that we re-use the same safe sand box as commands, and don't require to do much coding to enable it, AFAICT. since object lookup is performed on demand, we can very rapidly supply an object to the command, and it doesn't cause any heavy-handed conversion at each command call if the object isn't needed. more fine-grained control could be added so we don't need to frame the whole object, but it would be usefull as-is already. RXIEXT int RX_Call(int cmd, RXIFRM *frm) { i64 i; // objects are frames, exactly like command arguments. RXIFRM *obj; // return values are also frames (with one argument), for type-checking purposes. RXIFRM *rval; if (cmd == 1) { // ask the core for a frame which represents object. // attributes are returned in order they appear in object // // the command frame doesn't include the object frame, only a handle to the // object which the core can understand. we then ask for the object frame on-demand. obj = RXA_OBJ(frm, 1); switch (RXA_TYPE(obj, 1)) { case RXT_INTEGER: i = RXA_INT64(obj, 1); break; // we could build a frame for supplying arguments to the eval case RXT_FUNCTION: rval = RXA_EVAL(obj, 1); if (RXA_TYPE(rval, 1) == RXT_INTEGER){ i = RXA_INT64(rval, 1); } else { // return error } break; // wrong type default: // return error break; } // do something with the value my-native-function(i); } } so what do you guys think? | |
BrianH 15-Jul-2010 [934] | Command arguments have limits on how many are passed. Those same limits would apply to object fields with your approach. |
Graham 15-Jul-2010 [935] | 7 args isn't it? |
BrianH 15-Jul-2010 [936] | So objects with more than 7 fields wouldn't be supported? Command frames are marshaled, remember, they are not references to stack frames. If you want to pass an object and get access to its fields perhaps passing it as some kind of handle and getting access to the fields through accessor funcs would be better. Unless I misunderstood your code and you are doing this already. |
older newer | first last |