Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: FSL auxilia...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 25 Topic 3839 of 4287
Post > Topic >>

Re: FSL auxiliary files: proposed reorganization of words

by "C. G. Montgomery" <cgm@[EMAIL PROTECTED] > Mar 13, 2008 at 05:42 PM

Marcel Hendrix mhx@[EMAIL PROTECTED]
 wrote:

> "C. G. Montgomery" <cgm@[EMAIL PROTECTED]
> writes Re: FSL auxiliary
> files: proposed reorganization of words
> (...)
>> I don't recall any of the present Library algorithms depending on the
>> details of data storage.  (If I'm wrong about that, I'd appreciate
>> being corrected.)
> 
> There must be one, because I remember a discussion about it with Skip
> long ago.

Thanks, I'll go look for it one of these days.

> (...)
> Having 0-indexing but Fortran order would negate any possible benefit of
> the flexibility, so I would vote to remove the flexibility.
 
I don't understand this at all.  If I want to pass the address of a
Fortran-ordered array to some foreign routine, the fact that Forth treats
it as 0-indexed makes no difference.  Storage order and index conventions
are orthogonal.

>                                                          Again, the
> FSL already is using C-style ordering (never can remember if this is
> called row-major or column-major) already.

My personal fsl-util file stores matrices in the Fortran order, and at
least most of the FSL routines work perfectly.  That's why I thought that
none of the Library cared.  ;-)

>> Similarly, the phrases involving  &  and  &!  that need to be specified
>> are
>>  & d{ nels }malloc  and  & d{ }free  and  a{ & b{ &!
>> and their 2-d counterparts.
> 
> Note that when d{ leaves an id, it is not necessary to have & because
> }malloc and }free can be made to work with the id . Likewise, a{ b{
> }own would be a readily understood equivalent to a{ & b{ &! .

Exactly.  &  might well be a noop, which would be removed by optimization
(by machine or by hand).  But it would break a lot of current code to
remove the word.   And your  }own  would be a new word in place of  &! ,
with a new syntax, so there's not much gain there.

As much as possible, what I would like to see is a set of specifications
which are consistent with the most common implementation (i.e., the one
in the current fsl-util auxiliary files) but less rigid, to allow (even
encourage) alternatives.

cheers   cgm
 




 25 Posts in Topic:
FSL auxiliary files: proposed reorganization of words
Krishna Myneni <krishn  2008-03-10 23:56:09 
Re: FSL auxiliary files: proposed reorganization of words
mhx@[EMAIL PROTECTED] (M  2008-03-11 07:00:11 
Re: FSL auxiliary files: proposed reorganization of words
Krishna Myneni <krishn  2008-03-11 07:52:51 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-11 21:12:14 
Re: FSL auxiliary files: proposed reorganization of words
Krishna Myneni <krishn  2008-03-11 22:44:24 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-12 09:30:39 
Re: FSL auxiliary files: proposed reorganization of words
mhx@[EMAIL PROTECTED] (M  2008-03-12 19:52:35 
Re: FSL auxiliary files: proposed reorganization of words
Krishna Myneni <krishn  2008-03-13 04:15:20 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-13 09:33:09 
Re: FSL auxiliary files: proposed reorganization of words
mhx@[EMAIL PROTECTED] (M  2008-03-13 21:42:54 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-13 17:42:16 
Re: FSL auxiliary files: proposed reorganization of words
George Hubert <georgea  2008-03-13 15:50:25 
Re: FSL auxiliary files: proposed reorganization of words
George Hubert <georgea  2008-03-13 15:55:13 
Re: FSL auxiliary files: proposed reorganization of words
mhx@[EMAIL PROTECTED] (M  2008-03-13 21:26:03 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-13 14:00:15 
Re: FSL auxiliary files: proposed reorganization of words
Krishna Myneni <krishn  2008-03-13 20:45:39 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-13 19:17:40 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-12 14:18:16 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-12 09:32:07 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-14 08:20:42 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-13 16:48:30 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-14 08:46:13 
Re: FSL auxiliary files: proposed reorganization of words
"C. G. Montgomery&qu  2008-03-14 13:46:42 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-14 09:43:26 
Re: FSL auxiliary files: proposed reorganization of words
Bruce McFarling <agila  2008-03-14 14:50:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 23:42:06 CDT 2008.