


On Plug-ins and Extensible Architectures 173
gManZboy writes "Developers who want a flexible, configurable, IDE have long preferred plug-in architectures such as Eclipse over what they might view as the bloated, monolithic alternatives. Ever wondered how it all works? Well, ACM Queue just posted an article by someone who has worked on Eclipse since its inception, Dorian Birsan. He gives a great explanation of the Eclipse architecture as well as a thorough analysis of things to watch out for when developing or working with pure plug-in architectures."
Lots of plugins = bloat (Score:2, Interesting)
How long is it before someone has so many plugins installed they are back to square one for bloat? Any operating system runs well when you first start it up. Users run into bloat problems after they have installed weatherbug, messenger programs and all the other crap they must have.
Re:Lots of plugins = bloat (Score:5, Insightful)
Bloat then becomes a consequence of the user's choices and not something forced upon the user by the developer.
Re:Lots of plugins = bloat (Score:2)
Bloat then becomes a consequence of the user's choices and not something forced upon the user by the developer.
This sounds somewhat like the defense fast-food restaurant chains use against charges that they promote obesity.
Re:Lots of plugins = bloat (Score:4, Insightful)
Re:Lots of plugins = bloat (Score:2)
Ah yes... "I can't be responsible for my actions when the end result is something bad. I can only be responsible for things that went well."
That kind of drivel makes people who think logically become extremely cynical.
Re:Lots of plugins = bloat (Score:2, Insightful)
How in the hell can you relate a serial killer to fast food? I will not have any sympathy for someone who makes a choice to put food in their mouths they know will kill them eventually.
You go to their place of business and order food that unless you are a complete dumb ass you know what you are getting. Stop trying to make excuses for the people who think if they drink diet soda they won't get fat.
Re:Lots of plugins = bloat (Score:2)
If its stuff the user must have then how can it possibly be bloat? If its stuff they just want then its additional functionality to be used at their discretion. Perhaps you expect everyone to make do with just a kernel?
Re:Lots of plugins = bloat (Score:2)
Bloat is only a problem when you can't do anything about it, such as MS Word; but even then you can choose not to install some components that you don't feel a need for.
Re:Lots of plugins = bloat (Score:2)
Sheesh. Come on, think for a second before posting.
And finally, people will always do stupid things ( like installing *every* single plugin for JEdit ). But *you* don't have to.
Re:Lots of plugins = bloat (Score:2)
Re:Lots of plugins = bloat (Score:2)
Actually, it's a bit of both.
Programs that have more features than you'll ever truly use could be considered "bloated." If they were modular features, then you could choose to install or not, and the program size would be appropriate for what you do. This, of course, means there must be a good, solid underlying design of whatever it is.
Poor programming practices lead to bloat too. This goes back to the old program optimiza
Re:Lots of plugins = bloat (Score:1)
The plug-ins are scanned at launch for a plug-in property list (PiPL) resource, describing the plug-in's name (for building menus) and basic behavior. They're only loaded and executed when the user applies them.
Now if only Acrobloat shared AE and Photoshop's plug-in architecture,
Re:Lots of [definitions] = bloat (Score:2)
Is a program that does all that you need, and no more "bloated"?
Absolutely not, unless of course it's so slow you can't ever get anything done. Some applications are obviously bloated (Microsoft Word) and some are not (vi), but most things fall somewhere in the middle. We use them until something less bloated
Could you tone down the editorial bashing? (Score:4, Funny)
Developers who want a flexible, configurable, IDE have long preferred plug-in architectures such as Eclipse over what they might view as the alternatives that promote pedophilia and Satanism.
It just sounds more professional.
Re:Could you tone down the editorial bashing? (Score:2)
Surprisingly like cooking! (analogy) (Score:5, Funny)
But, it can be a tremendously dangerous[tt] if not done correctly, so you could almost make the analogy of baking instead of cooking. Only specific elements can be used or you could ruin the whole dish... could you relate bloated software that hardly runs with something like a ruined custard or creme brulee??
Re:Surprisingly like cooking! (analogy) (Score:2)
I want the "all your plugins are belong to us" Borg plug-in.
After all, to extend your food analogy - it really IS like cooking - if you don't have everything just right, it might be (barely) edible, but it will taste like shite.
The article speak of plug-ins managing plug-ins. and then goes on to this:
Re:Surprisingly like cooking! (analogy) (Score:3, Funny)
Re:Surprisingly like cooking! (analogy) (Score:2)
The article speaks of up to 10,000 plugins:
That's 100,000,000 possible interdependency conflicts in a 1-on-1 scenario. And 10,000 pieces of code that may or may not be present on any one system. Version problems. Missing/out-of-date problems. Dependency problems.
Then there's the security problems. 10,000 links - and your chain is only as good as the weakest one.
With 10,000 components
Re:Surprisingly like cooking! (analogy) (Score:2)
Typically, we want to manage things in a declarative sort of way, with a high waterline, and have the code fret about the annoying details.
Then, suddenly, things no worky-worky, or we need to improve time/space/features of the code. Now we want that waterline lower, exposing more of our iceberg, so we can do some imperative sorts of things with it.
While not a GUI, I've been recently living this iceberg
Re:Surprisingly like cooking! (analogy) (Score:2)
Re:Surprisingly like cooking! (analogy) (Score:2)
Sure, your system has thousands of components, and once in a while something breaks after an update.
But how about an app you've written that depends on ALL of those thousands of components (they've already deployed apps with greater than 1,000 plug-ins). The changes of your app breaking just got bigger, because of all the dependencies.
It's a di
Re: (Score:2)
Re:Surprisingly like cooking! (analogy)-Baked good (Score:2)
Re:Surprisingly like cooking! (analogy) (Score:2)
Well, they do have a philosophy of "eating their own dog-food". So much the better if it tastes like dog-food.
So, what type of code do people produce?
Re:Surprisingly like cooking! (analogy)-Baked good (Score:2)
Inversion of Control (Score:1, Flamebait)
Plugin Hell (Score:4, Insightful)
Most of you have probably experienced "DLL hell" at some point and will look with suspicion on something that has the potential of being a "plug-in hell."
I think we already passed the potential phase a long time ago. After a while you either give up installing the latest milestone or give up your added plugins.
Re:Plugin Hell (Score:2)
Hurd (Score:3, Interesting)
Now look at Hurd. Hurd is a plugin environment if I understand it correctly, but it is too low level, but I still wonder, will it be possible to use Hurd as not only OS level runtime but for high level apps?
Just a thought.
Re:Hurd (Score:2)
Eclipse and remote debugging (Score:1)
Re:Hurd (Score:5, Informative)
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=80
to the java command when you run the app you want to debug allows Eclipse (& others) to attach on port 8000 (of course you can choose any unused port number)
If you want to debug an applet while it's running in a browser, you can specify the same arguments in the applet control panel.
Re:Hurd (Score:1)
two concepts (Score:5, Informative)
first key concept: late-binding.
second key concept: single-root.
summary: this article talks about a non-single-root late-binding architecture. there are, of course, other organizations: the quintessential single-root late-binding program [gnu.org], and the raft of non-late-binding programs [freshmeat.net].
thus ends our cs moment of the day. we now return you to your regularly scheduled inanity...
Article Text (Score:5, Funny)
Furthermore, plug-ins plug-ins plug-ins so that plug-ins plug-ins.
Mine eyes glazeth over.
P.S. plug-ins
P.P.S I just like saying plug-ins. It's a funny word. Plug-ins. Hee!
Re:Article Text (Score:4, Funny)
Re:Article Text (Score:1)
Joking, of course (Score:5, Insightful)
That was meant to be funny, right? Because few things are as so monolithically all-encompassing as Eclipse.
I should reveal personal bias from the outset: I despite Eclise. Though it sits open in a window just next this one right now, I still loathe it with an utter passion.
I cannot get its editor to put tabs in realistic, predicable places. I don't want my coding environment to start looking like MS Word, underlining things as problems simply because I haven't finished typing thm yet or am concentrating on another part of the design. I had to immediately turn off most of the auto-typing features such as adding brackets or quotes, because I found it vastly distracting. There's a plug-in to search the preferences! My god, that makes it out of control.
I tried to use it at home the other day to import four existing source files and then generate a build.xml file for me. It never even worked out how to import the files with the right directory root, which given a pattern of src/org/eruvia//FileBelongingToPackage.java should have been src, not src/org/eruvia/appname.
Can't stand the thing.
Cheers,
Ian
Re:Joking, of course (Score:1)
I also can't type. Good, ambiguous typo though - "I despise Eclipse", "I code despite Eclipse"? You be the judge.
Cheers,
Ian
Re:Joking, of course (Score:2, Interesting)
My installed eclipse takes up 99.9 megs and requires a 80 meg JDK and all that bloat, still doesn't make me want to stop using vim.
Re: (Score:3, Insightful)
Re:Joking, of course (Score:4, Funny)
Dude, that's THIRTY TO FIFTY MILLION BYTES!!! And I also do not know how big the Library of Congress is!
Re:Joking, of course (Score:2)
Re:Joking, of course (Score:2)
I should mention that I use Apple Xcode, so I'm not against IDEs per se; I just think Eclipse is way too complicated.
Re:Joking, of course (Score:3, Insightful)
Which is why it is such a great IDE! I can understand all of the minimalists that complain that it's just too hard to use, and want to stick with VIM. I personally love VIM, I still use it on occasion while writing C and PHP. But using VIM for everything is like eating potatoes for breakfast, lunch, and dinner - every day. They're good, but there's a lot more out there.
I have found that Eclipse is one of the greatest software applications ev4r simply
Re:Joking, of course (Score:2)
I have the feeling that any architecture based on plugins is going to be hideously complicated...simply because you have many people working on individual plugins, each with their own vision...there is no Grand Unified Vision of how it all works together.
I respect Eclipse as a great creation, but I'm not yet ready to claim I like it. Still prefer Emacs. Without any Java IDE.
Heck look at t
Re:Joking, of course (Score:1)
Tabs ???? Tabs ??? did you say tabs ? ARRRGGGHHHH !!!!!
Real physical tab chars in code text are an absolute and unpardonable sin !!!!
There I said it.
All of you lads that leave physical tab chars in your code should to be caned, second offenses deserve disembowlement with a spoon...
It is incomprehensable, to me (and yes I am biased but not stupid), why this anachronism persists when the good lord has provideded such things as the sp
Re:^I (Score:2)
Re:Joking, of course (Score:1)
Although I must say that through learning to develop a RCP application (Eclipse Rich Client Platform), the plug-in architecture seems well thought out, but does require a bit of study to figure out how to properly design an RSP app or just a plug-in.
As with any tool, it takes a bit of tim
Re:Joking, of course (Score:2)
Neither can I, but just like you I have Eclipse open on my other monitor. I prefer it to emacs and vi, but for Java I'd use IDEA anyday. It's easier to use, the refactoring tools are sweet and it's much easier to integrate with configuration management and a build system. There aren't as many plugins, but I found most of them to be stable*. * except for the ResourceBundle editor which choked on huge .properties files in the project path.
Dreamweaver has a functional plugin system (Score:4, Informative)
Not only this plugin architecture is powerful, but it's also platform independent - you can easily configure it to generate PHP/ASP or JSP code with the same plugin implementation and different platform files. Everything is XML, and a lot of regexps are used to detect code patterns and parameters that are presented in the visual interfaces. This plugin system is so powerful, that it allowed us to build a fully functional Dreamweaver PHP support layer (they only supported ASP and JSP back then), in just several months.
If you've read the Cooper book - The Inmates are Running the Asylum [amazon.com] you will understand easily how plugins have appeared in Dreamweaver back in the Drumbeat 2000 times - as a layer between the IDE user (Betsy - an HTML designer) and the hardcore programmer (I forgot his name, but he was a he
That's what a lot of companies are doing now with great success. <shameless plug>We're doing it - http://www.interaktonline.com [interaktonline.com] - with significant results - 10000 licenses sold and 500,000 downloads for the free extensions</shameless plug>, and there are also a lot of other companies doing it (you'll find more on the Macromedia Exchange [macromedia.com] - a place where people exchange free and commercial plugins)
Dreamweaver also avoids the plugin hell using a powerful packaging technique (they came with their own package format - MXP - that knows how to do "safe changes" to the IDE - like adding menu entries, code completion features, etc). Those changes are applies using the Extension Manger - a nice piece of software that knows how to "undo" IDE changes when uninstalling an extension.
Want to learn something from a working implementation? Learn how Macromedia did it and a lot of interesting lessons will be learnt.
Alexandru
This post was created (Score:5, Funny)
Eclipse speed (Score:3, Interesting)
Netbeans also has very good html/xml syntax highlighting and completion. I hope Eclipse 3.1 plays catchup on this.
Can it load an arbitrary text file yet? (Score:5, Interesting)
So I try to open a random xml file on my hard disk, and, er...wait, hang on, you can't do that. You can only load a file if it's in your project (or view or solution or whatever word it is that Eclipse uses).
I researched a bit, and found some other people ranting about this, but the official line was you should add such files to your project if you want to edit them, it's the right thing to do, blah blah blah.
Call me stupid, but that kind of language lawyer prescriptive idiocy is what I try to avoid, so I went straight back to my bloated monolithic IDE that nevertheless let me load whatever the hell file I want.
I'm downloading the latest version now to see if it will let me execute a technological marvel such as loading a file I want to edit...we'll see.
(Although the last time I tried Eclipse it took me fecking ages to get a JVM set up that would even allow it to start up - "run anywhere", indeed...)
Re:Can it load an arbitrary text file yet? (Score:2)
Re:Can it load an arbitrary text file yet? (Score:4, Interesting)
You wouldn't use OpenOffice's word processor to write code, would you?
Eclipse is tryly an Integrated Development Environment, not a one-off quick-editor.
I've recently come to love Eclipse (for the most part) -- I use it for PHP development, now.. and I keep kate around for quick one-off edits.
IMO, if you need something that does both, then Eclipse is not for you.
S
Re:Can it load an arbitrary text file yet? (Score:2)
Well, I was mistaking it for a programmer's editor actually - silly old me.
The idea that you can have an editor which allows you to code Java, etc but won't let you edit a simple text file is, quite frankly, ludicrous.
Most programmers I know will use the same text editor for everything they do, whether it's coding or creating/editing a simple config file, searching a log file for text, etc. After all, Use a Si [pragmaticprogrammer.com]
Re:Can it load an arbitrary text file yet? (Score:1)
Like I said, it seems Eclipse is not for you.
S
Re:Can it load an arbitrary text file yet? (Score:2)
And, just to put an even finer point on it, I could use OpenOffice to write code if I wanted! Just save it as a text file. And OpenOffice doesn't force me to only open OO.o docs either!
Re:Can it load an arbitrary text file yet? (Score:4, Informative)
Wasn't that hard, was it?
Re:Can it load an arbitrary text file yet? (Score:2, Informative)
Re:Can it load an arbitrary text file yet? (Score:3, Informative)
Indeed - I thought I'd made it obvious enough that it wasn't possible on the version I tried (and that googling confirmed this), but I guess I didn't make it obvious enough for drchrisharris.
Re:Can it load an arbitrary text file yet? (Score:2)
I'm downloading the latest version now to see if it will let me execute a technological marvel such as loading a file I want to edit...we'll see.
Eclipse is not a text editor. It's an IDE. It allows you to manage and work on separate projects within the same environment, and provides a way to isolate those projects from each other. If your biggest complaint about it is that you can't immediately load it up and edit a file, then you are to a large extent missing the point of the tool. It's not a text editor
Re:Can it load an arbitrary text file yet? (Score:2)
Oh good Lord, can you guys just quit it with the crap strawman arguments?
But it contains a text editor, surely?
Also, IDE = Integrated Development Environment. In other words, I shouldn't have to leave the IDE to do something simple like edit a text file while I'm developing. Maybe that's just me.
It's probably pertinent to note the Eclipse is the only IDE I've ever use
Re:Can it load an arbitrary text file yet? (Score:2)
But it contains a text editor, surely?
Yes, of course it does. You can even set it up so that the more familiar emacs key bindings are in place. It has code folding, syntax highlighting, regular expression search & replace, highlight occurences, common class templates, code block templates, and etc.
It's probably pertinent to note the Eclipse is the only IDE I've ever used that wouldn't let me load any old text file I liked.
I think you're having a problem with your configuration, then. I am able to e
Re:Can it load an arbitrary text file yet? (Score:2)
It can now [slashdot.org], yes.
Re:Can it load an arbitrary text file yet? (Score:3, Insightful)
As people have pointed out. Eclipse is an integrated development environment. Sure, you just want to edit a file, but editors in Eclipse are part of that integrated environment. As a simple example, you can select the name of class and ask to see its subtype hierarchy. For that to work, you need to build a model of a bounded set of classes. Hence, the workspace: a bound on the set of files to consider, and a convenient API for working with them.
Setting up projects in a workspace isn't terribly hard, and
Re:Can it load an arbitrary text file yet? (Score:2)
Sounds like a meta-OS to me... (Score:4, Interesting)
I find it amusing that the article even calls the plug-in manager the "kernel". It seems like the research into this field is basically working on some meta-OS rather than something that will provide real extensibility to a system. All it tells me is that OSs need better interface specifications to provide what folks are looking for and so write their own meta-OS.
Re:Sounds like a meta-OS to me... (Score:2)
They tend to call this a 'Virtual Machine'
Re:Sounds like a meta-OS to me... (Score:1)
Re:Sounds like a meta-OS to me... (Score:2, Interesting)
------- Plain Ol' Text ------------------
Think....OSGi. Look it up. At the core of Eclipse is the OSGi framework ( now running in your favorite mid to upper range BMW's navigation system, among other things ). The OSGi framework is nice, but GOD is it big ! As the co-developer of a commercial product built around Eclipse and OSGi ( sorry...confidentiality agreements are a biatch, aren't they ? ), I can testify that as nice as it is to have a "plug
Re:Sounds like a meta-OS to me... (Score:2)
Using Eclipse for Flash SWFs (Score:1)
unfortunately flashout [potapenko.com], which displays the newly compiled SWF inside eclipse and logs the debug output seems to work only under windows. linux and osX users have to use their browser and a custom solution for the debug info.
i love my new workflow. it's so much better than having flash open in another window only to compile my classes.
SharpDevelop is another pluggable IDE (Score:4, Informative)
I had written a couple of plug-ins for #D, and it took me less that two days to understand the architecture. Parts of the application are hacks, mainly because it does not have an industry heavy weigth behind it, unlike Eclipse. The project runs on contributions.
SharpDevelop architecture includes pluggable language parsers, components, add-ins etc. I will definitely recommend this application to any
SharpDevelop - "add-in" architecture using XML (Score:3, Interesting)
IBM loves to shove Eclipse down our throats (Score:3, Interesting)
So far the net result has been bloated and very slow loading applications. The minimum memory requirement is 512mb with 1gb being recommended on user groups.
After my experience with it at work I would not touch it at home. Not a single developer here uses Eclipse, they all prefer to use the older programs that are no longer supported or are being phased out.
Re:IBM loves to shove Eclipse down our throats (Score:2)
The memory requirements are probably because of the compile-as-you go Java, which I can no longer live without. Ditto for the refactoring features, variable renaming is fantastic. The enhanced syntax coloring of myeclipse allows me to see what functions are inherited and ones that aren't, if a variable is local, argument, or method, if its static or not, all at a glance
A well written java program ?! (Score:5, Interesting)
Let me tell you this.
A furiously anti-java, C++ist, debianist friend of mine tried it and found it cool for his C++ development !
It is a living demonstration that all that religious wrath around java is a non-sens.
Compared to the usual "Java is slow, Swing stinks, it closed source for playmobile developers."
Eclipse is fast, GTK native, full open-source with a very well done plugin architecture
You even have a full GCJ port for the zealots :
http://klomp.org/mark/gij_eclipse/
Re:A well written java program ?! (Score:2)
All
Re:A well written java program ?! (Score:2)
Eclipse is fast, GTK native, full open-source with a very well done plugin architecture .
Point by point:
Eclipse has a long way to go. (Score:3, Insightful)
The other day I had to write a bunch of code with similar lines. Something like
I hopped over to my *scratch* buffer and typed in a short emacs lisp function (three lines of code, if that). I evaluated it, switched back to my code buffer, and added the lines by hitting a key sequence. The above lines were reduced to M-x attr RET phone RET M-x M-p RET fax RET M-x M-p RET email RET, etc. I could've even bound the attr call to a chorded key press or two.
Total time to look up the docs and write the code to extend emacs: about a minute.
Total time spent compiling code, loading a "plugin", restarting emacs: 0.
Total time spent dealing with "you forgot the static keyword on line 12": 0.
Total time spent fixing my code after upgrading emacs: 0.
This is a feature that's been around for decades. Decades! When extending your editor is this simple, you'll do it more frequently.
Re:Eclipse has a long way to go. (Score:2, Interesting)
Emacs NT /usr/bin/bash --login -i
Cygwin
c:\cygwin\bin\rxvt.exe -fn "Lucida Console-11" -bg DarkSlateGray -fg Wheat -cr Orchid -sl 10240 -tn xterm -g 170x70 -e
perl
and
ant 1.6.1
Each is for a special purpose.
To bring it back to the article, the Eclipse plugins I use are the visual Ant Task validator, the Debug mode with process attach, code completion, debug groups [coming in 3.1] and a whole host of others.
The single
Re:Eclipse has a long way to go. (Score:2)
See, I'm just pointing out that extending Eclipse is nowhere near as easy as extending emacs. If you wanted to change how Eclipse did something -- anything at all that didn't sit well with you -- you'd have a pretty hard time doing it, relative to making a similar change to Emacs.
Re:Eclipse has a long way to go. (Score:2)
Re:Eclipse has a long way to go. (Score:2)
Both are plugin architectures, but that's where their similarity ends.
Re:Eclipse has a long way to go. (Score:2)
Well, there's no reason for it to be that way, is there? I mean, look at TCL, for example. A lot of apps written in C/C++/etc use TCL simply because it's a lot easier to control/extend/whatever their apps with TCL than it is with the implementation language.
Not a good example (Score:2)
$entry = join("", map {cleanAttr("comp_$_",
$totCompany_list[$i][$_]} qw(phone fax email));
which would have been the right thing to write.
In Perl, you should almost never be writing repetitive code. Sadly, you sometimes have to write repetitive Java - eg defining a bean.
Re:Not a good example (Score:2)
Not in my case -- I was rewriting a co-worker's PHP code.
Re:Not a good example (Score:2)
Re:Not a good example (Score:2)
Better non-Java support (Score:1)
More platitudes (Score:2)
The other thing, "monolithic, bloated IDEs"? What other monolithic, bloated IDEs? Somehow I get the feeling the writer could be eluding to Microsoft's Visual Studio since well, IDEs on *NIX-land have largely been non-existent. Or last least, not very popular. Despite my lack of affinity for Microsoft in
Can't stress enough... (Score:2, Insightful)
When you have a late-bound, extensible environment it is so easy to mess with it. Plugins by their very nature are supposed to be powerful, with hooks into the system at very low levels. This makes it very easy for virus writers, malware authors and spyware developers to run their code with full priviledge.
But lets forget about Spyware and Virus for a moment. Lets say you have a plugin architecture for an application that does proprietary financial cal
KDevelop (Score:2, Interesting)
It has a plugin architecture, is native, and even has a decent vi editor kpart via yzis.
And I believe the killer feature of Kdevelop is the ability to import autotools projects - which is basically everything in the open source world.
Eclipse (CDT/C++ plugin) doesn't have this ability yet.
The other night I imported KDElibs straight from cvs, it parsed everything out, I had my class browser with the entire kdelibs project there, changed some
Can we lose this moronic "plug in" term already? (Score:2)
Component, package, library, expansion, whatever
Re:Eclipse (Score:2)
Re:Eclipse (Score:2)
Didn't mean to be troll... (Score:1)