How long will it take to know how to make externals ?


    Jul 31 2006 | 8:31 pm
    If I don't get it wrong, it is necessary to learn C++ to be able to write external for Max/MSP.
    But I know nothing about C++ even though I can write abstractions to suit my music need with Max/MSP.
    I was wondering how long it will take to learn C++ to the level with which I can write external for Max/MSP ?
    Any idea ?
    Thanks.

    • Jul 31 2006 | 9:09 pm
      Technically, you write compiled externals in C.
      If I were you, I'd learn to write JavaScript externals, then Java
      externals, and if you still really really want to, then learn to write
      C externals.
      It is _not_ easy to learn, there will be many pitfalls, and you will
      have to understand C, and pointer arithmetic pretty well before you
      can crank them out.
      I seem to remember it taking me about 2 days to get my first external
      right. I had been programming in C for 3-4 years at that point.
      _Mark
      On Jul 31, 2006, at 1:31 PM, Cheng Chien-Wen wrote:
      >
      > If I don't get it wrong, it is necessary to learn C++ to be able to
      > write external for Max/MSP.
      >
      > But I know nothing about C++ even though I can write abstractions to
      > suit my music need with Max/MSP.
      >
      > I was wondering how long it will take to learn C++ to the level with
      > which I can write external for Max/MSP ?
      >
      >
      > Any idea ?
      >
      > Thanks.
    • Aug 04 2006 | 9:30 pm
      Thanks for the info.
      But what are the advantages and disadvantages of using Javascript or Java to write externals compared to C++ ?
      Can they achieve the same result regarding Max/MSP External programing ?
      Thanks.
    • Aug 04 2006 | 9:44 pm
      Javascript or Java are inherently suboptimal because
      they are byte interpreted languages. Writing an external that
      is compiled to native processor instructions will always be more
      efficient and in general have better performance. But if
      you are dealing with things that do not require high degree
      of performance, Javascript or Java are very convenient.
      Anthony
      ----- Original Message -----
      From: Cheng Chien-Wen
      Date: Friday, August 4, 2006 4:33 pm
      Subject: [maxmsp] Re: How long will it take to know how to make
      externals ?
      >
      > Thanks for the info.
      >
      > But what are the advantages and disadvantages of using Javascript
      > or Java to write externals compared to C++ ?
      >
      > Can they achieve the same result regarding Max/MSP External
      > programing ?
      >
      > Thanks.
      >
    • Aug 05 2006 | 9:49 am
      On 4 Aug 2006, at 23:44, apalomba@austin.rr.com wrote:
      > Javascript or Java are inherently suboptimal because
      > they are byte interpreted languages.
      I can't speak for Javascript, but this is untrue of Java; modern
      JVM's translate bytecode to native code on demand.
      There is a performance hit when sending messages across the JNI
      boundary between Max and Java, but within Java itself the performance
      is going to be as close to native as makes no odds, except for truly
      CPU-critical applications.
      -- N.
      nick rothwell -- composition, systems, performance -- http://
      www.cassiel.com