GNU Scientific Library in D

Don Clugston dac at nospam.com.au
Tue Jul 31 23:57:07 PDT 2007


Bill Baxter wrote:
> Don Clugston wrote:
>> Witold Baryluk wrote:
>>> Walter Bright wrote:
>>>
>>>> Lars Kyllingstad wrote:
>>>>> I would like to use the GNU Scientific Library, which is written in 
>>>>> C, in
>>>>> D. While converting the header files to D modules, however I ran in to
>>>>> the following problem. In gsl_math.h, the following (crucially 
>>>>> important)
>>>>> struct is defined:
>>>> When you get it done, can you contribute it to Dsource? That way,
>>>> everyone can use it!
>>>
>>> I was using gsl in D with out problems. This is very good C library.
>>>
>>> BTW. I started some time ago similar library for D, designed from 
>>> scratch.
>>>
>>> http://tsk.ch.uj.edu.pl/wiki/onp
>>>
>>> If anyone is interested in helping me in development, I will be happy :)
>>
>> It's hard to evaluate without knowledge of Polish, but the breadth of 
>> work there  is very impressive. What license are you using?
>>
>> BTW, it seems to me that the GSL, at least originally, was just a 
>> clone of Numerical Recipes, and the code I've seen reproduces the NR 
>> bugs. There is scope for a lot of improvement, I think.
> 
> Really?  If that's true then it sounds like a violation of the Numerical 
> Recipes' license agreement.

I don't think so. Most of the Numerical Recipes code is itself cloned from 
published articles. It's easy enough to clone it by going back to the original 
sources. I doubt that the NR license would even be enforceable, in general -- 
their code often even uses the same variable names as were used in the original 
Algol code! There's not much original code in NR. (The big contribution of NR 
was to collate all the algorithms).



More information about the Digitalmars-d mailing list