Re: [PD-dev] Problem compiling externals for Mac OS X (Mac Intel)

2006-09-12 Thread Stefano Papetti
Hi Miller, you're right: now it works! Thanks! Maybe somebody should tell Mac Intel developers that there's such a problem with previous versions of Pd. Is Chris Clepper (previous reply) right? After comparing the 0.39 and 0.40 makefiles I don't think that compiling the 0.39 version on a Mac

Re: [PD-dev] GameCube gamepad

2006-09-12 Thread Hans-Christoph Steiner
Does it work with [linuxevent]? Are you getting data out of the /dev/ input/event2 interface? You can just cat it to see if it outputs when you move the joystick (i.e. cat /dev/input/event2). My guess is that it might output data via a /dev/input/js? device rather than a

Re: [PD-dev] configuration : .pdrc, preference dialog... s-lang

2006-09-12 Thread Alexandre Quessy
On 9/10/06, Mathieu Bouchard [EMAIL PROTECTED] wrote: On Sat, 9 Sep 2006, Alexandre Quessy wrote: A global startup configuration file would be very desirable. We could then write a little pd-add-path script that would simply : echo -path $PWD /usr/lib/pd/pdrc-system-wide simply that? is it

Re: [PD-dev] Refactoring Pure Data (1 of 2)

2006-09-12 Thread Mathieu Bouchard
On Tue, 12 Sep 2006, Vincent Lordier wrote: do you do unit-testing? Here's my point of view : to be able to do unit testing, we need functions that are actually testable, and that means they are : - small - not complex (small Cyclomatic number) - doing one single thing So do you want to

Re: [PD-dev] Refactoring Pure Data (2 of 2)

2006-09-12 Thread Mathieu Bouchard
On Tue, 12 Sep 2006, Vincent Lordier wrote: Let me take a quick example to illustrate my point : (from s_inter.c, removed #ifdefs for this example) void sys_set_priority(int higher) { struct sched_param par; int p1 ,p2, p3; p1 = sched_get_priority_min(SCHED_FIFO); p2 =

Re: [PD-dev] Refactoring Pure Data (1 of 2)

2006-09-12 Thread Vincent Lordier
I stopped caring about trying to organise PureData developers meetings some time ago. I think we've had seven of them. It didn't catch on. Communication is key.But communication can only be done among people who want to communicate. IRC isn't the best tool but it's a start.What's the best tool?

Re: [PD-dev] Refactoring Pure Data

2006-09-12 Thread Mathieu Bouchard
On Tue, 12 Sep 2006, Miller Puckette wrote: My top priority for Pd is to finish getting the 'language' defined. I don't see this as an open-ended pursuit If Pd isn't open-ended then it will have to be superceded... another year or so of fooling with 'data structures' seems to be the main

Re: [PD-dev] Refactoring Pure Data (2 of 2)

2006-09-12 Thread Vincent Lordier
Even considering the actual implementation instead of the simplifiedexample, I wouldn't consider that renaming p1 to priority_min is really helping anyone, because they already know p1 is the minimumpriority by looking two lines above. All uses of p1 lie within 5 lines ofcode, so using a longer

Re: [PD-dev] Refactoring Pure Data (2 of 2)

2006-09-12 Thread Kyle Klipowicz
I agree with this, from a non/novice programmer perspective. It would make it a lot easier for me to learn the inner workings of Pd if it were nicely labeled, and modularized. It's so hard for me to just pick up and figure it all out! Even taking computer science courses cannot prepare a

Re: [PD-dev] Refactoring Pure Data (2 of 2)

2006-09-12 Thread Mathieu Bouchard
On Wed, 13 Sep 2006, Vincent Lordier wrote: You didn't replace the fprintfs by posts. It should be posts because then it can be routed through the GUI. True. Actually, they should be calls to error() or to pd_error(). The latter should be used when there's an object associated with the

Re: [PD-dev] Refactoring Pure Data (2 of 2)

2006-09-12 Thread Vincent Lordier
An explicit name saves the dev brain power at coding time ;) I assert that often it doesn't. A name shouldn't be more explicit than it needs to be, Quote from Wikipedia on software quality = http://www.gnu.org/prep/standards/standards.html#Names yes, according to that page, Local variable

Re: [PD-dev] configuration : .pdrc, preference dialog... s-lang

2006-09-12 Thread Mathieu Bouchard
On Tue, 12 Sep 2006, Alexandre Quessy wrote: On 9/10/06, Mathieu Bouchard [EMAIL PROTECTED] wrote: simply that? is it because you chmoded /usr/lib/pd or because you run everything as root? Oups ! Sorry. I copy-pasted from my pdpath command which cats to ~/.pdrc, but it would rather be in this

Re: [PD-dev] Refactoring Pure Data (2 of 2)

2006-09-12 Thread Chris McCormick
On Wed, Sep 13, 2006 at 04:00:20AM +0200, Vincent Lordier wrote: So it's basically up to Miller to let the development process change, so we can propose improvements. If not, then I guess I'll join the growing group of discouraged ones, eventually. I think you have hit the nail on the head