<div class="gmail_quote">On Wed, Feb 22, 2012 at 9:56 AM,  <span dir="ltr"><<a href="mailto:kallipygos@inbox.lv">kallipygos@inbox.lv</a>></span> wrote:<br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Hi experts</blockquote><div>I wouldn't concider myself an "expert"... but hello never the less :)<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Why it is written in C++ , not C ?</div></blockquote><div>Short answer: I'm ok at C++, and not good at pure C.<br>Long answer: Most large audio program projects are written in C++: its easier to compartmentalize code, splitting functionality. IMO its better suited to writing *applications*, while pure C is better for writing libraries due to the fact that pretty much any language has bindings to calling (pure) C functions.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>means "read" and "write" ?<br></div></blockquote><div>Robin pretty much aced those questions, so I'll skip em.<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">> Which leads me to my next question:  are most JACK applications<br><div>
 > written in C/C++?  I understand that programming as close to the<br> > hardware as possible is important for performance, but what about<br> > programming in a JVM language (I have Clojure in mind)?  How<br> > reasonable is that?</div>
</div></blockquote><div> </div><div>Memory management & threading are the two big real-time things, using a VM complicates this.<br>I don't advise using it, but C++ is already my weapon of choice so I'm not biased at all ;)<br>
<br>That said, my first JACK client was using Python to copy I/O buffers using the PyJack interface.<br>Xruns!! but it worked... :) For serious applications I would not concider VM languages as a serious<br>option, but I'm sure there's people on list that would disagree. This has been discussed before on list,<br>
searching the archives will provide lots of information on the topic.<br><br>HTH, -Harry<br></div></div>