News for hackers. Stuff that matters.
Re:Ladies, look at your code. Now back to mine. by InclinedPlane on Saturday August 28, 2010 @02:57AM (#1641375)
Considering that Javascript, Ruby, Python, C#, Perl, and even PHP have supported anonymous functions or lambda expressions, this advancement is a long time coming.
Re:Ladies, look at your code. Now back to mine. by Locke1689 on Saturday August 28, 2010 @03:03AM (#1641385)
Oh God it's so much worse than that. You remember who was a coauthor on the original specification? Guy Steele. Yes, "Lambda Papers" Guy Steele. I have no idea how this has taken so long.

Oh and I thought this was hilarious. :)

Re:Ladies, look at your code. Now back to mine. by _delirium on Saturday August 28, 2010 @03:33AM (#1641416)
While Steele's been involved with Lisp and Scheme, he also has a really long history of involvement with imperative languages, which he seems to have kept separate until recently. He's been on the C and Fortran standards committees, for example, and that hasn't caused much noticeable crossover of features like lambdas into those languages, either.
Re:Ladies, look at your code. Now back to mine. by Locke1689 on Saturday August 28, 2010 @04:19AM (#1641461)
Well, that's true to a certain extent. Closures and such really just don't make sense in a C context, especially with manual memory management. Function pointers are probably the most implementation friendly solution in that problem space. I think Apple's blocks are the closest that we'll come, but I'd be hesitant to use them in certain subdomains.

Java, on the other hand, has a completely different application space and feature set. First class functions and anonymous functions seem like natural additions to the language.

Re:Ladies, look at your code. Now back to mine. by 10ren on Saturday August 28, 2010 @04:25AM (#1641467)
He also co-authored the Java Language Specification (with James Gosling and Bill Joy.)

The wise are not dogmatic.

Re:Ladies, look at your code. Now back to mine. by koenigdavidmj on Saturday August 28, 2010 @04:35AM (#1641474)
He's also responsible for^W^Wthe author of http://www.careferencemanual.com/ .
Re:Ladies, look at your code. Now back to mine. by michael_dorfman on Saturday August 28, 2010 @07:16AM (#1641602)
Damn, Fortran with lambdas-- that would be cool.
Re:Ladies, look at your code. Now back to mine. by tjr on Saturday August 28, 2010 @10:13AM (#1641755)
Guy's words: We were not out to win over the Lisp programmers; we were after the C++ programmers. We managed to drag a lot of them about halfway to Lisp.
Re:Ladies, look at your code. Now back to mine. by nocman on Saturday August 28, 2010 @04:27PM (#1642339)
I think it is also important to remember something else here. Guy Steele certainly had significant influence on Java, but he was far from the final decision maker. I'm sure there are tons of things he would have wished Java to have (or not have) but they weren't his call to make. If anything people should be grateful that he was involved at all, since Java would probably have been a lot worse off it he hadn't been.

And to top it off, Guy seems to have that rare combination of being simultaneously super smart and reasonably humble. I have never read anything he's written or listened to any talk he's given where I was not greatly impressed by him and what he had to say.

I don't think I've ever seen him comment on Hacker News. I wish we could get him to comment regularly here, as his knowledge and insight would be of great value.

Re:Ladies, look at your code. Now back to mine. by tjr on Saturday August 28, 2010 @11:46PM (#1643081)
Well said. I discovered Guy's work early in my programming career, and am very glad I did.
Re:Ladies, look at your code. Now back to mine. by blub on Saturday August 28, 2010 @01:35PM (#1642023)
In 1996 C++ was much more difficult and fragmented, but that quote is from 2003. Today C++ has (much) more abstraction power than Java. On the other hand, almost every programming language has more abstraction power than Java, which knows only about classes, XML and design patterns.
Re:Ladies, look at your code. Now back to mine. by etal on Sunday August 29, 2010 @02:42PM (#1644262)
We might be agreeing here already, but my understanding was that the mindset Java fought against -- and finally won -- was: Interpreted, garbage-collected languages, or basically anything with a substantial runtime component, will be too slow and unpredictable to use in serious production environments.

So Java went all-out with (1) a static type system and basic language features that C++ coders could respect, (2) a level of hype and corporate sponsorship/support that PHBs could respect, (3) a portable, eventually fast VM, opening up some nice deployment options. There was no need to introduce really exciting language features, only to keep promoting the OOP concepts that C++ thought-leaders were so enthusiastic about at the time.

Re:Ladies, look at your code. Now back to mine. by rbanffy on Sunday August 29, 2010 @10:36AM (#1643852)
> Today C++ has (much) more abstraction power than Java.

> almost every programming language has more abstraction power than Java

Just curious: how does that make C++ stack up against other "fashionable" languages?

Re:Ladies, look at your code. Now back to mine. by blub on Monday August 30, 2010 @11:45AM (#1646514)
Lots of languages are fashionable today, but most of them don't overlap with the use cases that are traditionally handled by C++.

Even so, it fares pretty good. What it lacks in expressive power it makes up in speed, libraries and industry support. C# is in my opinion a realistic C++ alternative or complement.

Re:Ladies, look at your code. Now back to mine. by philwelch on Saturday August 28, 2010 @11:44PM (#1643077)
"In 1994, Steele joined Sun Microsystems and was invited by Bill Joy to become a member of the Java team after the language had been designed, since he had a track record of writing good specifications for existing languages." --Wikipedia