public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* sections in configrun-sid
@ 2001-08-10  0:27 Ben Elliston
  2001-08-10  0:58 ` matthew green
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Elliston @ 2001-08-10  0:27 UTC (permalink / raw)
  To: sid

This Perl script emits chunks of configuration data to three ordered
sections (named "$first_section", etc).  At the end of the script,
each section is emitted to the configuration file in order.

I am finding this arrangement to be too restrictive.  Currently, I
need to have a "$fourth_section" that makes use of some component
instantiation done late in the third section.

Instead, I think the logic could be simplified by creating a number of
sections, corresponding to the usual arrangement of sid configuration
files:

	$preamble_section
	$load_section
	$new_section
	$set_section
	$connect_section
	$postamble_section

Comments?

Ben

^ permalink raw reply	[flat|nested] 3+ messages in thread

* re: sections in configrun-sid
  2001-08-10  0:27 sections in configrun-sid Ben Elliston
@ 2001-08-10  0:58 ` matthew green
  0 siblings, 0 replies; 3+ messages in thread
From: matthew green @ 2001-08-10  0:58 UTC (permalink / raw)
  To: Ben Elliston; +Cc: sid

   
   	$preamble_section
   	$load_section
   	$new_section
   	$set_section
   	$connect_section
   	$postamble_section


sounds good.


one other thing i've been meaning to do is work out how to eliminate
unnecessary shlibs the big list of shlibs in the generated files.
that should improve exectution startup times (at least.)


.mrg.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sections in configrun-sid
       [not found] <15219.36057.453159.217729.cygnus.project.sid@walkabout.brisbane.redhat.com>
@ 2001-08-10  1:34 ` Frank Ch. Eigler
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Ch. Eigler @ 2001-08-10  1:34 UTC (permalink / raw)
  To: Ben Elliston; +Cc: sid

bje wrote:

: This Perl script emits chunks of configuration data to three ordered
: sections (named "$first_section", etc).  [...]
: I am finding this arrangement to be too restrictive.  Currently, I
: need to have a "$fourth_section" that makes use of some component
: instantiation done late in the third section.

Why are you instantiating components in the third section?

: Instead, I think the logic could be simplified by creating a number of
: sections, corresponding to the usual arrangement of sid configuration
: files:
: 
: 	$preamble_section
: 	$load_section
: 	$new_section
: 	$set_section
: 	$connect_section
: 	$postamble_section

I don't see how this simplifies (program) logic.  It does give better
name to the sections, but perhaps overcodifies them.  (There is no
need to cluster all new's, etc., together, as long as there is a
partial order.)


mrg wrote:

: one other thing i've been meaning to do is work out how to eliminate
: unnecessary shlibs the big list of shlibs in the generated files.

The problem is that the perl script has no easy way of knowing which
component types come from which component libraries.  You can
hard-code the knowledge, analogously to how the "tcl-event-consumer"
component is conditionally instantiated, but I'm not sure that's an
improvement.

: that should improve exectution startup times (at least.)

(Maybe, but only for the dynamically linked case.)


- FChE

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-10  1:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-10  0:27 sections in configrun-sid Ben Elliston
2001-08-10  0:58 ` matthew green
     [not found] <15219.36057.453159.217729.cygnus.project.sid@walkabout.brisbane.redhat.com>
2001-08-10  1:34 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).