Python Written in C?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • giveitawhril2008@gmail.com

    Python Written in C?

    I'm just learning about Python now and it sounds interesting. But I
    just read (on the Wiki page) that mainstream Python was written in C.
    That's what I was searching for: Python was written in what other
    language?

    See, my concern was something like: OK, if Python is so hot, then,
    hopefully someone is writing it in assembly language for each MPU chip
    out there. Otherwise, if, say, they've written it in C#, then it looks
    like the REAL, generally useful language to learn is C# and Python is
    akin to Visual Basic or something: a specialty language....whe reas
    REAL WORLD programmers who want to be generally useful go and learn
    C#.

    So I was suspecting the Python compiler or interpreter is written in a
    REAL language like C#. So, Wiki says it's written in C! It's almost as
    if it were an intentional trick...write your own, new language in an
    OLD, real world language that is passe. Compile it into executable
    modules of course, so it is a real, working compiler, alright. But the
    SOURCE is some old, high level language which no one wants to use
    anymore! So now you've got a hot new language package and no one can
    say "well, it is written in, the SOURCE code is written in, a REAL
    language." No, it's not! The source is some outdated language and
    compiler and no one is going to prefer learning THAT to learning your
    hot new language!

    I'm not dissing Python, here. Just noting that, if it is written in C,
    that throws a curve at me in trying to balance the value of learning
    Python vs. some other major language.
  • Erik Max Francis

    #2
    Re: Python Written in C?

    giveitawhril200 8@gmail.com wrote:
    I'm just learning about Python now and it sounds interesting. But I
    just read (on the Wiki page) that mainstream Python was written in C.
    That's what I was searching for: Python was written in what other
    language?
    >
    See, my concern was something like: OK, if Python is so hot, then,
    hopefully someone is writing it in assembly language for each MPU chip
    out there. Otherwise, if, say, they've written it in C#, then it looks
    like the REAL, generally useful language to learn is C# and Python is
    akin to Visual Basic or something: a specialty language....whe reas
    REAL WORLD programmers who want to be generally useful go and learn
    C#.
    Psst. What language do you think the primary implementations of C# is
    written in?

    --
    Erik Max Francis && max@alcyone.com && http://www.alcyone.com/max/
    San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
    The actor is not quite a human being -- but then, who is?
    -- George Sanders

    Comment

    • Mensanator

      #3
      Re: Python Written in C?

      On Jul 20, 5:50�pm, giveitawhril2.. .@gmail.com wrote:
      I'm just learning about Python now and it sounds interesting. But I
      just read (on the Wiki page) that mainstream Python was written in C.
      That's what I was searching for: Python was written in what other
      language?
      >
      See, my concern was something like: OK, if Python is so hot, then,
      hopefully someone is writing it in assembly language for each MPU chip
      out there. Otherwise, if, say, they've written it in C#, then it looks
      like the REAL, generally useful language to learn is C# and Python is
      akin to Visual Basic or something: a specialty language....whe reas
      REAL WORLD programmers who want to be generally useful go and learn
      C#.
      Python is for people who want to program, not REAL WORLD
      programmers.
      >
      So I was suspecting the Python compiler or interpreter is written in a
      REAL language like C#. So, Wiki says it's written in C! It's almost as
      if it were an intentional trick...write your own, new language in an
      OLD, real world language that is passe. Compile it into executable
      modules of course, so it is a real, working compiler, alright. But the
      SOURCE is some old, high level language
      C isn't a high level language, that's part of its problem.
      which no one wants to use
      anymore! So now you've got a hot new language package and no one can
      say "well, it is written in, the SOURCE code is written in, a REAL
      language." No, it's not! The source is some outdated language and
      compiler and no one is going to prefer learning THAT to learning your
      hot new language!
      >
      I'm not dissing Python, here.
      Yes, you are.
      Just noting that, if it is written in C,
      that throws a curve at me in trying to balance the value of learning
      Python vs. some other major language.
      Then go learn C, nobody's stopping you.

      Comment

      • Roy Smith

        #4
        Re: Python Written in C?

        In article
        <a9620c65-49c6-4fe7-9cbe-de3779ec337a@59 g2000hsb.google groups.com>,
        Mensanator <mensanator@aol .comwrote:
        C isn't a high level language, that's part of its problem.
        C is the highest level assembler language I've ever used. And I've used a
        few. It really is cool that you can add two 32-bit integers and not have
        to worry about all those carry bits.

        Comment

        • John Machin

          #5
          Re: Python Written in C?

          On Jul 21, 8:50 am, giveitawhril2.. .@gmail.com wrote:
          I'm just learning about Python now and it sounds interesting. But I
          just read (on the Wiki page) that mainstream Python was written in C.
          That's what I was searching for: Python was written in what other
          language?
          >
          See, my concern was something like: OK, if Python is so hot, then,
          hopefully someone is writing it in assembly language for each MPU chip
          out there.
          Why do that, when gcc has a code generator for just about every MPU
          chip out there?
          Otherwise, if, say, they've written it in C#, then it looks
          like the REAL, generally useful language to learn is C#
          A bit of a non sequitur .... and C# is available on how many different
          MPU chips?
          and Python is
          akin to Visual Basic
          <chuckle/>
          or something: a specialty language
          ....whereas
          REAL WORLD programmers who want to be generally useful go and learn
          C#.
          ?
          >
          So I was suspecting the Python compiler or interpreter is written in a
          REAL language like C#. So, Wiki says it's written in C! It's almost as
          if it were an intentional trick...write your own, new language in an
          OLD, real world language that is passe. Compile it into executable
          modules of course, so it is a real, working compiler, alright. But the
          SOURCE is some old, high level language which no one wants to use
          anymore!
          Nobody wants to use C any more?
          So now you've got a hot new language package and no one can
          say "well, it is written in, the SOURCE code is written in, a REAL
          language." No, it's not! The source is some outdated language and
          compiler and no one is going to prefer learning THAT to learning your
          hot new language!
          >
          I'm not dissing Python, here. Just noting that, if it is written in C,
          that throws a curve at me in trying to balance the value of learning
          Python vs. some other major language.
          It should be sublimely irrelevant to most people learning LanguageX
          what language LanguageX is written in.

          Some other implementations of Python: PyPy (written in Python), Jython
          (written in Java) and IronPython (written in C#).

          Comment

          • Carl Banks

            #6
            Re: Python Written in C?

            On Jul 20, 6:50 pm, giveitawhril2.. .@gmail.com wrote:
            I'm not dissing Python, here. Just noting that, if it is written in C,
            that throws a curve at me in trying to balance the value of learning
            Python vs. some other major language.
            I somehow doubt the Python community will feel much of a loss if you
            decide to learn some other language.


            Carl Banks

            Comment

            • Teiresias

              #7
              Re: Python Written in C?

              giveitawhril200 8@gmail.com writes:
              I'm just learning about Python now and it sounds interesting. But I
              just read (on the Wiki page) that mainstream Python was written in C.
              That's what I was searching for: Python was written in what other
              language?
              Well, yes, the interpreter and a handful of the core modules are written in C.
              However, most of Python -- especially the cool bits -- aren't written in
              C. They're written in ... Python!

              -- Teiresias

              Comment

              • Mike

                #8
                Re: Python Written in C?

                In article <fa4e498a-6bb9-4612-810f-897429fa754c@y3 8g2000hsy.googl egroups.com>, giveitawhril200 8@gmail.com wrote:
                I'm just learning about Python now and it sounds interesting. But I
                just read (on the Wiki page) that mainstream Python was written in C.
                That's what I was searching for: Python was written in what other
                language?
                C is the universal assembler.

                Mike

                Comment

                • Mensanator

                  #9
                  Re: Python Written in C?

                  On Jul 20, 7:37�pm, Roy Smith <r...@panix.com wrote:
                  In article
                  <a9620c65-49c6-4fe7-9cbe-de3779ec3...@59 g2000hsb.google groups.com>,
                  >
                  �Mensanator <mensana...@aol .comwrote:
                  C isn't a high level language, that's part of its problem.
                  >
                  C is the highest level assembler language
                  Isn't that like bragging about being the smartest
                  kid on the short bus?
                  I've ever used. �And I've used a
                  few. �It really is cool that you can add two 32-bit integers and not have
                  to worry about all those carry bits.
                  Carry bits? Who worries about carry bits when you have
                  unlimited precision arithmetic? You want cool?
                  THIS is cool:

                  j = ((invert(xyz[1]-xyz[0],xyz[1]**(k-1))*(xyz[1]**(k-1)-prev_gen[2]))
                  % xyz[1]**(k-1))/xyz[1]**(k-2)

                  Comment

                  • Stephen Johnson

                    #10
                    Re: Python Written in C?

                    Carry bits? Who worries about carry bits when you have
                    unlimited precision arithmetic? You want cool?
                    THIS is cool:
                    >
                    j = ((invert(xyz[1]-xyz[0],xyz[1]**(k-1))*(xyz[1]**(k-1)-prev_gen[2]))
                    % xyz[1]**(k-1))/xyz[1]**(k-2)
                    You call that "cool." I call it "unreadable ."

                    -Steve Johnson

                    Comment

                    • Mensanator

                      #11
                      Re: Python Written in C?

                      On Jul 20, 10:05�pm, Stephen Johnson <dior...@gmail. comwrote:
                      Carry bits? Who worries about carry bits when you have
                      unlimited precision arithmetic? You want cool?
                      THIS is cool:
                      >
                      j = ((invert(xyz[1]-xyz[0],xyz[1]**(k-1))*(xyz[1]**(k-1)-prev_gen[2]))
                      % xyz[1]**(k-1))/xyz[1]**(k-2)
                      >
                      You call that "cool." I call it "unreadable ."
                      Ok, but not in the sense that something like
                      Scheme is unreadable as this is nothing but
                      algebra (albeit complicaed).
                      >
                      -Steve Johnson

                      Comment

                      • Dan Upton

                        #12
                        Re: Python Written in C?

                        On Sun, Jul 20, 2008 at 11:51 PM, Mensanator <mensanator@aol .comwrote:
                        On Jul 20, 10:05�pm, Stephen Johnson <dior...@gmail. comwrote:
                        Carry bits? Who worries about carry bits when you have
                        unlimited precision arithmetic? You want cool?
                        THIS is cool:
                        >>
                        j = ((invert(xyz[1]-xyz[0],xyz[1]**(k-1))*(xyz[1]**(k-1)-prev_gen[2]))
                        % xyz[1]**(k-1))/xyz[1]**(k-2)
                        >>
                        >You call that "cool." I call it "unreadable ."
                        >
                        Ok, but not in the sense that something like
                        Scheme is unreadable as this is nothing but
                        algebra (albeit complicaed).
                        >
                        Scheme doesn't *have* to be unreadable... any more unreadable than any
                        other language when poorly documented/formatted, anyway.

                        Comment

                        • Michael Torrie

                          #13
                          Re: Python Written in C?

                          Mensanator wrote:
                          On Jul 20, 7:37�pm, Roy Smith <r...@panix.com wrote:
                          >In article
                          ><a9620c65-49c6-4fe7-9cbe-de3779ec3...@59 g2000hsb.google groups.com>,
                          >>
                          >�Mensanato r <mensana...@aol .comwrote:
                          >>C isn't a high level language, that's part of its problem.
                          >C is the highest level assembler language
                          >
                          Isn't that like bragging about being the smartest
                          kid on the short bus?
                          >
                          >I've ever used. �And I've used a
                          >few. �It really is cool that you can add two 32-bit integers and not have
                          >to worry about all those carry bits.
                          >
                          Carry bits? Who worries about carry bits when you have
                          unlimited precision arithmetic? You want cool?
                          Perhaps you missed the wonderful humor in Roy's post. It was rather
                          brilliant. Sorry you missed it.

                          Comment

                          • Michael Torrie

                            #14
                            Re: Python Written in C?

                            giveitawhril200 8@gmail.com wrote:
                            I'm not dissing Python, here. Just noting that, if it is written in C,
                            that throws a curve at me in trying to balance the value of learning
                            Python vs. some other major language.
                            Definitely one of the most non-sequitor statements I have ever heard.
                            Actually your entire post doesn't make much sense. Maybe you are a
                            brother bot to castropini? Perhaps a less-trained one, although none of
                            castropini's posts seem to make sense either. The AI needs a bit of work.

                            I am very confused over your incoherent ramblings about C# being some
                            how more real than C, or Python, or Visual Basic, or any other language.
                            I fail to grasp what connection the syntax of a language has to do with
                            anything being real or not. You first say you hope someone was writing
                            optimized assembly for python on the different platforms (I'm not
                            familiar with the acronym "MPU.") and then go on to say it should have
                            been written with C#. I'm confused as to what C# has to do with
                            optimized, platform-specific assembly.

                            Comment

                            • Mensanator

                              #15
                              Re: Python Written in C?

                              On Jul 20, 11:08 pm, "Dan Upton" <up...@virginia .eduwrote:
                              On Sun, Jul 20, 2008 at 11:51 PM, Mensanator <mensana...@aol .comwrote:
                              On Jul 20, 10:05�pm, Stephen Johnson <dior...@gmail. comwrote:
                              Carry bits? Who worries about carry bits when you have
                              unlimited precision arithmetic? You want cool?
                              THIS is cool:
                              >
                              j = ((invert(xyz[1]-xyz[0],xyz[1]**(k-1))*(xyz[1]**(k-1)-prev_gen[2]))
                              % xyz[1]**(k-1))/xyz[1]**(k-2)
                              >
                              You call that "cool." I call it "unreadable ."
                              >
                              Ok, but not in the sense that something like
                              Scheme is unreadable as this is nothing but
                              algebra (albeit complicaed).
                              >
                              Scheme doesn't *have* to be unreadable... any more unreadable than any
                              other language when poorly documented/formatted, anyway.
                              When I needed to whip up a variation on Ulam's
                              Spiral recently, I went and got the Scheme version
                              I wrote 4 years ago when I briefly toyed with Scheme
                              and thought I'd just translate the plotting part to
                              Python. Couldn't make any sense of it and ended up
                              doing the Python version with Turtle Graphics.

                              Comment

                              Working...