Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh-3.1 development: dynamic modules

I tried it on Sinix 5.42. It is SVR4-derived system with -ldl library. At
least Perl 5.003 DynaLoad works O.K.

There are many problems about autoconf, but it could be solved in future.
The crucial problem is:

  on some systems (our at least; I take it to be true for other SVR4 as
  well) the statically linked symbols are *not* available to dynamic
  loader. I am not aware of any options to change it. Applied to 
  ZSH it means, that `addbuiltin' command (when called from loaded module)
  *is not found* :-(

Note, that Perl is built as two parts - "startup" command and library,
which contains actual Perl code. I think, the above problem is one reason
for it. Giving long development cycle of Perl, it probably the only
portable solution.

It means, that ZSH should be splitted in small kernel and (probably
several) dynamically loaded modules. At least those sysmbols, which need
to be accessable from modules, should be in dyna part. But I think, if
such rewrite is ever necessary, it would be nice to modularize code; as
example, whole zle_* part could probably be made separate module (and
loaded only in interactive shell).

BTW code of Tcl 7.5 is in *.so library as well.

I would be glad to here, that I am wrong.


Andrej Borsenkow 		Fax:   +7 (095) 252 01 05
SNI ITS Moscow			Tel:   +7 (095) 252 13 88

NERV:  borsenkow.msk		E-Mail: borsenkow.msk@xxxxxx

Messages sorted by: Reverse Date, Date, Thread, Author