POV-Ray : Newsgroups : povray.off-topic : Sometimes, Haskell wins Server Time
7 Sep 2024 03:20:14 EDT (-0400)
  Sometimes, Haskell wins (Message 11 to 20 of 33)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Orchid XP v8
Subject: Re: Sometimes, Haskell wins
Date: 23 Sep 2008 16:12:27
Message: <48d94dab$1@news.povray.org>
nemesis wrote:

> yes.  Something more is getting in the way.

Like Warp suggested, maybe his Perl coding just sucks for some reason?

>> Anyway, whatever. My point is that Haskell isn't nearly as slow as
>> everybody thinks it is.
> 
> It's not slow at all.  It's just not nearly as fast as C/C++, but then, few are.
> And fewer are as high level and concise as Haskell. :)

Heh. The Haskell bods are currently real excited because Haskell is 
ranked 3rd is the new parallel benchmark table. (But then, most of the 
other languages haven't submitted any parallel code yet.) It's lagging 
behind C++, but just faster than C.

Of course, as somebody pointed out, the C and C++ implementations are 
using OS threads, while Haskell is using lightweight Haskell threads, 
"so it's not a fair comparison". Debate that if you will...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: nemesis
Subject: Re: Sometimes, Haskell wins
Date: 23 Sep 2008 17:55:01
Message: <web.48d9658156396d9e773c9a3e0@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> nemesis wrote:
>
> > yes.  Something more is getting in the way.
>
> Like Warp suggested, maybe his Perl coding just sucks for some reason?

ah, that's it!  The thing between the chair and the keyboard...

> Heh. The Haskell bods are currently real excited because Haskell is
> ranked 3rd is the new parallel benchmark table. (But then, most of the
> other languages haven't submitted any parallel code yet.) It's lagging
> behind C++, but just faster than C.

I read the thread in the Haskell mailing-list.  Checking it out, both g++ and
ghc are behind some newcomer:  ATS.
http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=all

Yet Another High Level Language with C syntax and performance and functional
programming semantics.  Joining D for candidates for next C/C++.


Post a reply to this message

From: Warp
Subject: Re: Sometimes, Haskell wins
Date: 23 Sep 2008 18:08:18
Message: <48d968d1@news.povray.org>
nemesis <nam### [at] gmailcom> wrote:
> Yet Another High Level Language with C syntax and performance and functional
> programming semantics.  Joining D for candidates for next C/C++.

  Like D (and a bunch of others), also probably doomed to failure.

  Many people have attempted in making a "better" C/C++, and many have
failed. Some attempts have good ideas, but they just don't get popular,
no matter how much they are advertised. Basically nobody knows what D is.
Another good example is Objective C, which has a rather small market
(which is growing a bit due to the iPhone, though).

  Not all attempts have failed though. Java and C# are examples of
successful ones. (Although in their cases the changes from C/C++ have
been a bit more radical.)

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: Sometimes, Haskell wins
Date: 23 Sep 2008 21:38:10
Message: <48d99a02$1@news.povray.org>
Warp wrote:
> Another good example is Objective C, which has a rather small market
> (which is growing a bit due to the iPhone, though).

I thought all the NeXT and thus Mac OSX stuff was programmed in 
Objective-C? (Which was around even before the NeXT, also.)

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

From: Invisible
Subject: Re: Sometimes, Haskell wins
Date: 24 Sep 2008 04:37:21
Message: <48d9fc41$1@news.povray.org>
Warp wrote:

> Basically nobody knows what D is.

I recall seeing a language floating around (a *long* time ago!) called 
E, and another called F.

IIRC, the language before C was called B, so it's quite possible that 
more than one person has come up with a "better than C" language and 
called it "D" or "E" or whatever... ;-)

>   Not all attempts have failed though. Java and C# are examples of
> successful ones. (Although in their cases the changes from C/C++ have
> been a bit more radical.)

The conspicuous thing is that both of those languages are backed be huge 
well-known corporations...


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Sometimes, Haskell wins
Date: 24 Sep 2008 15:44:00
Message: <48da9880@news.povray.org>
nemesis wrote:
> Languages like python and ruby abuse of their dynamic nature by going
> beyond just dynamic typing and allowing all kinds of funky and slow
> runtime
> metaprogramming.  A native compiler has no chance here.

But also, languages like python and ruby are often used where performance
doesn't really matter. Last I checked, the de-facto implementation (CPython
interpreter) doesn't even do constant folding.


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Sometimes, Haskell wins
Date: 24 Sep 2008 15:46:48
Message: <48da9928@news.povray.org>
Darren New wrote:
> Warp wrote:
>> Another good example is Objective C, which has a rather small market
>> (which is growing a bit due to the iPhone, though).
> 
> I thought all the NeXT and thus Mac OSX stuff was programmed in
> Objective-C? (Which was around even before the NeXT, also.)

Yes. All apps on Mac are made in Objective-C. Non-GUI Objective-C code from
a Mac application can probably run unmodified on the iPhone. It's just the
GUI frameworks that changed completely.


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Sometimes, Haskell wins
Date: 24 Sep 2008 15:47:13
Message: <48da9941@news.povray.org>
Invisible wrote:
> IIRC, the language before C was called B, so it's quite possible that
> more than one person has come up with a "better than C" language and
> called it "D" or "E" or whatever... ;-)

Do you know why C# is called that way?


Post a reply to this message

From: Warp
Subject: Re: Sometimes, Haskell wins
Date: 24 Sep 2008 16:12:30
Message: <48da9f2d@news.povray.org>
Nicolas Alvarez <nic### [at] gmailcom> wrote:
> Invisible wrote:
> > IIRC, the language before C was called B, so it's quite possible that
> > more than one person has come up with a "better than C" language and
> > called it "D" or "E" or whatever... ;-)

> Do you know why C# is called that way?

  Well, when it was a pretty new thing, I heard that # in the name was
actually four + symbols, so it's C++++, ie. "C# is to C++ what C++ is
to C".

  I don't know if it was just a joke.

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: Sometimes, Haskell wins
Date: 24 Sep 2008 16:17:37
Message: <48daa061$1@news.povray.org>
Warp wrote:
>   Well, when it was a pretty new thing, I heard that # in the name was
> actually four + symbols, so it's C++++, ie. "C# is to C++ what C++ is
> to C".

Given that it's pronounced "C Sharp", I expect it's because it's half a 
note higher than C. Like, on a piano keyboard.

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.