This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: patch to unif.c...
- To: per at bothner dot com
- Subject: Re: patch to unif.c...
- From: Clark McGrew <mcgrew at ale dot physics dot sunysb dot edu>
- Date: Fri, 26 Nov 1999 10:13:44 +0900 (JST)
- CC: clark dot mcgrew at ccmail dot sunysb dot edu, guile at sourceware dot cygnus dot com
- References: <m11qv0K-000UuAC@boxer.physics.sunysb.edu> <m2u2ma8gwr.fsf@magnus.bothner.com>
- Reply-to: clark dot mcgrew at sunysb dot edu
Hi,
>>>>> "Per" == Per Bothner <per@bothner.com> writes:
Per> Clark McGrew <mcgrew@ale.physics.sunysb.edu> writes:
>> I keep running into this problem over and over again when I'm
>> working with uniform vectors; There isn't a good clean way to
>> generate a vector of floats vs doubles.
Per> Can I suggest SRFI-4 "Homogeneous numeric vector datatypes"?
Per> http://srfi.schemers.org/srfi-4/srfi-4.html
Per> I'm a big believer in following standards, as long as the
Per> standard is reasonable, and I believe this one is.
I agree in the long run. The problem as the array support in guile
currently stands there is no clean way to generate a vector of floats
vs doubles. My patch is the minimal change to handle the problem
(seriously, it only took 30-40 key stokes).
There's talk about revamping the lowlevel support for arrays in guile.
I hope that when that happens SRFI-4 is implemented since it seems
pretty nice.
Cheers,
Clark