| From | Sent On | Attachments |
|---|---|---|
| 87 earlier messages | ||
| IOhannes m zmoelnig | Feb 18, 2009 12:06 pm | |
| IOhannes m zmoelnig | Feb 18, 2009 12:07 pm | |
| Matt Barber | Feb 18, 2009 12:17 pm | |
| Martin Peach | Feb 18, 2009 1:39 pm | |
| Andy Farnell | Feb 18, 2009 1:46 pm | |
| Roman Haefeli | Feb 18, 2009 3:39 pm | |
| Roman Haefeli | Feb 18, 2009 3:49 pm | |
| Roman Haefeli | Feb 18, 2009 4:03 pm | |
| Roman Haefeli | Feb 18, 2009 4:32 pm | |
| marius schebella | Feb 18, 2009 10:41 pm | |
| Frank Barknecht | Feb 18, 2009 11:16 pm | |
| marius schebella | Feb 18, 2009 11:27 pm | |
| Mathieu Bouchard | Feb 18, 2009 11:47 pm | |
| IOhannes m zmoelnig | Feb 19, 2009 12:45 am | |
| IOhannes m zmoelnig | Feb 19, 2009 12:50 am | |
| IOhannes m zmoelnig | Feb 19, 2009 12:52 am | |
| Damian Stewart | Feb 19, 2009 12:53 am | |
| IOhannes m zmoelnig | Feb 19, 2009 12:55 am | |
| IOhannes m zmoelnig | Feb 19, 2009 1:00 am | |
| Matt Barber | Feb 19, 2009 1:15 am | |
| cyrille henry | Feb 19, 2009 2:07 am | |
| Frank Barknecht | Feb 19, 2009 6:04 am | |
| Martin Peach | Feb 19, 2009 6:14 am | |
| Mathieu Bouchard | Feb 19, 2009 7:21 am | |
| Hans-Christoph Steiner | Feb 19, 2009 9:27 am | |
| IOhannes m zmoelnig | Feb 19, 2009 10:15 am | |
| Mathieu Bouchard | Feb 19, 2009 10:28 am | |
| Roman Haefeli | Feb 19, 2009 3:10 pm | |
| Roman Haefeli | Feb 19, 2009 3:26 pm | |
| Hans-Christoph Steiner | Feb 19, 2009 9:33 pm | |
| Hans-Christoph Steiner | Feb 19, 2009 9:40 pm | |
| Hans-Christoph Steiner | Feb 19, 2009 9:48 pm | |
| Hans-Christoph Steiner | Feb 19, 2009 10:07 pm | |
| Hans-Christoph Steiner | Feb 19, 2009 10:08 pm | |
| Hans-Christoph Steiner | Feb 19, 2009 10:09 pm | |
| Frank Barknecht | Feb 19, 2009 11:06 pm | |
| IOhannes m zmoelnig | Feb 20, 2009 12:48 am | |
| Mathieu Bouchard | Feb 20, 2009 12:59 am | |
| Mathieu Bouchard | Feb 20, 2009 1:21 am | |
| João Pais | Feb 20, 2009 2:10 am | .xls |
| Claude Heiland-Allen | Feb 20, 2009 6:23 am | |
| IOhannes m zmoelnig | Feb 20, 2009 7:18 am | |
| Roman Haefeli | Feb 22, 2009 2:53 am | |
| João Pais | Feb 22, 2009 2:57 pm | |
| João Pais | Feb 22, 2009 3:11 pm | |
| Hans-Christoph Steiner | Feb 22, 2009 3:43 pm | |
| cyrille henry | Feb 22, 2009 4:49 pm | |
| Mathieu Bouchard | Feb 22, 2009 5:32 pm | |
| Mathieu Bouchard | Feb 22, 2009 6:09 pm | |
| Hans-Christoph Steiner | Feb 22, 2009 8:50 pm | |
| Hans-Christoph Steiner | Feb 22, 2009 9:02 pm | |
| Frank Barknecht | Feb 23, 2009 12:34 am | |
| Frank Barknecht | Feb 23, 2009 1:03 am | |
| cyrille henry | Feb 23, 2009 2:53 am | |
| IOhannes m zmoelnig | Feb 23, 2009 3:21 am | |
| IOhannes m zmoelnig | Feb 23, 2009 3:37 am | |
| Andy Farnell | Feb 23, 2009 3:58 am | |
| Mathieu Bouchard | Feb 23, 2009 5:04 am | |
| Andy Farnell | Feb 23, 2009 5:19 am | |
| cyrille henry | Feb 23, 2009 9:27 am | |
| Roman Haefeli | Feb 23, 2009 9:48 am | |
| Loic Kessous | Feb 23, 2009 11:33 am | |
| João Pais | Feb 23, 2009 12:52 pm | |
| João Pais | Feb 23, 2009 1:10 pm | |
| cyrille henry | Feb 23, 2009 3:16 pm | |
| Hans-Christoph Steiner | Feb 23, 2009 4:07 pm | |
| Hans-Christoph Steiner | Feb 23, 2009 4:14 pm | |
| Loic Kessous | Feb 24, 2009 4:06 am | |
| cyrille henry | Feb 24, 2009 8:48 am | |
| Hans-Christoph Steiner | Feb 24, 2009 5:05 pm | |
| cyrille henry | Feb 25, 2009 2:00 am | |
| Hans-Christoph Steiner | Feb 25, 2009 7:29 am | |
| cyrille henry | Feb 25, 2009 10:22 am | |
| Hans-Christoph Steiner | Feb 25, 2009 11:37 am | |
| Subject: | Re: [PD-dev] stripping down Pd-extended's default libs | |
|---|---|---|
| From: | Hans-Christoph Steiner (ha...@eds.org) | |
| Date: | Feb 22, 2009 8:50:00 pm | |
| List: | at.iem.pd-dev | |
On Feb 22, 2009, at 9:09 PM, Mathieu Bouchard wrote:
On Fri, 20 Feb 2009, Hans-Christoph Steiner wrote:
On Feb 18, 2009, at 2:57 PM, Mathieu Bouchard wrote:
That said, I'm not very fond of declarations, but I don't think that it's an issue of programmers vs non-programmers, it's a matter of people who like to declare vs people who don't, and that's a quite different split. There are quite a lot of serious programming languages that avoid declarations as much as possible.
Can you give some examples of how other langauges handle this kind of thing without delcarations?
Not really...
In Smalltalk you don't have declarations like this, because there are no namespaces, and because there are no files to load.
In Ruby you load files, but they don't have to be tied with any classnames in particular. Loading a file can be considered a declaration if you wish, but it's an action. There are namespaces, but you import them by performing the action of adding a superclass to the class that you are in (even though all ruby docs deny that this constitutes multiple-inheritance... go figure!)
In Tcl, there are namespaces, though many libraries don't use them. You have file-loading just like Ruby's, and you have packages implemented in terms of file-loading. Declarations are really actions in this language too. Namespaces exist, but were added after many years of existence of the language. (Not counting the other kind of namespace called "ensemble" and that has nothing to do with the newer feature called "namespace"). The import feature is probably similar to Python's, I don't know; it works as an action as well, of course.
A big difficulty with namespaces in Pd is that the user doesn't control the loading order of objects, and objects aren't "run" in the way a program is, so [import] has to be very special. If Pd were more like one of the above systems, you'd be able to [loadbang] an [import] before the rest of the patch loads; but this is only one way of thinking about the correspondence between languages... depending on how we decide to map concepts across languages, we would get to different possible equivalences of features.
Tcl and Ruby don't have a two-in-one load-and-import "declaration", whereas Python and Perl do. Some other languages may look like they have a load-and-import declaration, but instead have only an import declaration, and do all the loading automagically: for example, in Java, you can say java.util.Vector and it gets loaded, no need to import.
About declarations in general and languages that avoid them, it's something that doesn't apply so well to namespaces as it does to other language features that don't apply to Pd.
Something you could take from Java is that creating the objectbox [zexy/foo] would cause the loading of zexy.pd_linux if it is found. Maybe.
My main advice would still be to avoid having to use any declarations for things that ought to be internal classes in Pd but aren't. That's very subjective. For example, much of zexy and iemguts could go in that category, imho, and much of many other libraries as well.
Yes, import/declare ends up being a bit weird. Mostly, I think the main issue is when someone adds an import midway thru a patch. Then next time it loads, it could end up having different files loaded for the stated objectclass names.
Perhaps then changing [import] should force the whole patch to reload. That would be annoying since the patch would lose its state, but I suppose the state could even be saved somehow.
Or perhaps there is an even better solution out there for something like namespaces in a visual programming language. Any ideas?
.hc
----------------------------------------------------------------------------
Using ReBirth is like trying to play an 808 with a long stick. - David Zicarelli
_______________________________________________ Pd-dev mailing list Pd-...@iem.at http://lists.puredata.info/listinfo/pd-dev






.xls