From: Chris C. <qua...@re...> - 2008-09-01 15:43:17
|
On Mon, 01 Sep 2008 Matt Lewis wrote : >On Mon, Sep 1, 2008 at 8:39 AM, Chris Covier <qua...@re...> wrote: > > > > If we agree that is it beneficial for the API from these files to go > > builtin, this means that the fileswill disappear sooner or later. > > Shouldn't this be done before releasing 4.0 alpha? > > > > Since all these are calls to machine_*, this means, for each of the 12 > > routines or so: > > * copy-paste in Execute() the code found in the relevant branches of > > Machine()'s big switch;. There will be some var name changes as a result; > > * add standard type checking code, but this is mainly done in the above; > > * Write appropriate C code in compile.e, as well as some BBtype code about > > arg/retvals. > >The regex API makes sense to move. Regex usage will often be >performance critical, so moving it makes sense for that reason. > >What's the benefit for moving dll.e? We'd still need dll.e for the >constants, if nothing else. > 1/ Avoids yet another include files, and scope gyrations in multifile applications; 2/ Since all the routines there are machine_calls, the bulk of C coding is done already. It mostly needs being scripted in compile.e. Since the routines there are used only a few times at initialisation time, they are not time critical indeed. And chances that they are overridden are pretty smim - I don't know if annyone has ever done that. So, they can be hardcoded without any actual loss of flexibility. CChris >-- >Matt Lewis > >------------------------------------------------------------------------- >This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >Build the coolest Linux based applications with Moblin SDK & win great prizes >Grand prize is a trip for two to an Open Source event anywhere in the world >http://moblin-contest.org/redirect.php?banner_id=100&url=/ >_______________________________________________ >Rapideuphoria-develop mailing list >Rap...@li... >https://lists.sourceforge.net/lists/listinfo/rapideuphoria-develop |