Linked by Thom Holwerda on Sat 26th Nov 2005 17:02 UTC, submitted by Megatux
Gnome "I followed the debate about a successor for the C/C++ combination as the primary language for developing the GNOME core desktop platform very closely last month. There has been discussion about a number of options. What I would like to do on this page is give an overview how a probably less well-known language might be a viable compromise as a C/C++ successor. This language is called Eiffel and exists for over a decade. Eiffel takes the principle of Object-Oriented programming to its extremes and, as a consequence, is a very easy to learn language."
Thread beginning with comment 65117
To read all comments associated with this story, please click here.
Eiffel? Ummm, no - try D or Haskell
by on Sat 26th Nov 2005 21:51 UTC

Member since:

Eiffel - Yecch ... Has anyone seen "hello world" in Eiffel?

Here it is -
-------------------------------------------------
the HELLO_WORLD class (hello_world.c)
-------------------------------------------------
class HELLO_WORLD
creation make
feature make is
local io:BASIC IO

do!!io
io.put_string("%N Hello World!!!!")
end --make

end -- class HELLO_WORLD

-------------------------------------------------
program to run HELLO_WORLD class (hello_prog.pdl)
-------------------------------------------------
program hello_prog
root HELLO_WORLD: "make"
cluster "./"
end
include "$EIFFEL_S/library/lib.pdl"
end -- hello_prog

**********************************************

Mmmmm ..... not my cup of tea ... ;-)

If a somewhat "lesser-known" language were to be used, one possibility might be "D". This is best known for the version from "Digital Mars", but there's also OpenD ( see OpenD.org). Think "cleaned-up C++" basically.
Pretty fast too - see the "language shootout" page at

http://shootout.alioth.debian.org

( Ok, there are always caveats with language-shootouts and benchmarks, but D is usually in the top 4 or 5 in the tests. )

Then there's always Haskell. Activity in the Haskell area has really picked up in the last month or two. Several new Haskell compilers are being done. Everyone knows of GHC, but new ones include YHC, EHC and JHC.
YHC seems very promising. Still new, but it's quite fast and produces very small binaries. YHC itself is small as well.
Just my 2c worth ....

Reply Score: 1