Slashdot Mirror


EiffelStudio Goes Open

WeiszNet writes "Bertrand Meyer, the creator of Eiffel the language and CTO of Eiffel Software in Santa Barbara, CA has announced in his Software Architecture course at ETH Zurich that the company's flagship product - EiffelStudio was released under the GPL today. Here is the press release: and the project's page. Eiffel is an object oriented programming language supporting contracts. Last year the international standard (ECMA) for Eiffel was released and now the initiative to go open has been taken."

20 of 219 comments (clear)

  1. About time by imbaczek · · Score: 5, Funny

    This was the #1 reason for not using Eifell.

    1. Re:About time by x2A · · Score: 3, Funny

      yeah it just quits half way through :-p

      --
      The revolution will not be televised... but it will have a page on Wikipedia
  2. Oh Thank God by bigtallmofo · · Score: 3, Funny

    Eiffel is an object oriented programming language supporting contracts.

    I was beginning to get concerned about the incredible lack of object oriented programming languages currently available.

    Fortunately, there's now another one to choose from that is now free.

    --
    I'm a big tall mofo.
    1. Re:Oh Thank God by shutdown+-p+now · · Score: 5, Informative
      Mods, parent is not "Funny". It's "Uninformed".

      It is true that Eiffel is not the only language with some support for OO out there. It is, however, the only industrial strictly object-oriented language with static typing enforced thoroughly on all levels. This is different from the much more relaxed model offered by the likes of Java and C#. Also, Eiffel is the only such language which fully incorporates Design by Contract (in fact, it is where it originates from) - and by that I mean not only in the language itself, but also in standard and all 3rd-party libraries as well.

      So, yes, there are many good reasons to choose Eiffel over other OO languages.

    2. Re:Oh Thank God by IDontLinkMondays · · Score: 3, Insightful

      When choosing the right tool for the job, you choose the tool that can meet a balance of three particular things.
          1) Best tool for producing the application
          2) The tool you can find people that know how to use
          3) The tool with the best support

      Well, there are tons of places that Eiffel is the best tool for the job. I would even imagine that there are circumstances where the support is there. Problem is finding the people that know how to use it.

      I've been goofing with Eiffel ocassionally, but time and time again, it proves the wrong tool for the job. It's just too different from other languages to be able to meet my needs. I always fall back onto C++ with a widget toolkit (such as Qt). It is definately not because C++ is a better language. It is definately not that Qt is the ultimate widget toolkit. It is because there is a good balance of all 3 criteria being met.

      I am 100% in favor of companies trying to sell us a new language, but what it really boils down to is that only a handful of people will use it and other than an ocassional interest article, this is probably the big hay day for the language since there is a open source news worthy article written about it.

      Another great example of a language that is probably better but has never picked up steam is Scheme. Every compiler developer in the world loves scheme. It is by far the most heavily optimized compiled language on the planet. It has great merits. But the fact is that with the exception of the scheme compilers written in scheme and an ocassional university project, the language stalled years ago.

      The parent comment to yours was sarcasm... it may have been misinformed as you comment, but the fact is that he is right in his sarcasm.

    3. Re:Oh Thank God by civilizedINTENSITY · · Score: 3, Insightful

      "I am 100% in favor of companies trying to sell us a new language...", but since Eiffel dates back to 1985-86, I don't know what you mean.

      "Another great example of a language that is probably better but has never picked up steam is Scheme. Every compiler developer in the world loves scheme. It is by far the most heavily optimized compiled language on the planet. It has great merits. But the fact is that with the exception of the scheme compilers written in scheme and and an ocassional university project", which is what it was designed for: Scheme was meant to be simple rather than useful, in order to further the study of such things as program correctness (software algorthims studied as mathematics) by academia. The industrial version is Common Lisp.

      When discussing the right tool for the job, comments regarding the attempt to use a thermometer as a hammer (Scheme vs Common Lisp) make it hard to take your C++ vs Eiffel seriously, especially since you seem to think a 21 year old language is "new". It is old enough to drink.

    4. Re:Oh Thank God by maxwell+demon · · Score: 3, Funny
      It is old enough to drink.

      I'm not sure that drunken languages are an advantage :-)
      --
      The Tao of math: The numbers you can count are not the real numbers.
  3. Re:Info please? by Jello+B. · · Score: 5, Informative
  4. Re:Info please? by jbolden · · Score: 4, Informative

    The big thing is design by contract. Calling procedures specify what they will guarantee functions and what they expect, functions guarantee what they won't change and list what they expect. This makes code reuse actually practical, since global effects are spelled out.

    For example a sqrt function will require x >= 0, that is the calling function must have checked. Since this is specifically listed in the contract your calling function is expected to be able to indicated how it knows that x >= 0 before computing sqrt(x).

    The second big thing is that the language is pretty high level and you just give hints to the compiler about how to implement things (sort of like Oracle SQL) unlike Java or C++ where implementation details are definitely part of the program.

    That's pretty much it.

  5. Re:Info please? by Coryoth · · Score: 5, Informative

    I haven't heard of this language, and don't want to do too much research (go go procrastination!). Can anyone tell me some of the basic info about this, and what makes it different? Why would I want to use this language over something already available, for example.

    Eiffel has been around for a long time, and is a mature language. What does it offer? A very clean and well designed Object Oriented language with a very clear and readable syntax and great support for Design by Contract. The principle behind Design by Contract is simple enough: objects, and methods provide contracts - providing you meet their stated requirements, the guarantee things in return. Statically typed languages offer some level of this already: you have to provide paramters of the right datatype, and it guarantees the datatype of the return type. Design by Contract essentially just extends this principle to allow for much more expressive contracts than just type signatures, and things like object invariants (properties of an object that are guaranteed not to change). The result is a much clearer statement of intention as to how code should work, and a powerful test harness that massively speeds up the test/debug cycle. In theory you can achieve this by liberally sprinkling assertions through your code. The advantage of having a language with explicit support for Design by Contract is that things like inheritance of contracts and invariants are all handled automatically and elegantly etc.

    As well as this release of EiffelStudio as open source, there's SmartEiffel which is an open source Eiffel compiler (which supports a number of extra features beyond what is given in the recent ECMA spec).

    Jedidiah.

  6. Eiffel Contracts by j · · Score: 5, Informative
    I had to look up what Eiffel Contracts were:

    To be sure that our object-oriented software will perform properly, we need a systematic approach to specifying and implementing object-oriented software elements and their relations in a software system. This article introduces such a method, known as Design by Contract. Under the Design by Contract theory, a software system is viewed as a set of communicating components whose interaction is based on precisely defined specifications of the mutual obligations -- contracts.

    The benefits of Design by Contract include the following:
    • A better understanding of the object-oriented method and, more generally, of software construction.
    • A systematic approach to building bug-free object-oriented systems.
    • An effective framework for debugging, testing and, more generally, quality assurance.
    • A method for documenting software components.
    • Better understanding and control of the inheritance mechanism.
    • A technique for dealing with abnormal cases, leading to a safe and effective language construct for exception handling.
  7. The Real Link by ploss · · Score: 5, Informative

    The link for the project page goes to a wiki page with not too much information. Not to sound too much like a slashvertisement, I'm sure they would want you to also link to this page, containing more information:

    http://www.eiffel.com/products/studio/

    Also there should be a PDF warning on the ECMA standards link, just a thought.

    --
    What are the odds that some idiot will name his mutex ether-rot-mutex!
  8. flashback by agendi · · Score: 5, Interesting

    I'm having first year comp sci flashback! I remember at the time being taught Eiffel as my first OO langage used to teach OO techniques and design - I hated it back then it felt clunky, overly protective and claustraphobic. Now after almost 10 years as a programmer every so often I crack open the old textbooks and think "wow.. that is rather elegent and expressive". Eiffel is engineered/designed - it is deliberately not suited if all you want to do is hack about. It's funny, only yesterday I was using Eiffel as an example to my IT team as a language that forced strong contractual based interfaces.

    --
    I just can't be bothered.
  9. To make a long story short ... by ScrewMaster · · Score: 4, Funny

    In other words, Algorithms + Data Structures = Programs. I'll be damned ... that Wirth guy was right after all.

    --
    The higher the technology, the sharper that two-edged sword.
  10. the "pet rock" of programming languages by Speare · · Score: 3, Insightful
    This guy has had what, fifteen years? The language is a niche language in a crowded field of languages. It's not going to just catch fire and get more fans because you slapped the seal of Free Software onto it. It smells more of an abandonware goodwill gesture than anything.

    As a language, Eiffel doesn't make it more convenient to express a problem to receive a good solution, it just makes the programmer follow the public speaker's maxim:

    • First, say what you're about to say; then say what you came to say; then say what you just said.

    Programming by contract is essentially just writing twice as many unit tests, wrapped all around the code that is supposed to be doing the work. It's even easier to write bad tests when it's right next to the code being tested, so why bother?

    Bertie, give it up already!

    --
    [ .sig file not found ]
    1. Re:the "pet rock" of programming languages by Coryoth · · Score: 5, Informative

      Programming by contract is essentially just writing twice as many unit tests, wrapped all around the code that is supposed to be doing the work.

      Programming by contract is writing your unit testing harness as assertions while you write the code, and having those assertions respect inheritance elegantly, saving you considerable work if you actually have any sort of class heirarchy built up in your code. Programming by contract is about stating clearly how you intend your code to work so that it is much easier to determine whether the code you wrote actually does what is intended or not. Programming by contract is about providing clear and explicit documentation of the interfaces making code reuse and code maintainability far easier.

      Programming by contract is not the right choice for every programming project. Sometimes you want flexibility. Sometimes rapid adaptability is more valuable than correctness or maintability. Sometimes, however, it is not. I don't draw up careful plans to build a treehouse, I hold the wood where I want it to go and cut it to fit: being able to adapt to the exact organic shape of the tree is more important than the strict integrity and finish of the treehouse. Likewise I don't build home by nailing 2x4's together and cutting the next chunk to fit: Having a truly solid structure, with all the walls and floors are properly aligned is more important than the speed with which I can get started building something. Different projects have different needs, and there are plenty of projects for which Design by Contract is a fantastic way to go. Just because you, personally, don't happen to work on those projects, doesn't invalidate its usefulness for others who do.

      Jedidiah.

  11. always wanted to try it by goldfita · · Score: 3, Informative

    I've heard of Eiffel a number of times. The contract by design feature intrigues me; I've always wanted to try it. Well, I guess now I have more incentive. I don't think there's anything like it in the more common languages - C, Python, Java, etc. When I'm coding, I usually try to force myself to make decisions about which objects/functions are responsible for what. But it never seems to work out that way. Things decay over time.

    I've wondered just how much a language can compensate for programmer laziness, carelessness, or just lack of ability. This question recently came up in a discussion. I am somewhat confident that software or languages can be designed to force good behaviour and eliminate (certain types of) mistakes. After all, there are no memory leaks in scripting languages, right? And you can't write to memory that's not yours. In lisp, it's harder to make off-by-one mistakes than in some other languages. Java forces you to handle error conditions with checked exceptions.

    Yeah, I'm going to have to try this eiffel thing.

  12. Back in the day, before C++ was the "winner"... by IvyMike · · Score: 3, Informative

    For all of those hearing about Eiffel for the first time. Back in the mid 80's, when the OO paradigm was first starting to gain traction (but it wasn't obvious that C++ would become the first mainstream object-oriented language) there were debates about whether the big OO language of the future would be C++, Smalltalk, or Eiffel.

  13. Re:Differences by Pxtl · · Score: 4, Informative

    1) Designed for native compilation. Compare it vs. Common Lisp and C++, not the modern enterprise toys.

    2) Design-by-contract. Think of it as taking type-safety squared. Just like static-typed languages are more verbose but compile-time safer than dynamic-type languages (don't argue static/dynamic, you know damn well what I mean), design-by-contract is moreso.

    3) Extremely generic-oriented and had generics designed in, as opposed to the after-the-fact hacks that appeared in C++, Java, and C#. And it has multiple inheritence.

    Plus, I'm also very disappointed by all the languages you listed being non-generic Algol family languages. That's like asking someone "what's your favourite beverage - Coke, Pepsi, or RC Cola?" The example languages you listed are all of the same line of descent (although Ruby pulls more from SmallTalk than the others). Plus, most of the languages you mentioned are just a mishmash of features. Eiffel is more like "Lisp" in the mentality of design, which is "keep the language simple but make it expressive enough that complex concepts can be expressed simply anyways".

    Such languages tend to be much more intelligently structured, safe, and extendable, but also fall short in legibility.

    Basically it is similar to Ada and C++, with a little functional programming thrown in. The problem is that most attempts to make C++ "safer" have focussed on ripping out language features like multiple inheritence and templates that made it "too complicated" but were important, useful features. Eiffel takes the alternate approach - instead of paring down the featureset, it pares down the language while actually expanding the featureset.

    And if you've never coded with generics and still just typecast your container data: get out of my sight you disgusting hacker. OOP without generics is like a car that only turns left - sure you can go right, just do three lefts.

  14. Re:Talk about Situational Irony by jbolden · · Score: 3, Interesting

    You aren't remembering correctly, he went after all open source and free software. His biggest criticism of Stallman and Linus was for not distancing the free software movement from the NRA when Raymond tried to link the two (he held Stallman more responsible since Linus being a Finn might not have known what the NRA was...). He attacked FreeBSD explicitly for poor quality.

    What is funny though he lists a whole bunch of reasons vendors turn something open source that pretty much amount to "it isn't worth keeping as commercial product for reason X" where he lists the possible X's. Anyway here is a reminder:

    http://www.apostate.com/programming/bm-freesoftwar e.html