| Author |
Message |
Mies
Joined: May 31, 2006 Posts: 18 Location: London, UK
|
Posted: Sun Aug 13, 2006 12:11 pm Post subject:
I like ChucK but... |
 |
|
First off, kudos to the development team - ChucK is a worthy alternative to Supercollider (that is, AFAIK, unfortunately not available on XP apart from an old, very buggy and incomplete port).
However, am I the only one who finds programming in Chuck frustrating? It is an object oriented language but it doesn't appear to support correctly some fundamental OO features such as overloading for example...
Ultimately, I went back coding Java externals in Max/MSP (with the added benefits of a good user interface and a larger community).
Just my experience - I wonder if other ChucK-ers(?) have had a similar one? |
|
|
Back to top
|
|
 |
Mies
Joined: May 31, 2006 Posts: 18 Location: London, UK
|
Posted: Sun Aug 13, 2006 12:19 pm Post subject:
|
 |
|
Where are my manners!?!!
I wanted to thank Kassen for creating this forum - great idea! |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Aug 13, 2006 12:29 pm Post subject:
|
 |
|
In fact; ChucK does support overloading functions. From the manual, page 50;
| Quote: |
Overloading a function allows functions with the same name to be defined with different arguments.
The function must be written in separate instances to handle the input, and the return type must
agree.
|
..But I'm not sure what exactly you mean by "correctly".
I don't find ChucK frustrating at all, did you try explaining what you were trying to do on the list? Even if you never go back to ChucK it would be nice to know where your frustration began and what features you were missing. I'm not the greatest object oriented programing expert but there are indeed some issues with classes that are being sorted out. It would be nice if you'd explain what you were trying to do and how and where it went wrong. Nobody in their right mind would claim ChucK to be perfect and finished; there is a lot of need for improvement as well as demand for opinions on what "improvement" is.
Oh, and thanks for the kudos; I just got thrown in at the deep end of representing ChucK; Mosc created the forum and Ge gave te green light... _________________ Kassen |
|
|
Back to top
|
|
 |
majutsu

Joined: Jun 18, 2006 Posts: 151 Location: New York
Audio files: 1
|
Posted: Sun Aug 13, 2006 12:35 pm Post subject:
|
 |
|
i feel your pain, mies.
i also feel the same way about sc3. which is buggy and weird. plus windows not having cocoa classes is a pain in terms of communication with others. but you can use java . . .
i too look at max/msp as my likely resting point for composing and performing. especially since the windows port is very, very stable now.
that being said i think chucK is seriously revolutionary and cool, sure to be of tremendous value as a grand experiment if nothing else. and perhaps in the future, with improvements, a whole lot more than a quirky experiment, maybe a radically novel tool for music. _________________ All phenomena are atoms in association and dissociation. |
|
|
Back to top
|
|
 |
Mies
Joined: May 31, 2006 Posts: 18 Location: London, UK
|
Posted: Sun Aug 13, 2006 1:06 pm Post subject:
|
 |
|
I understand Chuck is still in its infancy. It also is not a commercial product with a bunch of professional developers behind it so my allusion/indirect comparison to Max/MSP was unfair.
I know from the manual that overloading is officially supported but it seems that it breaks in some cases.
I wrote a public class to be the superclass for a set of related models I wanted to implement. I also declared a bunch of "abstract" methods (as ChucK doesn't support abstract methods per se, I simply left their bodies pretty much empty).
While implementing the models, I overloaded these methods (i.e., changed their signature) and that's when the compiler refused to compile some of the overloaded ones (no obvious reason - all public accessors). Finally. I gave up on my original idea to create a class hierarchy and coded all the models as completely separate entities.
Arguably, correct OO behaviour is not paramount in a programming language designed to write music applications but still...
Thanks to your creating this thread, I checked the ChucK website and noticed 1.2.0.6 has been released - I'll give it another try as I was using 1.2.0.5 at the time.
As I put in the thread subject, I like ChucK (two main reasons: it is pretty lightweight, and I'm truly impressed by the way time is handled!) |
|
|
Back to top
|
|
 |
Mies
Joined: May 31, 2006 Posts: 18 Location: London, UK
|
Posted: Sun Aug 13, 2006 1:12 pm Post subject:
|
 |
|
| majutsu wrote: |
i too look at max/msp as my likely resting point for composing and performing. especially since the windows port is very, very stable now. |
I completely agree - rock solid (can't wait for 4.6!)
| Quote: | | i think chucK is seriously revolutionary and cool, sure to be of tremendous value as a grand experiment if nothing else. and perhaps in the future, with improvements, a whole lot more than a quirky experiment, maybe a radically novel tool for music. |
Don't get me wrong - I agree there too. I'm just too impatient!  |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Aug 13, 2006 1:19 pm Post subject:
|
 |
|
hmmm, I don't fully understand what you were trying to do but there were/are indeed some issues with functions within public classes and I see no reason why there couldn't be overloaded functions within publc classes, that could be quite usefull indeed. If it still doesn't work in the latest version it might be a good idea to report on this with example code that should but doesn't work but is syntactically correct.
If I were you I'd document a simple case of this and send it to the list. _________________ Kassen |
|
|
Back to top
|
|
 |
Mies
Joined: May 31, 2006 Posts: 18 Location: London, UK
|
Posted: Sun Aug 13, 2006 1:34 pm Post subject:
|
 |
|
| Kassen wrote: | | If I were you I'd document a simple case of this and send it to the list. |
Thanks, Kassen. I'll try with 1.2.0.6 and do that if I still can't get my code compiled. |
|
|
Back to top
|
|
 |
|