Thursday, April 3, 2008

Basics

MMJ is a visual programming environment. This means that you "write" your program by dragging and connecting "object boxes" and "GUI" (Graphical-User-Interface) elements. Since MMJ is not a text based language it can be friendlier to use than other languages. There is also no "compiling" necessary meaning you can add to a given program while it is running. This is handy since you can investigate a program while it is running. It helps for figuring out how given computational element works or trouble shooting something that isnt working the way you want it to.

Here is an example of a simple media machine written in MMJ. This given machine plays a movie using quicktime.


Code is also easy to share between people since it can be copied and pasted into its text equivalent. I will paste it below. This can be copied from an email or blog.

#P user jit.pwindow 54 136 82 62 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 97 68 30 196617 read;
#P toggle 42 44 15 0;
#P newex 42 68 52 196617 metro 20;
#P newex 84 96 63 196617 jit.qt.movie;
#P connect 0 0 4 0;
#P connect 3 0 0 0;
#P connect 1 0 0 0;
#P connect 2 0 1 0;
#P window clipboard copycount 5;

No comments: