Showing posts with label DSM vs UML. Show all posts
Showing posts with label DSM vs UML. Show all posts

Thursday, January 11, 2007

DSM growing, UML slowing

The number of hits on Google for the string "domain-specific modeling" is clearly showing exponential growth. Today Google treated me with 88,100 results, making the graph I created 2 days ago (above) already outdated (darn...it has that same characteristic UML models also have).

I was interviewed by the German magazine "ComputerZeitung" for their focus on modeling and model-driven development, the
article is available here.

Reading it myself, it surprised me to have the magazine report Bran Selic talk about a new wave of UML:

"Wir bauen substanzielle semantische Definitionen ein. So wird die Sprache ausdrucksstärker und zu einem besseren Kommunikationsmittel."

Translation: We're building substantial semantic definitions into UML. This way, the UML will become more expressive and a better vehicle for communication. In other words, it seems the OMG thinks it a good idea to make it even more complex and even less suitable for code generation: Adding precise semantics to a general-purpose modeling language, leads you to some sort of ehr... general-purpose-domain-specific modeling language (hmmm try to market that).

UML is poorly suited for generating anything else from it than simply a copy of what it represents. Normally this means documentation. Adding precise semantics to the UML means the committee of tool vendors (all with their own agendas) need to agree on those precise semantics, which is impossible, period. The precise semantics will most likely end up being very loosely interpretable precise semantics, that you then can probably extend with semantic profiles of something like that. The end: a 160,000 page UML specification with the "U" clearly meaning "universal". Great idea Bran, let's add some more stuff to the UML.
The OMG seems to struggle with its mammoth specification, a new wave is needed because competing, disruptive technologies (domain-specific modeling) is eating away at the base. The only thing to do: move upmarket, add more stuff to your product (read this thought leading book on it).

A mark on the wall of UML's demise, is Telelogic, which now offers its UML tool for zilch, all you need is register and download. Their sales team will then no doubt hunt you for costly add ons. The UML tool market is under heavy stress, with hundreds of free tools which are perfectly fine for UML since you cannot generate all that much useful stuff from the de-facto modeling language anyway. Some tools claim they do however, and therefore cost mucho, you'll need to fork-out a substantial budget. Then, according to a
Compuware-sponsored laboratory test (wow, must be very reliable) you could achieve a productivity increase of 35%. According to the Compuware marketing professionals this is a real "Landmark".

Funny that you do not see so many more of these studies isn't it? After all, MDA and UML are already so widely applied if you listen to the MDA tool vendors and OMG honcho's. Really, where are all the success stories of UML? Care to share one?

Tuesday, November 07, 2006

OMG: "MDA and DSL are the same!"

I came across a webcast by OMG Chairman and CEO Richard Soley in which he claims that MDA and DSL is "the same thing really", since MDA provides DSL's as well via MOF and UML profiles. I agree with Richard that you can get a DSL via MOF and UML Profiles, except that this way we'd have to bin that "little issue" of making sure we get a quality DSL (or DSM language, a term I rather use).

So, what defines the quality of a DSM language? Of course that is debatable but I would suggest "Its ability to define an application correctly, conveniently, concise and completely, with a minimum amount of effort." as that provides the basis for being able to generate 100% of the application's implementation in code. In this light, the lack of quality provided by MOF and UML Profiles leads to incomplete code generation. Richard mentions 70% code generation "which is not bad". Well, it's not good either since it creates the need for keeping models and code synchronized via round-trip engineering, which makes it pretty bad in my book.

When it comes to convenience, Richard "rubishes" the concern so many developers have with UML being too complex, by saying that he - as a man - "likes to have a big tool box", because he "wants to use a tool that is best suited to the problem at hand." To me it seems that Richard's big tool box contains just one very big and complex tool that you can use for whatever it is you wish to develop, therefore not making it very well suited for any specific problem at hand. It's "OK, nothing more", which already may be overstated. Don't give me that crap about it being great for everything.

Providing a developer or company with a great tool for modeling and generating the software he/it wants to build, means providing the ability to conveniently build an own tool that precisely matches the domain-specific requirements, in the shortest time possible. Not by providing a one-size-fits-all big man's box of tools that are "pretty OK" for doing almost anything.

MDA and DSM (using DSL's for generating code) are NOT the same. The OMG would do good to stick to its own MDA vision, abandon it or make an attempt to define it more concisely, instead of positioning it as the greatest thing for all of mankind while trying to jump multiple bandwagons and please everyone's agenda in order to justify its own existense.

Thursday, September 28, 2006

UML vs. DSM - The analysts take on it

Nice to see more and more analyst firms agreeing on DSM making MDD work, where UML fails to do so. My guess is that we'll likely see more and more UML tool vendors claiming support for DSM with suddenly-popular buzzwords like "abstraction", "full code generation", "MOF" en "profiles". In the end, MOF en profiles do not raise abstraction, make things more complex than UML already is while vendor-defined generators don't generate company platform-specific implementations.

Tuesday, September 05, 2006

UML or DSL for Embedded (Continued)

It seems Jack Ganssle picked a boiling subject with his "UML Use" article, seen the number of reactions from the embedded world to how suitable UML really is for embedded development. The OMG and several (OMG) tool vendors would like us to believe it's excellent.

I remember an interesting discussion with someone from I-Logix at a conference on automotive software a few years ago. After "getting" the idea behind domain-specific modeling his reaction was that it maybe was 10 times faster than Rational...but "only" 5 times faster than Rhapsody. He never replied to the question if we could quote him on that though.... :)

An interesting reaction to Jacks article: "In my opinion it would not have been possible to do these projects given the code complexity and the safety level (RTCA DO-178B Level A) without a tool like this that both understands controls and can enforce the rules". Essentially, the tool he mentions is a domain-specific model-driven development tool. I haven't heard about that specific one but clearly it differs from MetaEdit+ in that it is aimed at one domain only, while MetaEdit+ can be made to aim at one domain only.

Another comment: "Sure if you give incompetent carpenter a better hammer and saw your not guaranteed a better house. However, if you give a great carpenter the same tools you may just get a house of your dreams". Well....what about giving a great carpenter a set of great tools? Your dream house would be ready when normally you would have just finished the blueprint!

How about this one: " For smaller companies UML's a good booster stage, but it isn't going to get us into orbit. At some point it becomes extra weight and costs more to use, in time and productivity, than dropping it and continuing on unimpeded."

Or some "juicy" ones ;)
"I dont think that anyone here believes that we will ultimately use the UML models as anything more than blueprints for hand-coding"

"The tool stinks. Sorry I-Logix, but for what we paid, I expect better." "important functions that are just too difficult to use and poor support for multiple developers working on the same model. And please don't tell me that these problems can all be solved by purchasing more training!" Put that one in your pocket I-Logix!

"I've been using modeling diagrams for 10 years on embedded 8-bit projects (first Shlaer-Mellor, now UML). I've never used the generated code in a final product and I doubt I will until the tools come up with a better way to specify and debug the models at the algorithm level."

"UML is an extremely powerful anaylsis tool. What it lacks is a graphical langauge that lets you quickly and easilly define code execution at the algorithmic level." Yes, UML was developed for just that: analysis and design, never for code generation, the UML tool vendors came up with that, figured out it didn't work, added a lot of stuff to it to make it stink less and called it an excellent solution.

"I think there could be an interesting connection between LabView and executable UML. They both have the same concept: draw a picture and execute it. Generally LabView works at a lower level and UML at a higher level. If UML adopts a graphical execution language like LabView, then you might truly have an executable model from top to bottom." Well, your vision is a reality, it's called MetaEdit+

"May be the next generation of CASE tools will cross UML and Visual logic programming (like Simulink) + Concurrency in one tool and it would address architects, designers and programmers all." Surprising that also this guy has more or less the same vision: Graphical design that captures behavior. Well add to that the ability to define yourself exactly how code is generated and you have a DSM environment.

It's good to see that modeling is gaining in acceptance in the embedded world, although possibly more by crisis than by liking. It looks like the embedded area is moving toward a situation where, as Geoffrey Moore describes in his book "Crossing the Chasm", it is "bleeding by the neck". I see it very unlikely that UML is going to stop the blood from flowing.

Thursday, August 31, 2006

UML or DSL for Embedded?

In his article "UML use" on Dr. Dobb's portal, Jack Ganssle wonders how much UML is really used in the embedded arena. Casually he remarks that when visiting the soon to be held Embedded Systems Conference in Boston, you see UML plastered on every expo booth. I am not surprised Jack, especially with a conference program so narrow-minded with 6 classes on just UML and SysML from 3 speakers, 2 of which are OMG members.

In my view, conferences like ESC should provide the platform for demonstrating new ideas and methods – once proven in industry, not for methods and notations (MDA, SysML) that are hyped by tool vendors and standardization organizations who, after modest success in the desktop and IT market now put their hopes on conquering the embedded market with some simple modifications to their standard and tools.

Modeling with UML is happening more in the embedded area, to me that is a sign that clearly the software is becoming more complex, not that embedded developers have - suddenly - started to love or even accept UML. The reactions at the bottom of the article are clear indications of the problem with a one-size-fits all language that a) never was designed for generating code from it and b) never was designed for developing non-object-oriented software or some form of hybrid: The large majority of all embedded development.

One comment describes the UML tool generating object-oriented languages like C++ while actual development is done in C :) as a problem. Actually the perceived problem is not such a problem here: Assuming the UML tool would generate C, you'd still have to throw the code away, trust me.

Another comment claims that non-UML-savvy developers can create diagrams that are "non UML-compliant". Aside from the fact that the "UML tool" here probably is a pen and a paper or some free tool that's the binary version of a pen and a paper, even if the diagrams were "UML compliant" then that really means zilch. UML compliant is not in any way related to quality-compliant, performance-compliant or just.....compliant! UML says nothing about any product, platform, framework or architecture, UML-compliant can actually be a lot worse than non-UML-compliant.

Of course there's the comment about understanding UML being hard. "it seems that engineers understand block diagrams and pretty pictures, with a bit of descriptive text....much better than a full blown UML diagram complete with interaction diagrams". Yes, code visualization (UML) is not exactly reducing complexity, it just presents complexity in another format. UML fails to raise abstraction is why.

And then the nicest, one that sums it all up to me:

"After having used UML based CASE tools for the past 6 years, I must say they are great for prototyping. Other than that, I'll never use them again. Merging changes from multiple developers into one graphical model? It never worked. Code generation? Only the framework and how much time will that save you."

Thank you Jos Dijkstra. UML-based CASE tools simply do not fit embedded development. The problem is not CASE......... the problem is UML.

I hope the highly esteemed program committee of the Embedded Systems Conference - claiming to offer "
high-caliber, solutions-oriented technical sessions" and a "a fundamental educational tool offering practical, how-to classes designed to meet the needs of engineers developing embedded systems" - will aim to proivide something in next years' program that actually works.

Sunday, June 11, 2006

Steven's problem with MDA

Steven has been writing a nice article on code generators on the code generation network. In it he explains his idea of what constitutes a good code generator and some best practices of how to create one. He also elaborates on why he sees that the modeltomodel-MDA (elaborationalist) will be fraught with obstacles and mayhem.

Wednesday, May 17, 2006

OMG does it again: SysML

Two OMG key committees unanimously approved the ONLY submission it received on a RFP for a systems modeling language. I guess there was a real market need for it....

The submission came from "the usual suspects": Their own member organizations like Telelogic, IBM, Artisan...all UML tool vendors and guess what...SysML is a subset AND and extention to the UML --> a profile!!!

It took the tool-folks little over 2 years to come to an agreement on how to bend the UML in such a way that it supports systems modeling better AND that it still can be supported by their own existing UML tools: drop a few diagrams and add a few.... pretty easy from a tool vendor perspective. No real changes to the metamodel of course. God forbid that these vendors need to make a real change to their tools in order to improve the practice of modeling systems. Why in fact would you? We all know that the standard UML is already good enough for anything!

Besides, with a modeling language that's really close to UML you can be sure the OMG will approve it in record time and make sure the new standard gets appropriately hyped.

Monday, March 13, 2006

MDD in embedded

After many years of resistance it seems that modeling is gaining foothold in the area of embedded software development. I do not have any hard numbers about the acceptance though. Anyone able to provide a pointer here?

Development of embedded software has - like in other areas of software development - grown more complex and the pressure of delivering in ever shorter development cycles has increased. A natural way to deal with complexity is the use of software platforms and modeling.

Although embedded developers have no ears for the OMG's MDA, UML currently is the leading notation for modeling embedded software. The problem with acceptance of UML in embedded has several reasons, one of the most important ones is that UML is an object-oriented notation where much of embedded software development still is functional. UML thus requires developers to adopt another way of thinking about development, which - naturally - is meeting with heavy resistance. Furthermore, UML - as is - is poorly suited for embedded development. While reading about companies like ARTiSAN, I was surprised to see they basically have extended the UML metamodel with embedded-specific (read: domain-specific) concepts: time tags in the sequence diagram in order to add support for timing issues, tweaked UML diagrams in creating a system definition diagram and a system architecture diagram, and finally by adding a whole new diagram with completely new-to-UML-modeling concepts: a concurrency diagram. Nice job as they did haul Siemens VDO in with it, who are using their tool for engine management development.

After reading about it I wondered: Why not take it a step further? UML is missing a lot of notation possibilities to capture embedded software and systems correctly, it still requires developers to think in an OO-way, and even IF they already think in an OO-way then it still does not significantly raise abstraction nor support the design work: What does UML really say about engine management systems, about pacemakers, mobile phones, avionics or weapon systems? Yep....zilch.

If however you define a design language yourself, you have the ability to base it on which ever orientation (OO, functional, look & feel, generated output, hardware architecture, variability, domain concepts) is most suited for your situation. There will be no need to learn a whole new notation as you will use the same concepts (and rules that govern them) that you normally speak about (It will be much more easy to communicate with than with UML) and are familiar with. Additionally, it will not allow you to generate just 80% of the production code but 100%. Forget about reverse engineering....you won't need it anymore.

I will likely write more on this area, embedded development is extremely well suited for DSM.

Thursday, March 09, 2006

Definition: MDA tool (2006)

I just read the special on MDA tools in Software Development Magazine. Although it has as title "A special guide to MDA and UML tools", surprisingly some tools in there were neither, nor do their websites claim to be. After reading on, I came to the conclusion that we have to forgive the author for doing this: It seems rather difficult to determine what exactly is an MDA or UML tool these days.

I thought I'd try to give a definition of an MDA tool, based on the information, no doubt carefully prepared and provided by all vendors. Here we go:

MDA Tool: A tool that may, or may not, generate code, limited, or not limited, to just one single technology platform, from models. These models may be the "de-facto" standard UML or some proprietary derivative from this standard (in which case you still seem to be allowed to call it compliant). The model-to-code or model-to-model transformations may, or may not be completely proprietory, and may, or may not be customizable. Some tools already claim to support the "QVT standard" although according to the OMG (the standardizing organization) this is not a standard yet. Some also claim to support the "XMI standard" for model interchange between tools although each tool seems to support its own version of this standard, making model interchange impossible in practice. Also "MDA-compliant" are those tools that support tweaking UML via MOF, proprietary metamodels, standard profiles, non-standard profiles, standard OCL or non-standard OCL ("OCL-like" often is close enough), essentially these are thus standards for de-standardizing the standard OR proprietary means for standard de-standardization, after which you - naturally - may still claim standard-compliance.

Standards somethimes seem to make things difficult, don't they?

Wednesday, February 22, 2006

Hard Fact: MDA Works!!!

Just de-emphasize the "platform independence" issue, forget about the UML and bin the PSM and any reverse engineering you had in mind.

Industrial experiences of this kind of "MDA" show improvements in productivity and quality with a FACTOR of between 5 and 10 times compared to UML-based MDA implementations.....ehr....hypothetical UML-based implementations of MDA that is :)

Monday, January 23, 2006

UML profiles vs. DSL

Some people when they see a DSL for the first time and code being generated from it they respond that they "can do the same with UML and profiles". OK maybe they do not generate all the code but they probably could if they would add action language and use OCL. People often miss the point when seeing a DSL, using concepts from the problem domain it covers directly as modeling concepts. Not only do DSLs use these domain-concepts, the language is also based on the unique rules that are valid in that domain instead of UML's rules that govern object oriented programming in general. The point here, is abstraction.

The level of abstraction on which you specify solutions is directly related to productivity, the higher you can raise it, the more productive you'll become. To those people that keep on hammering that they can do the same thing as a DSL with UML profiles I would ask: Why then is the OMG promoting DSL's based on MOF?