Re: [9fans] Binary format

2010-02-18 Thread Patrick Kelly
On Feb 17, 2010, at 10:04 AM, Enrico Weigelt weig...@metux.de wrote: * Steve Simon st...@quintile.net wrote: We recompile the relevant executables. The speed of kencc makes this much less painful than you might expect. It also happens very rarely on plan9 - I cannot remember the last time

Re: [9fans] Binary format

2010-02-18 Thread Patrick Kelly
On Feb 17, 2010, at 1:21 PM, Enrico Weigelt weig...@metux.de wrote: * David Leimbach leim...@gmail.com wrote: A lot of plug in functionality you'll find on other platforms that requires a shared library approach can be implemented via a file system service technique. Of course, and I

[9fans] Binary format

2010-02-17 Thread Enrico Weigelt
Hi folks, just curious: which binfmt does Plan9 use ? How are share libraries handled (if they exist at all) ? Inspired by recent discussions @ gentoo-user, I'm thinking a bit how an simple and efficient binfmt could look like. Some key ideas are: * purely runtime information (no debug stuff,

Re: [9fans] Binary format

2010-02-17 Thread Jacob Todd
On Wed, Feb 17, 2010 at 02:31:09PM +0100, Enrico Weigelt wrote: Hi folks, just curious: which binfmt does Plan9 use ? How are share libraries handled (if they exist at all) ? Inspired by recent discussions @ gentoo-user, I'm thinking a bit how an simple and efficient binfmt could look

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* Jacob Todd jaketodd...@gmail.com wrote: Where was this thread at? I'm subscribed to gentoo-user, but I don't have any threads about binary formats in my inbox. Was the discussion in another thread (maybe the giant HAL thread)? Exactly this one ;-p Oh, and we also talk about fat vs. tiny

Re: [9fans] Binary format

2010-02-17 Thread Gorka Guardiola
On Wed, Feb 17, 2010 at 2:31 PM, Enrico Weigelt weig...@metux.de wrote: Hi folks, just curious: which binfmt does Plan9 use ? How are share libraries handled (if they exist at all) ? a.out(6) no shared libraries. Inspired by recent discussions @ gentoo-user, I'm thinking a bit how an

Re: [9fans] Binary format

2010-02-17 Thread erik quanstrom
Oh, and we also talk about fat vs. tiny libraries, etc. Maybe you'd like to join in ;-) please remember that this isn't a linux list. - erik

Re: [9fans] Binary format

2010-02-17 Thread David Leimbach
And all of the below are some of the reasons I still love plan 9. Simplicity first is a really great way to work (I've learned over the years). Dave On Wed, Feb 17, 2010 at 6:06 AM, Gorka Guardiola pau...@gmail.com wrote: On Wed, Feb 17, 2010 at 2:31 PM, Enrico Weigelt weig...@metux.de wrote:

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* Gorka Guardiola pau...@gmail.com wrote: On Wed, Feb 17, 2010 at 2:31 PM, Enrico Weigelt weig...@metux.de wrote: Hi folks, just curious: which binfmt does Plan9 use ? How are share libraries handled (if they exist at all) ? a.out(6) no shared libraries. ah, already suspected that

Re: [9fans] Binary format

2010-02-17 Thread blstuart
* the whole loader sits in the kernel (maybe w/ some additional helper deamon in userland), but userland can pass parameters like search pathes, etc via env. IMHO having the dynamic loader in kernel-land (in contrary to ELF on GNU) not just removes the need for lots of syscalls, but

Re: [9fans] Binary format

2010-02-17 Thread Steve Simon
And another important feature of shared libraries is, that when some lib is updated, importing programs dont have to be recompiled. What's the Plan9 solution here ? We recompile the relevant executables. The speed of kencc makes this much less painful than you might expect. It also happens

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* blstu...@bellsouth.net blstu...@bellsouth.net wrote: If you're interested in how to do dynamic loading in a clean and elegant way, take a look at Inferno. hmm, isnt this an interpreter-based system ? Along the lines of what you're suggesting, everything is a module. The only thing

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* Steve Simon st...@quintile.net wrote: We recompile the relevant executables. The speed of kencc makes this much less painful than you might expect. It also happens very rarely on plan9 - I cannot remember the last time we had a big pull. Okay, but then (as an admin) you have to know which

Re: [9fans] Binary format

2010-02-17 Thread blstuart
* blstu...@bellsouth.net blstu...@bellsouth.net wrote: If you're interested in how to do dynamic loading in a clean and elegant way, take a look at Inferno. hmm, isnt this an interpreter-based system ? The application language is Limbo which is compiled to Dis machine code. Dis is run

Re: [9fans] Binary format

2010-02-17 Thread erik quanstrom
We recompile the relevant executables. The speed of kencc makes this much less painful than you might expect. It also happens very rarely on plan9 - I cannot remember the last time we had a big pull. Okay, but then (as an admin) you have to know which apps have to be recompiled. For a

Re: [9fans] Binary format

2010-02-17 Thread blstuart
We recompile the relevant executables. The speed of kencc makes this much less painful than you might expect. It also happens very rarely on plan9 - I cannot remember the last time we had a big pull. Okay, but then (as an admin) you have to know which apps have to be recompiled. For a small

Re: [9fans] Binary format

2010-02-17 Thread David Leimbach
On Wed, Feb 17, 2010 at 6:55 AM, Steve Simon st...@quintile.net wrote: And another important feature of shared libraries is, that when some lib is updated, importing programs dont have to be recompiled. What's the Plan9 solution here ? We recompile the relevant executables. The speed of

Re: [9fans] Binary format

2010-02-17 Thread Stuart Morrow
On 2/17/10, Steve Simon st...@quintile.net wrote: And another important feature of shared libraries is, that when some lib is updated, importing programs dont have to be recompiled. What's the Plan9 solution here ? We recompile the relevant executables. also, plan 9 uses filesystems for many

Re: [9fans] Binary format

2010-02-17 Thread David Leimbach
On Wed, Feb 17, 2010 at 8:14 AM, Stuart Morrow morrow.stu...@googlemail.com wrote: On 2/17/10, Steve Simon st...@quintile.net wrote: And another important feature of shared libraries is, that when some lib is updated, importing programs dont have to be recompiled. What's the Plan9

Re: [9fans] Binary format

2010-02-17 Thread lucio
And if you do want to recompile everything, running mk in /sys/src will recompile everything and not take all that long doing it, especially if you keep the object files around. And I can vouch for the fact that this works just fine for the ARM (impersonated in this case by a SheevaPlug)

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* David Leimbach leim...@gmail.com wrote: A lot of plug in functionality you'll find on other platforms that requires a shared library approach can be implemented via a file system service technique. Of course, and I would really like to see that approach in the GNU world too (actually, I

Re: [9fans] Binary format

2010-02-17 Thread Lyndon Nerenberg (VE6BBM/VE7TFX)
Okay, but then (as an admin) you have to know which apps have to be recompiled. For a small system this might be okay, but that doesnt scale well ;-o Plan 9 _is_ a small system.

Re: [9fans] Binary format

2010-02-17 Thread Corey Thomasson
Even synthetic filesystems are good for moving bigger things to their own services, there're many cases where that wouldnt make sense, for example parsers. I doubt you'd really suggest putting an XML parser to its own filesystem for real productional use ;-p (having such a thing surely is a

Re: [9fans] Binary format

2010-02-17 Thread David Leimbach
On Wed, Feb 17, 2010 at 10:21 AM, Enrico Weigelt weig...@metux.de wrote: * David Leimbach leim...@gmail.com wrote: A lot of plug in functionality you'll find on other platforms that requires a shared library approach can be implemented via a file system service technique. Of course, and

Re: [9fans] Binary format

2010-02-17 Thread Nick LaForge
Enrico Weigelt weig...@metux.de wrote: And another important feature of shared libraries is, that when some lib is updated, importing programs dont have to be recompiled. Enrico Weigelt weig...@metux.de wrote: Actually, that's just a matter of clean dependency handling. Include an API/ABI

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* David Leimbach leim...@gmail.com wrote: No I'm not saying replace all library code with filesystems. I don't know why you'd want an RPC interface to an XML parser :-). You need to implement an RPC protocol for that. And most likely you want to get the parsed content into some convenient

Re: [9fans] Binary format

2010-02-17 Thread Enrico Weigelt
* Enrico Weigelt weig...@metux.de wrote: * David Leimbach leim...@gmail.com wrote: No I'm not saying replace all library code with filesystems. I don't know why you'd want an RPC interface to an XML parser :-). You need to implement an RPC protocol for that. And most likely you want to

Re: [9fans] Binary format

2010-02-17 Thread Nathaniel W Filardo
On Wed, Feb 17, 2010 at 03:06:57PM +0100, Gorka Guardiola wrote: * each module may have an entry point (main module w/o is allowed,  even if it wouldn't make much sense ;-o), these are called after  relocation, along the dependency tree, from leaf to root. no modules. That's not entirely

Re: [9fans] Binary format

2010-02-17 Thread EBo
Nathaniel W Filardo n...@cs.jhu.edu said: On Wed, Feb 17, 2010 at 03:06:57PM +0100, Gorka Guardiola wrote: * each module may have an entry point (main module w/o is allowed,  even if it wouldn't make much sense ;-o), these are called after  relocation, along the dependency tree, from

Re: [9fans] Binary format

2010-02-17 Thread David Leimbach
On Wed, Feb 17, 2010 at 3:16 PM, EBo e...@sandien.com wrote: Nathaniel W Filardo n...@cs.jhu.edu said: On Wed, Feb 17, 2010 at 03:06:57PM +0100, Gorka Guardiola wrote: * each module may have an entry point (main module w/o is allowed, even if it wouldn't make much sense ;-o), these

Re: [9fans] Binary format

2010-02-17 Thread Jacob Todd
On Wed, Feb 17, 2010 at 03:33:03PM +0100, Enrico Weigelt wrote: ah, already suspected that ;-o I know that plan9's standard libraries are so small, that they dont really need to be shared. But when more and more applications von *nix world get ported, the problem might arise again. And