On Nov 6, 11:58 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > On 05.11.2008, at 17:16, Mark H. wrote: > For the immediate future, yes. But with changing computer > architectures, the existing algorithms and routines may lose much of > their interest in the future.
Haha, yes, we're working on this ;-) (a number of my colleagues are, at least). > > To me the more interesting and rewarding task is to figure out how to > > splice existing HPC libraries into a functional framework, without > > losing the ability to reason functionally about the components. > > Unfortunately, it is already a bit of a pain to link existing HPC > libraries (written in Fortran, C, or C++) to functional code in any > decent language. Clojure won't help there, as there are still very > few HPC libraries for the JVM and JNI adds too much of an overhead. Does the JNI require copy-in / copy-out for arrays of floating-point numbers? I know Java has messed-up floating-point (Sun stupidly took away x87's 80-bit temps and other good things) but I'd at least like to avoid copy overhead for matrix and vector ops. I don't mind the extra function call out of JVM space as long as I can amortize it over the cost of a big matrix operation. (No way I'm writing loops in Clojure for that.) There are a number of Python-based projects to do what you mentioned (link HPC libraries in Fortran or C to a higher-level language), so it's not impossible. It's just a lot of tedious work for some unlucky coders. > > Definitely! We've got at least one fellow here who uses Common Lisp > > to generate stencil codes. He's been thinking about switching to > > Clojure ever since he and I worked on a thorny Lisp problem > > together ;-) > > I am looking forward to a nice Clojure library then :-) We'll see -- he's got it working in CL now and he's got a deadline, so he may not bother migrating it. Plus he likes the ECL / C linkup; Java may not be so helpful for him. mfh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---