coffeescript - Can I use ProcessingJS compiler for converting Java code to JavaScript for non-ProcessingJS purposes? -


basically, question how use processinjs compiler use in same way coffeescript allows writing client side code, except in java language. i'm thinking of live coding in java in browser similar "try coffeescript" option in coffeescript website.

this confusing question. let's go through step step:

  • the processing language designed syntactically similar java, , compiled java (quoth wikipedia article on processing: "the code translated pure java before compiling").
  • processingjs project 2 parts: 1) js library using canvas, , 2) compiler (written in js) compiles processing code js code uses aforementioned library.
  • it possible use processingjs compile processing code js code runs in real-time directly in browser. indeed, has already been done. (update: interactive processingjs editor link used go has been replaced http://sketchpad.cc/.)

but, when talk using processingjs "live coding in java in browser"... well, processingjs doesn't generate java. processing compiler written in java generates java. if want work processing code in browser , java output, should either:

  1. sidestep processingjs altogether , use java applet, or
  2. use processingjs compile , run processing code in real time, , use ajax send processing code server compilation java.

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -