Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] what do we need for a release?

Date2005-11-16 16:59
FromMichael Gogins
SubjectRe: [Cs-dev] what do we need for a release?
I think these opcodes are welcome. 

High-performance languages such as C and C++ omit bounds checks on array access precisely for the sake of performance.

It is also common practice in numerical libraries to omit bounds checks or, at least, to make them optional at compile time.

The user should normally be aware of the existence of two forms of table access, and choose the form without bounds checking only when the size of the array is known in advance.

Regards,
Mike

-----Original Message-----
From: Anthony Kozar 
Sent: Nov 16, 2005 11:25 AM
To: New Csound Developer list 
Subject: Re: [Cs-dev] what do we need for a release?

I would just like to note that I am uncomfortable introducing opcodes into
Csound that will cause it to mysteriously crash if the user provides a bad
input value.  That situation is normally considered a bug in any piece of
software and I do not think that the insignificant increase in speed is
worth allowing unstable behavior.

$0.02

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://akozar.spymac.com/


Istvan Varga wrote on 11/16/05 8:24 AM:

> tab, tabw

> Fast table opcodes. Faster than table and tablew because don't allow
> wrap-around and limit and don't check index
> validity. Have been implemented in order to provide fast access to arrays.

> Special care of index value must be taken into account. Index values out of
> the table allocated space will crash Csound.



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-18 18:51
FromIain Duncan
SubjectRe: [Cs-dev] what do we need for a release?
> I think these opcodes are welcome. 
> 
> High-performance languages such as C and C++ omit bounds checks on array access precisely for the sake of performance.
> 
> It is also common practice in numerical libraries to omit bounds checks or, at least, to make them optional at compile time.
> 
> The user should normally be aware of the existence of two forms of table access, and choose the form without bounds checking only when the size of the array is known in advance.
> 
> Regards,
> Mike

I agree with Mike. I think one of the strengths of csound is that once 
you know you're code is working and stable you can optimize it by taking 
off the training wheels.

Iain


> -----Original Message-----
> From: Anthony Kozar 
> Sent: Nov 16, 2005 11:25 AM
> To: New Csound Developer list 
> Subject: Re: [Cs-dev] what do we need for a release?
> 
> I would just like to note that I am uncomfortable introducing opcodes into
> Csound that will cause it to mysteriously crash if the user provides a bad
> input value.  That situation is normally considered a bug in any piece of
> software and I do not think that the insignificant increase in speed is
> worth allowing unstable behavior.
> 
> $0.02
> 
> Anthony Kozar
> anthonykozar AT sbcglobal DOT net
> http://akozar.spymac.com/
> 
> 
> Istvan Varga wrote on 11/16/05 8:24 AM:
> 
> 
>>tab, tabw
> 
> 
>>Fast table opcodes. Faster than table and tablew because don't allow
>>wrap-around and limit and don't check index
>>validity. Have been implemented in order to provide fast access to arrays.
> 
> 
>>Special care of index value must be taken into account. Index values out of
>>the table allocated space will crash Csound.
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-18 18:51
FromIain Duncan
SubjectRe: [Cs-dev] what do we need for a release?
> I think these opcodes are welcome. 
> 
> High-performance languages such as C and C++ omit bounds checks on array access precisely for the sake of performance.
> 
> It is also common practice in numerical libraries to omit bounds checks or, at least, to make them optional at compile time.
> 
> The user should normally be aware of the existence of two forms of table access, and choose the form without bounds checking only when the size of the array is known in advance.
> 
> Regards,
> Mike

I agree with Mike. I think one of the strengths of csound is that once 
you know your code is working and stable you can optimize it by taking 
off the training wheels.

Iain


> -----Original Message-----
> From: Anthony Kozar 
> Sent: Nov 16, 2005 11:25 AM
> To: New Csound Developer list 
> Subject: Re: [Cs-dev] what do we need for a release?
> 
> I would just like to note that I am uncomfortable introducing opcodes into
> Csound that will cause it to mysteriously crash if the user provides a bad
> input value.  That situation is normally considered a bug in any piece of
> software and I do not think that the insignificant increase in speed is
> worth allowing unstable behavior.
> 
> $0.02
> 
> Anthony Kozar
> anthonykozar AT sbcglobal DOT net
> http://akozar.spymac.com/
> 
> 
> Istvan Varga wrote on 11/16/05 8:24 AM:
> 
> 
>>tab, tabw
> 
> 
>>Fast table opcodes. Faster than table and tablew because don't allow
>>wrap-around and limit and don't check index
>>validity. Have been implemented in order to provide fast access to arrays.
> 
> 
>>Special care of index value must be taken into account. Index values out of
>>the table allocated space will crash Csound.
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net