Re: Parsing of a file

2008-08-06 Thread Henrique Dante de Almeida
On Aug 6, 3:55 pm, Tommy Grav <[EMAIL PROTECTED]> wrote: > I have a file with the format > > Field f29227: Ra=20:23:46.54 Dec=+67:30:00.0 MJD=53370.06797690 Frames   > 5 Set 1 > Field f31448: Ra=20:24:58.13 Dec=+79:39:43.9 MJD=53370.06811620 Frames   > 5 Set 2 > Field f31226: Ra=20:24:45.50 Dec=+78

Re: Parsing VHDL with python, where to start.

2008-07-29 Thread Henrique Dante de Almeida
On Jul 29, 11:23 pm, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > On Jul 28, 6:49 pm, Svenn Are Bjerkem <[EMAIL PROTECTED]> > wrote: > > > > > Hi again, > > > when I get far enough to parse the VHDL (which is not currently the > > fact, but

Re: Parsing VHDL with python, where to start.

2008-07-29 Thread Henrique Dante de Almeida
On Jul 28, 6:49 pm, Svenn Are Bjerkem <[EMAIL PROTECTED]> wrote: > Hi again, > > when I get far enough to parse the VHDL (which is not currently the > fact, but I have to look at the work coming up downstream) I will have > to put it into an internal data structure and then write some classes > to

Re: Best way to modify code without breaking stuff.

2008-06-04 Thread Henrique Dante de Almeida
On Jun 4, 4:44 am, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > On Wed, 04 Jun 2008 00:25:19 -0700, Jesse Aldridge wrote: > > I've got a module that I use regularly.  I want to make some extensive > > changes to this module but I want all of the programs that depend on the > > module to keep workin

Re: SPOJ, Problem Code: sumtrian, Reducing time taken to solve.

2008-06-01 Thread Henrique Dante de Almeida
On Jun 1, 10:25 am, Shriphani <[EMAIL PROTECTED]> wrote: > Hi, > > I was trying to solve the sumtrian problem in the SPOJ problem set > (https://www.spoj.pl/problems/SUMTRIAN/) and this is the solution I > submitted:http://pastebin.ca/1035867 > > The result was, "Your solution from 2008-06-01 15:13

Re: definition of a highlevel language?

2008-05-30 Thread Henrique Dante de Almeida
On May 26, 6:06 pm, Paul Miller <[EMAIL PROTECTED]> wrote: > On Mon, 26 May 2008 15:49:33 -0400, Dan Upton wrote: > > On Mon, May 26, 2008 at 3:22 PM,  <[EMAIL PROTECTED]> wrote: > > I don't know if it would necessarily look like the CPython VM, except > > for the decode stage (this being said with

Re: definition of a highlevel language?

2008-05-27 Thread Henrique Dante de Almeida
On May 26, 3:34 pm, [EMAIL PROTECTED] wrote: > > what is the definition of a highlevel-language? > There's no formal definition of high level language. Thus, the following are true: 1) You can safely treat it as buzzword 2) You can't formally define a level hierarchy of languages 3) You can't

Re: Bug in floating-point addition: is anyone else seeing this?

2008-05-22 Thread Henrique Dante de Almeida
On May 22, 6:09 am, Ross Ridge <[EMAIL PROTECTED]> wrote: > Henrique Dante de Almeida  <[EMAIL PROTECTED]> wrote: > > > Finally (and the answer is obvious). 387 breaks the standards and > >doesn't use IEEE double precision when requested to do so. > > A

Re: Bug in floating-point addition: is anyone else seeing this?

2008-05-21 Thread Henrique Dante de Almeida
On May 22, 1:41 am, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > > > >  Notice that 1e16-1 doesn't exist in IEEE double precision: > > >  1e16-2 == 0x1.1c37937e07fffp+53 > > >  1e16 == 0x1.1c37937e08p+53 > > > >  (that is, the hex repr

Re: Bug in floating-point addition: is anyone else seeing this?

2008-05-21 Thread Henrique Dante de Almeida
On May 22, 1:36 am, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > On May 22, 1:26 am, Henrique Dante de Almeida <[EMAIL PROTECTED]> > wrote: > > > > > On May 21, 3:38 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > > >>> a = 1e16-

Re: Bug in floating-point addition: is anyone else seeing this?

2008-05-21 Thread Henrique Dante de Almeida
On May 22, 1:26 am, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > On May 21, 3:38 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > >>> a = 1e16-2. > > >>> a > > 9998.0 > > >>> a+0.999     # gives expecte

Re: Bug in floating-point addition: is anyone else seeing this?

2008-05-21 Thread Henrique Dante de Almeida
On May 21, 3:38 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: >>> a = 1e16-2. > >>> a > 9998.0 > >>> a+0.999     # gives expected result > 9998.0 > >>> a+0.   # doesn't round correctly. > > 1.0 Notice that 1e16-1 doesn't exist in IEEE double precision:

Re: Using Python for programming algorithms

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 5:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > There's at least one (possibly incomplete) C interpreter. FWIW, it > would not be harder (and possibly simpler) to write a byte-code+VM > based C implementation than it is to write CPython, Jython or You may (right now, readily,

Re: Using Python for programming algorithms

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 5:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 19 mai, 17:53, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > > (snip) > > >  Yes, I was actually referring to statically typed JIT-compiled > > languages. Sorry about t

Re: Using Python for programming algorithms

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 5:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >  The situation would be simpler if there were good well-known toolkits > > for optimization in python (like numpy for matrix operations), but > > that's not the case. > > There's at least Psyco (if you're willing and able to res

Re: Using Python for programming algorithms

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 3:07 pm, Vicent Giner <[EMAIL PROTECTED]> wrote: > > Yes, of course, but that should mean that I have to do it better, in > the programming step (I would have to re-program or re-implement my > algorithm). And I think the problem would be the same in any other > language, wouldn't it?

Re: Using Python for programming algorithms

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 7:03 am, Bruno Desthuilliers wrote: > Vicent Giner a écrit : > > > Hello. > > > I am new to Python. It seems a very interesting language to me. Its > > simplicity is very attractive. > > > However, it is usually said that Python is not a compiled but > > interpreted programming language

Re: Using Python for programming algorithms

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 6:52 am, Bruno Desthuilliers wrote: > Henrique Dante de Almeida a écrit : > > > On May 17, 7:32 pm, Vicent Giner <[EMAIL PROTECTED]> wrote: > >> Hello. > > (snip) > >> However, it is usually said that Python is not a compiled but > >>

Re: TPCServer and xdrlib

2008-05-19 Thread Henrique Dante de Almeida
On May 19, 10:28 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > I don't think that it is important. But if you are interested: > > - yes, the server will probably be I/O bound, not CPU bound > - I'm have experience with thread programming, but not with twisted That part was just to show you that

Re: Using Python for programming algorithms

2008-05-17 Thread Henrique Dante de Almeida
On May 17, 7:32 pm, Vicent Giner <[EMAIL PROTECTED]> wrote: > Hello. > > I am new to Python. It seems a very interesting language to me. Its > simplicity is very attractive. > > However, it is usually said that Python is not a compiled but > interpreted programming language —I mean, it is not like

Re: writing python extensions in assembly

2008-05-16 Thread Henrique Dante de Almeida
> > yeah I don't know much about that,  I was figuring perhaps I could limit the > assembler parts / methodology to something I could write generically > enough.. and if all else fails write for the other OS's or only support > windows.   also I think I should be using SIMD of some sort, and I'm no

Re: TPCServer and xdrlib

2008-05-16 Thread Henrique Dante de Almeida
On May 16, 9:26 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >  Did you consider gzipping your XML (or YAML) packets ? Would the > > transfer time be acceptable in this case ? > > That would add even more to the overhead of transcoding the > transportlayer. Switching from XMLRPC to a json-ba

Re: TPCServer and xdrlib

2008-05-16 Thread Henrique Dante de Almeida
On May 16, 7:16 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote: >   Hi All, Hello, :-) > > I'm trying to write a multi threaded TPC server. I have used xmlrpc How exactly did you come to the conclusion that your server must be multi threaded ? > - I have to send larger amounts of data, the overhe

Re: exists=false, but no complaint when i open it!?

2008-05-15 Thread Henrique Dante de Almeida
Em Thu, 15 May 2008 19:20:58 +0200, Andreas Tawn escreveu: >>print os.path.exists('C:\Users\saftarn\Desktop\NetFlixDataSet >>\training_set') returns False... >> >>i have thourogly checked the filename to be correct and if we assume it >>is what could this mean then? >>i had a problem one other tim

Re: pyserial and file open conflict?

2008-05-15 Thread Henrique Dante de Almeida
Em Thu, 15 May 2008 08:03:40 -0700, p.wallstedt escreveu: > Hi all! > > I have a small but rather annoying problem with pyserial. I want to open > a file on disk for reading and then open a com-port, write lines from > the file to the port and then read something back and compare it to the > next

Re: Usenet

2008-05-14 Thread Henrique Dante de Almeida
Em Wed, 14 May 2008 10:01:40 -0700, castironpi escreveu: > On May 14, 11:58 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > Love them opticals. Testing. :-P -- http://mail.python.org/mailman/listinfo/python-list