Layered Open Source Software in C

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shreyas

    Layered Open Source Software in C

    Sorry if this has been asked before.

    Does anyone know of any modern examples of open source software
    implemented in ANSI-C using a truly layered architecture (preferably
    in an OO fashion)?

    I'd like to get a feel for what the industry best practices are in
    ANSI-C these days. I'm reasonably experienced in C but I don't have
    much experience writing layered code in it. I've mainly been using
    structural decomposition for most of my programs.
  • Antoninus Twink

    #2
    Re: Layered Open Source Software in C

    On 14 Oct 2008 at 20:53, Shreyas wrote:
    Does anyone know of any modern examples of open source software
    implemented in ANSI-C using a truly layered architecture (preferably
    in an OO fashion)?
    Check out glib (http://developer.gnome.org/arch/gtk/glib.html), which
    implements an impressive object and type system in C.

    Comment

    • Roland Pibinger

      #3
      Re: Layered Open Source Software in C

      On Tue, 14 Oct 2008 13:53:50 -0700 (PDT), Shreyas wrote:
      >Does anyone know of any modern examples of open source software
      >implemented in ANSI-C using a truly layered architecture (preferably
      >in an OO fashion)?
      >
      >I'd like to get a feel for what the industry best practices are in
      >ANSI-C these days. I'm reasonably experienced in C but I don't have
      >much experience writing layered code in it. I've mainly been using
      >structural decomposition for most of my programs.
      SQLite http://www.sqlite.org/arch.html



      --
      Roland Pibinger
      "The best software is simple, elegant, and full of drama" - Grady Booch

      Comment

      • CBFalconer

        #4
        Re: Layered Open Source Software in C

        Roland Pibinger wrote:
        Shreyas wrote:
        >
        >Does anyone know of any modern examples of open source software
        >implemented in ANSI-C using a truly layered architecture
        >(preferably in an OO fashion)?
        >>
        >I'd like to get a feel for what the industry best practices are
        >in ANSI-C these days. I'm reasonably experienced in C but I
        >don't have much experience writing layered code in it. I've
        >mainly been using structural decomposition for most of my
        >programs.
        >
        SQLite http://www.sqlite.org/arch.html
        also <http://cbfalconer.home .att.net/download/hashlib.zip>

        --
        [mail]: Chuck F (cbfalconer at maineline dot net)
        [page]: <http://cbfalconer.home .att.net>
        Try the download section.

        Comment

        • Antoninus Twink

          #5
          Re: Layered Open Source Software in C

          On 16 Oct 2008 at 0:48, CBFalconer wrote:
          >Shreyas wrote:
          >>Does anyone know of any modern examples of open source software
          >>implemented in ANSI-C using a truly layered architecture
          >>(preferably in an OO fashion)?
          >>>
          >>I'd like to get a feel for what the industry best practices are
          >>in ANSI-C these days.
          >
          also <http://cbfalconer.home .att.net/download/hashlib.zip>
          *splutter*

          Coffee over the screen moment... this is utterly hilarious, and the
          hubris is astonishing even by CBF standards.

          Comment

          • Richard

            #6
            Re: Layered Open Source Software in C

            CBFalconer <cbfalconer@yah oo.comwrites:
            Roland Pibinger wrote:
            >Shreyas wrote:
            >>
            >>Does anyone know of any modern examples of open source software
            >>implemented in ANSI-C using a truly layered architecture
            >>(preferably in an OO fashion)?
            >>>
            >>I'd like to get a feel for what the industry best practices are
            >>in ANSI-C these days. I'm reasonably experienced in C but I
            >>don't have much experience writing layered code in it. I've
            >>mainly been using structural decomposition for most of my
            >>programs.
            >>
            >SQLite http://www.sqlite.org/arch.html
            >
            also <http://cbfalconer.home .att.net/download/hashlib.zip>
            *blink*

            Quite unbelievable.

            "if (copying) master->htbl[h] = item;"

            Yuck.

            Comment

            • Shreyas

              #7
              Re: Layered Open Source Software in C

              Thanks guys - appreciate your help :)

              Comment

              • Nick Keighley

                #8
                Re: Layered Open Source Software in C

                On 16 Oct, 08:44, Richard<rgr...@ gmail.comwrote:
                CBFalconer <cbfalco...@yah oo.comwrites:
                <snip>

                OP asked for "good examples of 'layered' software"
                also <http://cbfalconer.home .att.net/download/hashlib.zip>
                >
                *blink*
                >
                Quite unbelievable.
                >
                "if (copying) master->htbl[h] = item;"
                >
                Yuck
                Why? Taken out of context. I can't see a problem.
                Oh wait, is is "debugger unfriendly"?
                You aren't complaining about the *layout* are you?

                Lurkers: Richard <unknownhas some odd ideas.

                --
                Nick Keighley

                Comment

                • James Kuyper

                  #9
                  Re: Layered Open Source Software in C

                  Nick Keighley wrote:
                  On 16 Oct, 08:44, Richard<rgr...@ gmail.comwrote:
                  >CBFalconer <cbfalco...@yah oo.comwrites:
                  >
                  <snip>
                  >
                  OP asked for "good examples of 'layered' software"
                  >
                  >>also <http://cbfalconer.home .att.net/download/hashlib.zip>
                  >*blink*
                  >>
                  >Quite unbelievable.
                  >>
                  >"if (copying) master->htbl[h] = item;"
                  >>
                  >Yuck
                  >
                  Why? Taken out of context. I can't see a problem.
                  Oh wait, is is "debugger unfriendly"?
                  You aren't complaining about the *layout* are you?
                  >
                  Lurkers: Richard <unknownhas some odd ideas.
                  If that's what Richard <unknownis complaining about, I agree with him
                  (and CBFalconer most emphatically does not). However, making this much
                  fuss about such a minor point seems an overreaction (and therefore quite
                  typical of Richard <unknown>).

                  Comment

                  • CBFalconer

                    #10
                    Re: Layered Open Source Software in C

                    Nick Keighley wrote:
                    Richard<rgr...@ gmail.comwrote:
                    >CBFalconer <cbfalco...@yah oo.comwrites:
                    >
                    <snip>
                    >
                    OP asked for "good examples of 'layered' software"
                    >
                    >>also <http://cbfalconer.home .att.net/download/hashlib.zip>
                    >>
                    >*blink*
                    >Quite unbelievable.
                    > "if (copying) master->htbl[h] = item;"
                    >Yuck
                    >
                    Why? Taken out of context. I can't see a problem.
                    Oh wait, is is "debugger unfriendly"?
                    You aren't complaining about the *layout* are you?
                    >
                    Lurkers: Richard <unknownhas some odd ideas.
                    You are answering a pure troll. This applies to both Richard the
                    lastnameless and Twinkletoes. Their only objective appears to be
                    to disturb the newsgroup.

                    --
                    [mail]: Chuck F (cbfalconer at maineline dot net)
                    [page]: <http://cbfalconer.home .att.net>
                    Try the download section.

                    Comment

                    Working...