AW: [crossfire] About "glue" code

Michael Toennies michtoen at daimonin.net
Thu Jul 14 16:29:38 CDT 2005


The glue code is for the crosslib.a which was done for
crossedit and not the plugin. One reason why i suggested
years ago to remove crossedit and use the java editor 
exclusive.

You should look to daimonin... We have a very experienced
java coder working on the editor, who has cleaned up the
code from me and Andreas and the result is a exellent and
fast editor which should be easily reconverted to crossfire.

The current daimonin java editor (which is the same source
base as the cf editor) is now superior to crossedit in any 
part. I can only strongly suggest to look in it.

Also, we removed glue.c and changed from python to lua.

I can't tell you enough HOW superior lua is compared to python.
First, it has a tiny, extrem flexibel source runtime, which is added
direct to the server. No need to link it external. Its 250%-300% faster
(yes, we timed it - checkout the last python cvs and the lua one
and compare if you don't believe). It more powerful as a embedded 
script language in any way. Its extremly easy & powerful. There is
a reason why its used from baldur's gate to nearly every commcercial
mmorpg.

The interface we had done is also easy to convert to crossfire and
it allows add_string() (as hooks->add_string() ).

Beside: To link crosslib.a 2 times to the server - one time to the
server itself, one time to the plugin dynamic lib, its not only 
extremly unclean but also potential dangerous. Not to mention thats
bugs can hide there for ages.

>
     
      Hello.
     
     >
     
     
     >
     
      What's the use of the "glue" code? In glue.c, and the 
     
     >
     
      callback functions, in the library.
     
     >
     
      >From what I understand, it was supposed to be for the Python plugin.
     
     >
     
      But the fun part is that is doesn't work under Win32: the 
     
     >
     
      library is generated as static, so plugin and server have 
     
     >
     
      each their own without any shared data.
     
     >
     
     
     >
     
      So I was pondering simply cleaning/removing that. That would 
     
     >
     
      imply fixing plugin system, too, as all functions should be 
     
     >
     
      callbacks and not directly hooking to server (like add_string 
     
     >
     
      that does *not* work between plugin and server under Win32...).
     
     >
     
     
     >
     
      Opinions?
     
     >
     
     
     >
     
      Ryo
     
     >
     
     
     >
     
      _______________________________________________
     
     >
     
      crossfire mailing list
     
     >
     
     
      crossfire at metalforge.org
      
      
     >
     
     
      http://mailman.metalforge.org/mailman/listinfo/crossfire
      
      
     
    


More information about the crossfire mailing list