Search the web
Sign In
New User? Sign Up
SeaFunc
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
computer language comparisons (expressivity vs speed)   Message List  
Reply | Forward Message #796 of 820 |
Re: [SeaFunc] computer language comparisons (expressivity vs speed)

>> It does have its problems though. For one, it is at the mercy of each
>> individual implementor and not all implementors are created equal in
>> all languages.
>>
>> For examples-- how did Java end up being equally expressive as C++.
>> The only thing Java has over C++ is reflection (and meta-template
>> programming is by and large much more useful).
>
> I think it's important to remember that these programs were optimized for
> speed; very few of them, if any, are written the way one would normally
> write a
> program in that language. The "distance" of the optimized program from a
> more
> naïve one is an interesting, though difficult, thing to measure.
>

Good point. As I mentioned in another recent post it seems a bit
disingenuous to use these programs as measures of 'expressivity' in
that case.

>> Another one-- How did F# and C# end up being equally expressive?? F#
>> is *way* more expressive (i.e., less verbose).
>
> Just like you can "write C++ in O'Caml", you can "write C# in F#", and I
> would
> guess that with the present CLR/compilers, this is the way to write the
> fastest
> code, so the F# programs end up having a similar size.
>

Yep, that makes sense. Writing in the style of one language in
another really bugs me too (natural language not excluded)!

> (I have also heard that the shootout limits the way programs can be written
> --
> for instance, insisting on using an array when some data structures might be
> better-suited in a particular language. I don't know how true this is at
> this
> point.)
>

Interesting. Any idea on the reasoning behind that? I can't see any
given the benchmark's stated goal of 'comparing performance'--forcing
certain structures would unfairly penalize some languages it seems.

--Jonathan



Tue Jun 2, 2009 6:57 am

johanatan@...
Send Email Send Email

Forward
Message #796 of 820 |
Expand Messages Author Sort by Date

Given our discussion of what makes a good language last meeting [and the general interest in language amongst FPers], I thought I'd share this quantitative...
Jonathan Leonard
johanatan@...
Send Email
Jun 1, 2009
5:22 pm

That is a really great visualization of the benchmarks game -- seems to really answer the question. Another question I would like to ask the benchmarks game...
Mitchell Johnson
d1kaiopolis
Offline Send Email
Jun 1, 2009
11:59 pm

It does have its problems though. For one, it is at the mercy of each individual implementor and not all implementors are created equal in all languages. For...
Jonathan Leonard
johanatan@...
Send Email
Jun 2, 2009
12:20 am

... I think it's important to remember that these programs were optimized for speed; very few of them, if any, are written the way one would normally write a ...
Shachaf Ben-Kiki
slbkbs
Online Now Send Email
Jun 2, 2009
2:12 am

... Good point. As I mentioned in another recent post it seems a bit disingenuous to use these programs as measures of 'expressivity' in that case. ... Yep,...
Jonathan Leonard
johanatan@...
Send Email
Jun 2, 2009
6:57 am

... I think that's actually an interesting component to "The Game". Usually people writing in language X have an incentive to make their language look good. I...
Mitchell Johnson
d1kaiopolis
Offline Send Email
Jun 2, 2009
2:38 am

Yes, but look good in terms of performance or code size? I'd prefer shorter easier to maintain codes with bottlenecks optimized away where required. Given...
Jonathan Leonard
johanatan@...
Send Email
Jun 2, 2009
5:54 am

P.S. If it weren't obvious from my last mail, I didn't realize that each 'language community' submitted its own codes. For some reason, I had figured there...
Jonathan Leonard
johanatan@...
Send Email
Jun 2, 2009
5:56 am

... The benchmarks seem to be saying that some bottlenecks are not going to be optimized away, at least not in the languages themselves. I guess if one...
Brandon Van Every
vanevery0
Offline Send Email
Jun 2, 2009
1:51 pm

I think one way to deal with the problem of high speed but ugly code would be to change the acceptance criterion. Instead of just keeping the fastest solution...
Alan Mortensen
mortea
Offline Send Email
Jun 3, 2009
10:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help