Hello
all,
Some dumb questions
related to my ongoing migration away from Windows. Something that I have
found useful is to write numerical analysis code (internally using templates,
streams, etc.) in C++, and then compile them as extern "C" something
like
extern "C" _export
void DoSomething(float * data, int rows, int columns)
{
// C++ specifics are legal herein; arguments
// and return type must be
legal for C - e.g. no references
// and no classes; structs are ok.
}
On Windows with
MinGW, the exporting of the function above seems to be almost magically
easy. Do similar tricks work on Linux? On Linux, I intend to use gcc
and Code::Blocks, unless somebody has a better idea.
I bring this up in
part because some things (tight loops) are best left to statically typed
languages, C++ has a slight edge over Smalltalk on syntax for translating
equations, I already have a lot of working C++ code, and I might be able to ease
into getting GSL talking to Pharo before having to tackle the entire
interface.
I am hoping to add
something to an evolving library, recompile, and perhaps after restarting Pharo
have access to the new function(s) with fairly little hassle. Is that
reasonable to ask? Any advice or warnings?
Bill
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project