[wingide-users] RE: wingide-users Digest, Vol 10, Issue 9

Randall Young rsyoung at tigerpaw.com
Thu Feb 24 12:28:19 EST 2005


Sir,

I'm wondering if the new Visual C++ 2003 toolkit might work for you.

There's a free SDK debugger available as well for Win32 from MS now.

Rando

-----Original Message-----
From: wingide-users-bounces at wingware.com
[mailto:wingide-users-bounces at wingware.com]On Behalf Of
wingide-users-request at wingware.com
Sent: Thursday, February 24, 2005 11:00 AM
To: wingide-users at wingware.com
Subject: wingide-users Digest, Vol 10, Issue 9


Send wingide-users mailing list submissions to
	wingide-users at wingware.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://wingware.com/mailman/listinfo/wingide-users
or, via email, send a message with subject or body 'help' to
	wingide-users-request at wingware.com

You can reach the person managing the list at
	wingide-users-owner at wingware.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of wingide-users digest..."


Today's Topics:

   1. Best environment for Python/C development (gary.h.merrill at GSK.COM)
   2. Re: Best environment for Python/C development (Wing IDE Support)


----------------------------------------------------------------------

Message: 1
Date: Thu, 24 Feb 2005 09:40:44 -0500
From: gary.h.merrill at GSK.COM
Subject: [wingide-users] Best environment for Python/C development
To: wingide-users at wingide.com
Message-ID:
	<OF847D7ED7.76FE7AF7-ON85256FB2.004FF803-85256FB2.00509FF3 at glaxo.com>
Content-Type: text/plain; charset="us-ascii"

This is one of those horrible "What is the best ...?"  questions that of
course have no unique answer.  But I'd appreciate some feedback based on
experience.

I'm finally at the point where I need to implement some things in C since
the Python implementations are *way* too slow.  I'd like to be able to
debug my combined Python and C code as straightforwardly as possible.  I
gather that this can be done via a route using wingstub, and I can
probably figure out the details of that since I've used wingstub before to
debug spawned processes.

My question is this:  Assuming development on and for Windows, what C
development environment seems best for this sort of thing?  I've got (a)
Borland V6 -- which I am starting to find pretty irritating since it
want's to crash in some circumstances and I don't think much of its data
display features, and (b) MS Visual .Net  (2003) which I've rather
studiously avoided for a couple of years because its complexity somewhat
bewilders me.

Any experience or thoughts on this?  Would something like CodeWarrier be a
better choice?

--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
/pipermail/wingide-users/attachments/20050224/7f596325/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 24 Feb 2005 10:48:16 -0500 (EST)
From: Wing IDE Support <support at wingware.com>
Subject: Re: [wingide-users] Best environment for Python/C development
To: gary.h.merrill at GSK.COM
Cc: wingide-users at wingide.com
Message-ID: <Pine.LNX.4.50.0502241029160.3181-100000 at hedgehog>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 24 Feb 2005 gary.h.merrill at GSK.COM wrote:
> This is one of those horrible "What is the best ...?"  questions that of
> course have no unique answer.  But I'd appreciate some feedback based on
> experience.
>
> I'm finally at the point where I need to implement some things in C since
> the Python implementations are *way* too slow.  I'd like to be able to
> debug my combined Python and C code as straightforwardly as possible.  I
> gather that this can be done via a route using wingstub, and I can
> probably figure out the details of that since I've used wingstub before to
> debug spawned processes.
>
> My question is this:  Assuming development on and for Windows, what C
> development environment seems best for this sort of thing?  I've got (a)
> Borland V6 -- which I am starting to find pretty irritating since it
> want's to crash in some circumstances and I don't think much of its data
> display features, and (b) MS Visual .Net  (2003) which I've rather
> studiously avoided for a couple of years because its complexity somewhat
> bewilders me.
>
> Any experience or thoughts on this?  Would something like CodeWarrier be a
> better choice?

I can't really answer which is the best development environment
but there's a very brief how-to for debugging both C and Python
at the same time:

http://wingware.com/doc/howtos/debug-c-cpp

As far as approach to writing C code in general, some notes that
might be useful to you or others in this position:

>From working on Wing itself, which has some very performance
critical parts, we've learned somewhat the hard way that the best
way to go is to absolutely minimize the amount of C written.  In
the past, we somewhat blindly rewrote whole modules as units, and
now we just rewrite single optimized functions based on running
code in the Python profiler first.  This is a much more
productive approach.

In general, learning a few tricks in Python may also help in some
cases. For example, don't do this:

txt = ''
for something in whatever:
  txt += something

Instead do this:

txt = []
for something in whatever:
  txt.append(something)
txt = ''.join(txt)

Similarly, using "%s%s%s" % (x, y, z) is better than x + y + z.

There are others worth knowing about here:

http://manatee.mojam.com/~skip/python/fastpython.html

You may also want to look at Pyrex, which lets you mix
Python and C data types and creates C extensions modules
for you:

http://nz.cosc.canterbury.ac.nz/~greg/python/Pyrex/

I haven't used it yet but it could save you a lot of time over
writing C code by hand.

Hope that's useful, even if not exactly what you asked about...

- Stephan



------------------------------

_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide

End of wingide-users Digest, Vol 10, Issue 9
********************************************



More information about the wingide-users mailing list