Why not a Python compiler?

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

    #31
    Re: Why not a Python compiler?

    On 2008-02-08, Arnaud Delobelle <arnodel@google mail.comwrote:
    >the compiler could do little else except translate it to something
    >like:
    >>
    >(python:add a b)
    [snip more interesting considerations about compiling python]
    >
    Please get back on topic. This discussion is about parsecs and
    wookies now.
    What's a "wookie" a unit of?

    --
    Grant Edwards grante Yow! Am I accompanied by a
    at PARENT or GUARDIAN?
    visi.com

    Comment

    • Jeff Schwab

      #32
      Re: Why not a Python compiler?

      Grant Edwards wrote:
      On 2008-02-08, Arnaud Delobelle <arnodel@google mail.comwrote:
      >
      >>the compiler could do little else except translate it to something
      >>like:
      >>>
      >>(python:add a b)
      >[snip more interesting considerations about compiling python]
      >>
      >Please get back on topic. This discussion is about parsecs and
      >wookies now.
      >
      What's a "wookie" a unit of?
      Fur.

      Comment

      • Lou Pecora

        #33
        Re: OT: Star Wars and parsecs [was Re: Why not a Python compiler?]

        In article <13qotf2mgpvkoa c@corp.supernew s.com>,
        Grant Edwards <grante@visi.co mwrote:
        On 2008-02-08, Dennis Lee Bieber <wlfraed@ix.net com.comwrote:
        >
        A Parsec is a fixed value (which, admittedly, presumes the culture
        developed a 360degree circle broken into degrees =minutes =>
        seconds... or, at least, some units compatible with the concept of an
        "arc second", like 400 grads of, say, 100 "minutes", each of 100
        "seconds")
        >
        It also presumes a standard diamter of that circle.
        Which is the Earth's orbit. So, long, long ago in a galaxy far, far
        away did they know about the Earth and decide to use it as the basis for
        length in the universe? Even before people on earth defined it?

        Or (ominous music builds here, switch to low voice) is it as some now
        contend? We are the decendents of a long, lost civilization who
        colonized Earth and used it as a base for their operations to the point
        of adopting it as their own home?

        .... You Betcha!



        :-)

        --
        -- Lou Pecora

        Comment

        • Steve Holden

          #34
          Re: Why not a Python compiler?

          Grant Edwards wrote:
          On 2008-02-08, Arnaud Delobelle <arnodel@google mail.comwrote:
          >
          >>the compiler could do little else except translate it to something
          >>like:
          >>>
          >>(python:add a b)
          >[snip more interesting considerations about compiling python]
          >>
          >Please get back on topic. This discussion is about parsecs and
          >wookies now.
          >
          What's a "wookie" a unit of?
          >
          A wookie is someone who's onwy just joined a team and hasn't pwayed vewy
          much.

          regards
          Steve
          --
          Steve Holden +1 571 484 6266 +1 800 494 3119
          Holden Web LLC http://www.holdenweb.com/

          Comment

          • Marc 'BlackJack' Rintsch

            #35
            Re: Why not a Python compiler?

            On Fri, 08 Feb 2008 05:12:29 -0800, Ryszard Szopa wrote:
            Expressing simple loops as C for loops...
            You mean simple loops like ``for i in xrange(1000):`` ? How should the
            compiler know what object is bound to the name `xrange` when that loop is
            executed?

            Ciao,
            Marc 'BlackJack' Rintsch

            Comment

            • Marc 'BlackJack' Rintsch

              #36
              Re: Why not a Python compiler?

              On Fri, 08 Feb 2008 17:45:36 +0000, Grant Edwards wrote:
              On 2008-02-08, Arnaud Delobelle <arnodel@google mail.comwrote:
              >
              >Please get back on topic. This discussion is about parsecs and
              >wookies now.
              >
              What's a "wookie" a unit of?
              The degree of confusion among the jury when using the Chewbacca defense. :-)



              Ciao,
              Marc 'BlackJack' Rintsch

              Comment

              • =?ISO-8859-1?Q?Luis_M._Gonz=E1lez?=

                #37
                Re: Why not a Python compiler?

                On 8 feb, 22:15, Marc 'BlackJack' Rintsch <bj_...@gmx.net wrote:
                On Fri, 08 Feb 2008 17:45:36 +0000, Grant Edwards wrote:
                On 2008-02-08, Arnaud Delobelle <arno...@google mail.comwrote:
                >
                Please get back on topic. This discussion is about parsecs and
                wookies now.
                >
                What's a "wookie" a unit of?
                >
                The degree of confusion among the jury when using the Chewbacca defense. :-)
                >

                >
                Ciao,
                Marc 'BlackJack' Rintsch

                You are all a bunch of pathetic geeks with your nerdy lingo.
                All of you should be frozen in carbonite and sold to a Hutt...

                Comment

                • Jeff Schwab

                  #38
                  Re: Why not a Python compiler?

                  Luis M. González wrote:
                  On 8 feb, 22:15, Marc 'BlackJack' Rintsch <bj_...@gmx.net wrote:
                  >On Fri, 08 Feb 2008 17:45:36 +0000, Grant Edwards wrote:
                  >>On 2008-02-08, Arnaud Delobelle <arno...@google mail.comwrote:
                  >>>Please get back on topic. This discussion is about parsecs and
                  >>>wookies now.
                  >>What's a "wookie" a unit of?
                  >The degree of confusion among the jury when using the Chewbacca defense. :-)
                  >>
                  >http://en.wikipedia.org/wiki/Chewbacca_defense
                  >>
                  >Ciao,
                  > Marc 'BlackJack' Rintsch
                  >
                  >
                  You are all a bunch of pathetic geeks with your nerdy lingo.
                  All of you should be frozen in carbonite and sold to a Hutt...
                  Ahhh, *you* must be the one who found time to write that Wikipedia
                  article on the Chewbacca defense.

                  Comment

                  • Martin P. Hellwig

                    #39
                    Re: OT: Speed of light [was Re: Why not a Python compiler?]

                    Steven D'Aprano wrote:
                    On Wed, 06 Feb 2008 10:14:10 -0600, Reedick, Andrew wrote:
                    >
                    >>>'c' is also the speed of light.
                    >>'c' is the speed of light _in_a_vacuum_.
                    >True.
                    >>
                    >>
                    >>>And since nothing can travel faster than light...
                    >>Nothing can travel faster than the speed of light _in_a_vacuum_. There
                    >>are situtaitons where things can (and regularly do) travel faster than
                    >>light: http://en.wikipedia.org/wiki/Cherenkov_radiation
                    >>
                    >Nope. It propagates, not travels, faster than light. Go ask a
                    >physicist to explain it. It's odd...
                    >
                    Propagate, travel, what's the difference?
                    >
                    Unfortunately, I didn't study any of this but I sure do remember the
                    answer one drunk physic said to me in a bar when I ask him the question:
                    "Does light travel or propagate?"
                    He answered: "Depends on how you see light."
                    He must have studied philosophy too :-)
                    <cut rest>
                    --
                    mph

                    Comment

                    • Thomas Dybdahl Ahle

                      #40
                      Re: OT: Speed of light [was Re: Why not a Python compiler?]


                      On Sat, 2008-02-09 at 14:56 +0100, Martin P. Hellwig wrote:
                      Propagate, travel, what's the difference?
                      Unfortunately, I didn't study any of this but I sure do remember the
                      answer one drunk physic said to me in a bar when I ask him the question:
                      "Does light travel or propagate?"
                      He answered: "Depends on how you see light."
                      He must have studied philosophy too :-)
                      Quantum mechanics are closely related to philosophy.

                      --
                      Best Regards,
                      Med Venlig Hilsen,
                      Thomas

                      Comment

                      • Doug Morse

                        #41
                        Re: OT: Speed of light [was Re: Why not a Python compiler?]

                        So, showing of my physics ignorance: I presume then that this means that
                        light, say from the sun, is actually sending particles to the earth, since the
                        space between is mostly vacuum? Or is there enough material in the
                        near-vacuum of space for propogation to occur?


                        On Sat, 09 Feb 2008 12:25:51 -0800, Dennis Lee Bieber <wlfraed@ix.net com.com>
                        wrote:
                        ...
                        Or just the old particle/wave dichotomy... particles travel, waves
                        propagate (that is, the wave form -- crest/dip -- changes position, but
                        the material of the medium it is in just jiggles in place).

                        Comment

                        • Jeff Schwab

                          #42
                          Re: OT: Speed of light [was Re: Why not a Python compiler?]

                          Grant Edwards wrote:
                          On 2008-02-09, Thomas Dybdahl Ahle <lobais@gmail.c omwrote:
                          >On Sat, 2008-02-09 at 14:56 +0100, Martin P. Hellwig wrote:
                          >>>Propagate, travel, what's the difference?
                          >>>>
                          >>Unfortunately , I didn't study any of this but I sure do remember the
                          >>answer one drunk physic said to me in a bar when I ask him the question:
                          >>"Does light travel or propagate?"
                          >>He answered: "Depends on how you see light."
                          >>He must have studied philosophy too :-)
                          >Quantum mechanics are closely related to philosophy.
                          >
                          I've never understood that claim. You can philosophize about
                          anything: biology, math, weather, the stars, the moon, and so
                          on. I don't see how QM is any more related to philosophy than
                          any other field in science.
                          Any science with sufficient room for uncertainty (no pun) will
                          immediately be claimed as evidence for every pseudo-theory ever imagined
                          over a bowl of bad weed. "Particles can tunnel anywhere? Ahh, that
                          must be how the telepaths are doing it."

                          Comment

                          • Bjoern Schliessmann

                            #43
                            Re: OT: Star Wars and parsecs

                            Lou Pecora wrote:
                            [parsecs]
                            Which is the Earth's orbit. So, long, long ago in a galaxy far,
                            far away did they know about the Earth and decide to use it as the
                            basis for length in the universe? Even before people on earth
                            defined it?
                            No, even simpler: In the Star Wars galaxy, parsec is a time unit. We
                            on earth just accidentally defined a unit with exactly the same
                            name -- which is a distance unit instead. :)

                            Regards,


                            Björn

                            --
                            BOFH excuse #167:

                            excessive collisions & not enough packet ambulances

                            Comment

                            • mensanator@aol.com

                              #44
                              Re: OT: Star Wars and parsecs [was Re: Why not a Python compiler?]

                              On Feb 8, 2:53�pm, Lou Pecora <pec...@anvil.n rl.navy.milwrot e:
                              In article <13qotf2mgpvk.. .@corp.supernew s.com>,
                              �Grant Edwards <gra...@visi.co mwrote:
                              >
                              On 2008-02-08, Dennis Lee Bieber <wlfr...@ix.net com.comwrote:
                              >
                              � � � A Parsec is a fixed value (which, admittedly, presumes the culture
                              developed a 360degree circle broken into degrees =minutes =>
                              seconds... or, at least, some units compatible with the concept of an
                              "arc second", like 400 grads of, say, 100 "minutes", each of 100
                              "seconds")
                              >
                              It also presumes a standard diamter of that circle.
                              >
                              Which is the Earth's orbit. �So, long, long ago in a galaxy far, far
                              away did they know about the Earth and decide to use it as the basis for
                              length in the universe? �Even before people on earth defined it? �
                              >
                              Or (ominous music builds here, switch to low voice) is it as some now
                              contend? �We are the decendents of a long, lost civilization who
                              colonized Earth and used it as a base for their operations to the point
                              of adopting it as their own home?
                              >
                              ... �You Betcha!
                              >
                              :-)
                              How come they spoke English?
                              >
                              --
                              -- Lou Pecora

                              Comment

                              • mani

                                #45
                                Re: Why not a Python compiler?

                                On Feb 6, 2:43 am, "Luis M. González" <luis...@gmail. comwrote:
                                On 5 feb, 05:19, Santiago Romero <srom...@gmail. comwrote:
                                >
                                >
                                >
                                ( Surely if this question has been asked for a zillion of times... )
                                ( and sorry for my english! )
                                >
                                I'm impressed with python. I'm very happy with the language and I
                                find Python+Pygame a very powerful and productive way of writing 2D
                                games. I'm not, at this moment, worried about execution speed of the
                                small game I'm working on (it runs at full 60 fps even in an old AMD-
                                K6 450 Laptop computer), but I continue asking me the same question:
                                >
                                Why not a Python COMPILER?
                                >
                                It would be very nice to be able to output Linux, MAC or Windows
                                binaries of compiled (not bytecompiled) code. It would run faster, it
                                will be smaller in size (I think) and it will be easy to distribute to
                                people not having python installed. Yes, I know about py2exe, but I'm
                                not sure if that's the right aproach.
                                >
                                So, what's wrong with compiling python?
                                >
                                Maybe is not possible due to nature of the language? Is just a
                                decision?
                                >
                                What do you think about this?
                                >
                                There are some projects aimed to speed up Python by a large margin.
                                Right now you can use psyco, which is considered to be feature
                                complete, and whose future relies on the Pypy project.
                                >
                                Pypy is a very ambitious project and it aims, amongst many other
                                goals, to provide a fast just-in-time python implementation.
                                They even say that the "secret goal is being faster than c, which is
                                nonsense, isn´t it?" (I still didn´t get the joke though...).
                                >
                                And finally, you have ShedSkin, a project developed by one lonely and
                                heroic coder (Mark Dufour).
                                Shedskin aims at being a static python compiler, which can translate a
                                subset of python to stand alone executables.
                                It also can compile extension modules for cpython.
                                It works by translating python to c++ and then to machine code.
                                The python code must be done in a static way (getting rid of dynamic
                                features like, for example, not asigning different types to the same
                                variable).
                                >
                                Luis
                                and Take a look at this page if you look for a plan to develop a fast
                                python program, you wont regret it.


                                Mani

                                Comment

                                Working...