The Artima Developer Community
Sponsored Link

Weblogs Forum
The Limits of Static Reasoning

5 replies on 1 page. Most recent reply: Jun 17, 2003 3:47 AM by Carlos Perez

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Carlos Perez

Posts: 153
Nickname: ceperez
Registered: Jan, 2003

The Limits of Static Reasoning (View in Weblogs)
Posted: Jun 17, 2003 3:47 AM
Reply to this message Reply
Summary
Static Reasoning favors perfect planning over runtime adaptability. This is a favored approach in the software community. However, there are limits to static reasoning, grasping this fact helps achieve better manageability of complexity.
Advertisement

Richard Gabriel in his arguments why "Objects Have Failed", writes:

And as a result we find that object-oriented languages have succumb to static thinkers who worship perfect planning over runtime adaptability, early decisions over late ones, and the wisdom of compilers over the cleverness of failure detection and repair.

Beyond static types, precise interfaces, and mathematical reasoning, we need self-healing and self-organizing mechanisms, checking for and responding to failures, and managing systems whose overall complexity is beyond the ken of any single person.

Sean McGrath makes similar observations:

PI Calculus, the formalism that underlies some common Business Process Modelling languages, may have an interesting role to play in the static versus dynamic languages debate. Lots of powerful techniques that can be used with PI Calculi involve using higher order concepts such as sending names of ports/channels over links, creating ports on the fly and so on.

This stuff drives the math heads nuts because it makes it hard (impossible?) to formally prove equivalence between calculi.

So it boils down to this - do you want to be constrained in terms of flexibility or provably, formally, "correct" at some probably academic level?

Both intersting and compelling arguments, I will admit, I agree with both of them!  That may sound as a surprise to people who recall my piece on "Static vs Dynamic Typing" debate. I had sided with the "Static" side.  Recall however, my arguments were not for more correctness checking rather it was a realization that being more explicit allows a compiler to do a lot of the thinking for you. That is, the navigation, auto completion, on the fly checking, quick fix capabilities that you find in Eclipse and IDEA tend to outweigh the productivity benefits of any dynamic typed language.   People who program in both environments know this as a fact.

However, I've always advocated a loosely coupled architecture.  If you looked at the table I constructed earlier on "loose couping", you see that flexibility is a motivation at the expense of correctness.  Furthermore, I had earlier talked about "programming in the large", and that our notions of programming in the small do not scale for much larger systems.  In fact, the prescription for this, which I explained earlier, is that a dynamic component model is necessary to manage the complexity of building a large scale system.

Thus, the limits of static reasoning can be found at the boundaries between the one author single machine application and the multiple author distributed agent ecosystem.  


Steve Conover

Posts: 37
Nickname: sgcjr
Registered: Feb, 2003

Re: The Limits of Static Reasoning Posted: Jun 17, 2003 10:04 AM
Reply to this message Reply
Carlos -

I liked your points on your post about static vs. dynamic. However after playing with Ruby for a while now, I'm starting to realize a few things.

I think I like Idea a lot because it gets me a lot closer to the productivity you can achieve with a non-typed language that gets out of your way. Java is really in your way. So we call an IDE "good" when it does all these tricks to make Java easier to deal with (well, I think Idea provides a lot of benefit beyond just making Java less of a PITA, but historically this has been the big deal with IDE's).

Nowadays when I'm TDD'ing in Java I really wonder what's so great about all these class names and cast operations I have to type. The only thing I can come up with is when I hit ".", my IDE knows how to show me a list of possible methods/fields.

Or maybe it's just that I love Ruby...

James Britt

Posts: 1319
Nickname: jamesbritt
Registered: Apr, 2003

Re: The Limits of Static Reasoning Posted: Jun 17, 2003 2:22 PM
Reply to this message Reply
I, too, greatly appreciate a good IDE, one that gives me auto-completion and the like. It's certainly harder to do that with a dynamic language, but overall I don't find that the help from an IDE outweights the general ease of development using a dynamic language.

I write a lot of Ruby code, and while I don't have anything with auto-complete, I *can* run ri from inside Vim (or the ever-present Windows cmd box) to get a quick list of methods for the main Ruby library. (I also wrote a utility called Rimport to allow the addition of third-party classes to the ri data store.)

The FreeRIDE project [http://www.rubyide.org/cgi-bin/wiki.pl], a Ruby IDE, may at some point have auto-complete; if and when that happens it'll be no contest.

Carlos Perez

Posts: 153
Nickname: ceperez
Registered: Jan, 2003

Re: The Limits of Static Reasoning Posted: Jun 17, 2003 2:46 PM
Reply to this message Reply
Gentlemen,

I recommend that you take a look at this:

http://www.geocities.com/ceperez/EclipseMainRouter.html

and this:

http://www.ammai.com/downloads/TDDEclipse_viewlet_swf.html

Functionality goes way beyond auto completion. You just need to see it to believe it.

Carlos

Steve Conover

Posts: 37
Nickname: sgcjr
Registered: Feb, 2003

Re: The Limits of Static Reasoning Posted: Jun 17, 2003 4:35 PM
Reply to this message Reply
Agreed, refactoring IDE's like Eclipse and IDEA are great development tools and Ruby certainly needs a refactoring browser.

But frankly for a greenfield project where I have total discretion over technology I would use Ruby over Java if possible. Even with the IDE tricks I'm much more productive in Ruby. And when you look at a piece of Ruby code you have a signal/noise ratio that Java simply can't approach.

Todd Blanchard

Posts: 316
Nickname: tblanchard
Registered: May, 2003

Re: The Limits of Static Reasoning Posted: Jun 22, 2003 4:11 PM
Reply to this message Reply
"the navigation, auto completion, on the fly checking, quick fix capabilities that you find in Eclipse and IDEA tend to outweigh the productivity benefits of any dynamic typed language. People who program in both environments know this as a fact."

I know no such thing. I use IDEA for java development. Its just OK. Not great. Compared to working in a Smalltalk development environment its still no contest. Smalltalk is a live environment with a debugger that supports fix and continue available.

Java still leaves you with a compile edit debug cycle. The editors are better than ever, but the diagnostic tools are still no comparison.

Flat View: This topic has 5 replies on 1 page
Topic: Irritating Interfaces and Iterators Previous Topic   Next Topic Topic: The Hive Mind is Asynchronous

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use