Re: Is there any way for a program to choose between 32 bit or 64-bit python dynamically?

2009-03-20 Thread Chris Rebert
On Fri, Mar 20, 2009 at 6:28 AM, srinivasan srinivas wrote: > > Hi, > Is thera any way for a program to choose between 32-bit or 64-bit dynamically? Doubt it, since it's set in stone from when your CPython interpreter got compiled. There may be some workaround to use 32bit libs

Is there any way for a program to choose between 32 bit or 64-bit python dynamically?

2009-03-20 Thread srinivasan srinivas
Hi, Is thera any way for a program to choose between 32-bit or 64-bit dynamically? Thanks, Srini Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -- http://mail.python.org/mailman/listinfo/python-list

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 18, 10:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 18, 3:02 am, Phil Hobbs > > <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > > That was suggested. Problem is, that sometimes the velocities are near > > > zero. So this solution, by itself, is not general eno

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 18, 3:02 am, Phil Hobbs <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > That was suggested. Problem is, that sometimes the velocities are near > > zero. So this solution, by itself, is not general enough. > > Are you sure?  I sort of doubt that you're spending zillions of > itera

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 18, 7:12 pm, Peter Pearson <[EMAIL PROTECTED]> wrote: > On Tue, 17 Jun 2008 08:13:40 -0400, Phil Hobbs wrote: > > [EMAIL PROTECTED] wrote: > [snip] > >> I have a physical system set up in which a body is supposed to > >> accelerate and to get very close to lightspeed, while never really > >>

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 17, 5:04 pm, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >That was suggested. Problem is, that sometimes the velocities are near > >zero. So this solution, by itself, is not general enough. > > Maybe working in p, and delt

Re: 32 bit or 64 bit?

2008-06-18 Thread Peter Pearson
On Tue, 17 Jun 2008 08:13:40 -0400, Phil Hobbs wrote: > [EMAIL PROTECTED] wrote: [snip] >> I have a physical system set up in which a body is supposed to >> accelerate and to get very close to lightspeed, while never really >> attaining it. After approx. 680 seconds, Python gets stuck and tells >>

Re: 32 bit or 64 bit?

2008-06-17 Thread Phil Hobbs
[EMAIL PROTECTED] wrote: That was suggested. Problem is, that sometimes the velocities are near zero. So this solution, by itself, is not general enough. Are you sure? I sort of doubt that you're spending zillions of iterations getting closer and closer to zero. It would be worth actually

Re: 32 bit or 64 bit?

2008-06-17 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >That was suggested. Problem is, that sometimes the velocities are near >zero. So this solution, by itself, is not general enough. Maybe working in p, and delta-p would be more stable. -- http://mail.python.org/mailman/listinfo/pyth

Re: 32 bit or 64 bit?

2008-06-17 Thread [EMAIL PROTECTED]
On Jun 17, 3:13 pm, Phil Hobbs <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: > > I do need speed. Is there an option? > >>

Re: 32 bit or 64 bit?

2008-06-17 Thread Phil Hobbs
[EMAIL PROTECTED] wrote: On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: I do need speed. Is there an option? Mind telling us what you *actually* want to achieve? (What do you want to calcula

Re: 32 bit or 64 bit?

2008-06-16 Thread [EMAIL PROTECTED]
On Jun 16, 12:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 15, 11:30 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > > > > > [EMAIL PROTECTED] wrote: > > > I have a physical system set up in which a body is supposed to > > > accelerate and to get very close to lightspeed, while

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 11:30 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have a physical system set up in which a body is supposed to > > accelerate and to get very close to lightspeed, while never really > > attaining it. After approx. 680 seconds, Python gets stuck and te

Re: 32 bit or 64 bit?

2008-06-15 Thread Christian Heimes
[EMAIL PROTECTED] wrote: > I have a physical system set up in which a body is supposed to > accelerate and to get very close to lightspeed, while never really > attaining it. After approx. 680 seconds, Python gets stuck and tells > me the object has passed lightspeed. I put the same equations in >

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 9:41 pm, Mensanator <[EMAIL PROTECTED]> wrote: > On Jun 15, 12:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED] wrote: > > > > On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]>

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 9:31 pm, casevh <[EMAIL PROTECTED]> wrote: > > Not yet: I was kind of set back when I saw their homepage was last > > updated 2002. But I'll give it a try. You think it's the best thing > > there is? > > > Thanks, > > Ram. > > gmpy has moved to Google. > > http://code.google.com/p/gmpy/

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 8:52 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have a physical system set up in which a body is supposed to > > accelerate and to get very close to lightspeed, while never really > > attaining it. After approx. 680 seconds, Python gets stuck and tells >

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 10:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > |> How did you determine that standard python floats are not good enough? > > | I have a physical system set up in which a body is supposed to > | accelerate and to get

Re: 32 bit or 64 bit?

2008-06-15 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |> How did you determine that standard python floats are not good enough? | I have a physical system set up in which a body is supposed to | accelerate and to get very close to lightspeed, while never really |attaining it. Just a thoug

Re: 32 bit or 64 bit?

2008-06-15 Thread Mensanator
On Jun 15, 12:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > > > On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: > > >> > I do need speed. Is there an option? > > > >> Mind telling

Re: 32 bit or 64 bit?

2008-06-15 Thread casevh
> Not yet: I was kind of set back when I saw their homepage was last > updated 2002. But I'll give it a try. You think it's the best thing > there is? > > Thanks, > Ram. gmpy has moved to Google. http://code.google.com/p/gmpy/ gmpy only support the basic floating point operations so it may not b

Re: 32 bit or 64 bit?

2008-06-15 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I have a physical system set up in which a body is supposed to > accelerate and to get very close to lightspeed, while never really > attaining it. After approx. 680 seconds, Python gets stuck and tells > me the object has passed lightspeed. I put the same equations in >

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: > >> > I do need speed. Is there an option? > > >> Mind telling us what you *actually* want to achieve? (What do you want to > >> calculate?) >

Re: 32 bit or 64 bit?

2008-06-15 Thread Christian Meesters
Peter Otten wrote: > > How did you determine that standard python floats are not good enough? > Everything beyond that is unlikely to be supported by the hardware and > will therefore introduce a speed penalty. > > Did you try gmpy? I would like to add: If Python's precision (or that of additiona

Re: 32 bit or 64 bit?

2008-06-15 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: >> > I do need speed. Is there an option? >> >> Mind telling us what you *actually* want to achieve? (What do you want to >> calculate?) >> >> Christian > > Physical simulations of objects with near-light

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: > > I do need speed. Is there an option? > > Mind telling us what you *actually* want to achieve? (What do you want to > calculate?) > > Christian Physical simulations of objects with near-lightspeed velocity. -- http://mail.python.

Re: 32 bit or 64 bit?

2008-06-15 Thread Christian Meesters
> I do need speed. Is there an option? Mind telling us what you *actually* want to achieve? (What do you want to calculate?) Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 5:05 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Does it mean that even now it does arithmetic in 64 bit? > > I'm not getting enough precision. Is there any way to increase it? > > Buy a good book about numerics or take a course. ;) > > Seriously, compu

Re: 32 bit or 64 bit?

2008-06-15 Thread Christian Heimes
[EMAIL PROTECTED] wrote: > Does it mean that even now it does arithmetic in 64 bit? > I'm not getting enough precision. Is there any way to increase it? Buy a good book about numerics or take a course. ;) Seriously, computers and IEEE 754 floating point numbers have a lot of pit falls. If you cho

Re: 32 bit or 64 bit?

2008-06-15 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On Jun 15, 2:48 pm, Peter Otten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > Quick question: >> > I have python code that does a lot of floating point arithmetic. How >> > do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If >> > I'll instal

Re: 32 bit or 64 bit?

2008-06-15 Thread Benjamin Kaplan
On Sun, Jun 15, 2008 at 8:02 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Jun 15, 2:48 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > Quick question: > > > I have python code that does a lot of floating point arithmetic. How > > > do I make it do the arithme

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 2:48 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Quick question: > > I have python code that does a lot of floating point arithmetic. How > > do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If > > I'll install a 64-bit operating system, will

Re: 32 bit or 64 bit?

2008-06-15 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Quick question: > I have python code that does a lot of floating point arithmetic. How > do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If > I'll install a 64-bit operating system, will that do the trick? The Python float type uses a C double internall

32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
Quick question: I have python code that does a lot of floating point arithmetic. How do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If I'll install a 64-bit operating system, will that do the trick? -- http://mail.python.org/mailman/listinfo/python-list