mellis wrote on Jul 19th, 2007, 5:26pm:Hmm... interesting. It's not a problem to include the .jar, as long as you don't inherit dependencies on things like Quicktime or OpenGL. I know that Processing tends to "just work" and therefore so should anything that uses core.jar, but it seems like it could add a lot of complications. Do you know if possible to call the functions that the PDE needs without worrying about the larger dependencies If not, I can always extract the functions I need.
yes, that's how it's intentionally structured. you can add core.jar and there are no other dependencies like opengl and quicktime. there's been lots of effort (i.e. making size() load things dynamically) to make core an island.
mellis wrote on Jul 19th, 2007, 5:26pm:The larger issue is whether it would be possible to organize the PDE code in such a way that another application could use things like the editing and sketch management functionality while specifying its own menu items, toolbar buttons, file types, etc. This might be something that none of us have time to make happen, but it's possible that with enough applications and developers using the core IDE functionality, the gain of sharing the code would outweigh the work of making it sharable. What do you think
to do this much work, i'd rather start with a better editing and application framework to begin with. for instance, i'd rather start with the eclipse jdt stuff, and build something on top of that. or even use jedit. in either case, i'd start with the original app and strip the thing way down. your point of "none of us have time to make [it] happen" is exactly correct. there's lots of lovely refactoring that could be done, but the amount of time does not match what you'd get for the investment. casey and i have been looking at those sort of changes as the only real change in 2.0.
mellis wrote on Jul 19th, 2007, 5:26pm:At some point, I'm going to need to port the improvements you've made to Processing over to Arduino - I could try to do that by factoring out the common functionality and creating two custom wrappers on top of it - one for Processing and one for Arduino. I think it's only a few classes that would need modifying (Editor, Sketch, EditorButtons) - the rest are either the same for both applications or completely distinct and independent. If I could actually get that done, would you be interested in maintaining that level of abstraction, or would it be too much overhead
this level of abstraction sounds about right, and we should discuss how to make it easier on you guys. maybe we can file a bug for this one and continue discussion there on how to put it together properly
this is also the level of stuff i'm dealing with in 0126 (adding multi-window support) and probably also in 0127 (adding tools menu), so it would be good to have it in now.
mellis wrote on Jul 19th, 2007, 5:26pm:In any case, I should thank you again for the amazing work you've done on Processing. Arduino certainly wouldn't exist in anything like its current form if it wasn't for you and Casey. The PDE has been a great foundation for the Arduino environment.
we're just big fans of arduino