World: r3wp
[!REBOL3 GUI]
older | first |
BrianH 31-Jan-2012 [7384] | The module system can be fixed to not use RESOLVE/extend/only, and a few months ago I submitted such a fix to Saphiron for them to include in their next host code release, along with other mezzanine fixes. I'm just waiting for them to post another release. In the meanwhile, in my own module code that does exports I do the exports explicitly in the module code itself instead of using the EXPORT keyword or the Exports header. |
Andreas 31-Jan-2012 [7385] | Afaik, we (the community, that includes Saphirion) cannot build binaries incorporating mezzanine changes with the current hostkit. |
BrianH 31-Jan-2012 [7386] | Nope, you just can't build a single binary with a statically linked r3lib. You can build a host kit exe with a dynamically linked r3lib with any mezz changes you want. |
Andreas 31-Jan-2012 [7387] | Nope, the current hostkit build does not take mezz changes into account in any way. |
BrianH 31-Jan-2012 [7388] | Interesting. I thought that the mezzanines were loaded by the host, not built into r3lib. |
Andreas 31-Jan-2012 [7389x2] | Some of them are (mostly the bundled extension related ones), most of them are not. |
(See %src/tools/make-host-{init,ext}.r for details.) | |
BrianH 31-Jan-2012 [7391x2] | If I make a patch file that fixes the mezz problems, including the module-related ones, will that work? For now (when the module list isn't really protected yet) this is doable... |
We can't hot-patch functions in R3 for security reasons, but we can replace them completely with fixed versions. | |
Andreas 31-Jan-2012 [7393x3] | When would you load that patch file? |
I think you mentioned somewhere, that replacing affected functions from user.r is not possible. | |
(For this particular RESOLVE issue.) | |
BrianH 31-Jan-2012 [7396x2] | I load a patch file in %rebol.r right now, for my work use of R3. If I was doing my own host builds then I would put a reference to the patch file early on in the host-init code. |
%rebol.r still works, and it loads pretty early on in the boot process. The host init loads earlier. | |
Andreas 31-Jan-2012 [7398x2] | I don't have the loading intricacies in enough detail in my head right now to reason about this sensibly. |
But I guess we could at least try, if you have a particular hotfix in mind. | |
BrianH 31-Jan-2012 [7400x2] | I have a list of fixes and improvements in mind, so I'll see if there's some time by the end of this week to put together a patch file. I'm sorry that I haven't documented the module system well enough to make it practical for anyone other than me to patch it at runtime. Improving its documentation is on my todo list, though I've been a bit busy at work lately. |
Hopefully this patch file will serve as an example for others who want to do similar patching. | |
Cyphre 31-Jan-2012 [7402:last] | I succesfully 'overloaded' some mezz functions in R3 in the RMA hostkit. See the inclusion of %rma-patches.r file in src\tools\make-host-init.r in the RMA host-kit release. So it is possible to do some fixes that way.(of course not every part can be tweaked such way) |
older | first |