Re: [dwm] Minimalism

From: Sylvain Bertrand <sylvain.bertrand_AT_gmail.com>
Date: Thu, 17 Jan 2008 15:48:43 +0100

2008/1/17, pancake <pancake_AT_youterm.com>:
> On Thu, Jan 17, 2008 at 12:37:56PM +0100, Sylvain Bertrand wrote:
> > Hi,
> > I'm looking to reduce my software stack and I'm targeting the C
> > library. I know I just need to perform direct Linux syscalls and it
> > will be fine. But, I would like to load ELF shared objects in my
> > process space and for that, the only way I know is to use the dynamic
> > linking lib from the C library. Has anybody heard about something like
> > that?
>
> lolsome, libraries are here to avoid code duplication in memory,

I think all coders know that...

> i know that most of GNU ones are blobs, but the solution is not coding
> like gcc -static does. This is a task of the compiler and what you're
> proposing is a bad software design rule.

In *my* context and from *my* perspective, it's a good software design
rule. I now favor almost each time whole software stack reduction in
size and complexity.

> About the shared object loading..it's not inside libC on GNU systems.
> This task is delegated to libdl. so it's an standalone library.

Actually, it's what I said, but I erroneously said "from the C
library" instead of "from the C library package" (I was, indeed,
referring to the dl lib).

> I think that system elf loader (ld.so) should be able to do it so..if
> you're writing a virus or playing with low-level stuff on *nix you can
> get a look on it.

It is the purpose of this email: avoid to have a look at the "GNU
blob" by querying experienced people, not that far from my way of
seeing software right now, about my issue... because "google" is
somewhat inefficient on this.

> > And for dwm, I don't know what would be the cost to build directly the
> > X11 packets or to recode the XCB lib straight on Linux syscalls.
>
> This will make dwm unportable and we should implement the different
> ways to communicate with X11 (socket file, network,..)

If portability is a major feature for dwm, then I'll pass on this. In
any case XCB would still be pertinent. But, if I perform a search on
the "XCB" term on the mailing list archive I'll have all my answers.
Received on Thu Jan 17 2008 - 15:48:44 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:16:12 UTC