Live coding in Chuck a better idea than Max/MSP lets find out.
You can get ChucK at http://chuck.cs.princeton.edu/
This project follows on from Live Coding in Max/MSP
and TOPLAP do this kind of thing http://www.toplap.org
https://www.youtube.com/watch?v=3_SWxgdKx98
https://www.youtube.com/watch?v=RH309jvRvDE
https://www.youtube.com/watch?v=klrn5OAS4cw
https://www.youtube.com/watch?v=CcgHH8mTw2A