RE: dynamic loading of dll's, ccall

From: [at]} <skulski{>
Date: Thu, 12 Feb 2004 10:00:20 -0500 (EST)

----boundary-LibPST-iamunique-1370012004_-_-
Content-type: text/plain

> Robert wrote:
>
> I generally prefer to translate stuff than work cross-language.
> I certainly find it less frustrating.

Less frustrating but politically incorrect. I am actually facing
a similar challenge. Some collaborators have code they worked on
for years. Watching over their shoulders I tentatively concluded
that the computational part of their code is relatively simple,
that is a few Fourier transforms that can be ported to CP in a few
afternoons. All the rest is GUI decorations. So technically speaking
the preferred solutions is to take their algorithms and translate
from a language IDL to CP. But here we enter the issues of control
over the project, whose work is in what proportion, and so on.
I seem to be hitting a wall proposing to just port the algorithms,
because this might imply their work was just tiny. It was not, but
porting might create such an impression.

On the other hand, wrapping their work in a DLL and passing data
back and forth would make them happy. Lots of extra work, huge
potential for bugs, two languages instead of one, and many other
unnecessary complications. But they would prefer such a solution
because it would keep their position intact in the hierarchy.

So there seems to be more on the menu than just calling conventions.

Cheers,
W



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

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-1370012004_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1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