Re: Re: why is it so quiet in here?
Lenard Lindstrom <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <Mahogany-0.66.0-4294802621-20040707-092451.00@pop3.norton.antivirus> |
On Tue, 6 Jul 2004 21:09:49 -0700 Mark Hahn <[email protected]> wrote: > Lenard Lindstrom wrote: > > Are you talking about a built-in version of Python's ctypes module? > > There was a discussion on the Pyrex mailing list about what was > > better, ctypes or Pyrex. The general concensus, though not proven, > > was that ctypes would be slower. But what about adding new types to > > Prothon, like numarray. I doubt a JIT could optimize something like > > that? Or would one have to write it as a pure C library, then wrap it > > for Prothon? > > I don't know. Is ctypes like my dll wrapper proposal? > http://prothon.org/wiki?pagename=PyrexInProthon > Quoting from the ctypes introduction: ctypes is a Python module allowing to create and manipulate C data types in Python. These can then be passed to C-functions loaded from dynamic link libraries. > My proposal is only good for wrapping existing c libraries, not for writing > new C extensions. I thought psyco made writing new C extensions for Python > unecessary. > Psyco on a list of Int's will not be as fast as a C module on an array of int. And how are you going to handle C++ and wxWidgets? This discussion makes me ask how well Prothon can be embedded in other applications. I do not remember the topic ever being mentioned. Can Prothon be easily integrated into external applications? How will these applications access Prothon objects? Lenard Lindstrom <[email protected]>