We can even use Emscripten to convert an entire C/C++ codebase to JavaScript:<br><br><a href="http://emscripten.org/">http://emscripten.org/</a><br><br>Currently I'm working on a livecoding environment for Web using Audiolet:<br>

<br><a href="http://github.com/automata/vivace">http://github.com/automata/vivace</a><br><br>@Tom, impressing demo. Please, let's keep in touch.<br><br>All the best.<br><br><div class="gmail_quote">Em 20 de abril de 2012 13:51, henrique matias <span dir="ltr"><<a href="mailto:hems.inlet@gmail.com">hems.inlet@gmail.com</a>></span> escreveu:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hum, i couldn't expect less from chuck users. High level talk here.<br>
<br>
About the syntax you might be able to workaround the time yielding<br>
thing with a "pre-script-language"<br>
<br>
For instance  coffee Script ( The language Tom pointed ), has a<br>
"runtime compiler" that would parse the code and convert to javascript<br>
almost in no time..<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
On 20 April 2012 16:18, Tom Lieber <<a href="mailto:tom@alltom.com">tom@alltom.com</a>> wrote:<br>
> On Thu, Apr 19, 2012 at 6:10 PM, Matt Diamond <<a href="mailto:mdiamond@jhu.edu">mdiamond@jhu.edu</a>> wrote:<br>
>> Has anyone had any experience with using ChucK in a web context? For<br>
>> example, two things I'd be interested in as a web developer:<br>
>><br>
>> 1) streaming ChucK audio output from a NodeJS server to the browser<br>
>> 2) a javascript client-side ChucK implementation utilizing the Web Audio API<br>
>><br>
>> Has there been any work on either of these?<br>
><br>
> Links to these projects came up on the TOPLAP mailing list (worth<br>
> subscribing and perhaps asking there too):<br>
><br>
>  <a href="http://livecoder.net/" target="_blank">http://livecoder.net/</a><br>
>  <a href="http://www.charlie-roberts.com/gibber/" target="_blank">http://www.charlie-roberts.com/gibber/</a><br>
><br>
> Some friends from undergrad made a collaborative browser-based ChucK<br>
> editor that sounds like Noah's, though theirs was also not published.<br>
> Someone should release something!<br>
><br>
> At any rate, I've found the JavaScriptAudioNode interface to be fairly<br>
> friendly and somewhat performant:<br>
><br>
>  <a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html" target="_blank">https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html</a><br>
><br>
> This experiment of mine works pretty well on my computer, though for<br>
> some reason falls over on Windows without a much wider window size<br>
> that kills interactivity:<br>
><br>
>  <a href="http://people.csail.mit.edu/tl/vocal/" target="_blank">http://people.csail.mit.edu/tl/vocal/</a><br>
>  <a href="http://people.csail.mit.edu/tl/vocal/audio.js" target="_blank">http://people.csail.mit.edu/tl/vocal/audio.js</a><br>
><br>
> It's a port of this ChucK script designed for joystick control:<br>
><br>
>  <a href="http://smelt.cs.princeton.edu/pieces/JoyOfChant/JoyOfChant.ck" target="_blank">http://smelt.cs.princeton.edu/pieces/JoyOfChant/JoyOfChant.ck</a><br>
><br>
> Anyway, running a virtual machine on top of Javascript in the audio<br>
> callback would probably not work, but if you could compile the code to<br>
> Javascript then you ought to be able to get away with a lot. Maybe<br>
> extend CoffeeScript? (The only reason you'd want the compile step at<br>
> all is that there's no easy way to emulate ChucK's syntax for yielding<br>
> time because Javascript lacks continuation support in most<br>
> implementations.)<br>
><br>
> --<br>
> Tom Lieber<br>
> <a href="http://AllTom.com/" target="_blank">http://AllTom.com/</a><br>
> <a href="http://infinite-sketchpad.com/" target="_blank">http://infinite-sketchpad.com/</a><br>
> _______________________________________________<br>
> chuck-users mailing list<br>
> <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
> <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Vilson Vieira<br><br>vilson@void.cc<br><br>((( <a href="http://automata.cc" target="_blank">http://automata.cc</a> )))<br><br>((( <a href="http://musa.cc" target="_blank">http://musa.cc</a> )))<br>

<br>((( <a href="http://labmacambira.sourceforge.net" target="_blank">http://labmacambira.sourceforge.net</a> )))<br><br>