Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: are lambdas a way to bring functional programming to java? Date: Tue, 1 Jul 2014 19:27:07 +0200 Organization: Netfront http://www.netfront.net/ Lines: 31 Message-ID: References: NNTP-Posting-Host: 77.177.53.89 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1404235601 18484 77.177.53.89 (1 Jul 2014 17:26:41 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Tue, 1 Jul 2014 17:26:41 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:28887 In article , Roedy Green (see_website@mindprod.com.invalid) says... > > On Sat, 28 Jun 2014 12:11:43 +0200, Joerg Meier > wrote, quoted or indirectly quoted someone who said : > > >There is no speed advantage to lamdas. > > Would it be a reasonable thing to say that a lambda is just a terser > way to implement an instance of a one-use anonymous class that has a > single method? Not quite, even though it looks a lot like it was. Lambdas don't hold a reference to the enclosing class for example, and they open up some new possibilities to find performance compared to classes. The current implementation is pretty basic though (first make it work, that make it fast). You may have a look at Sergey Kuksenkos presentation, he's from the Oracle performance team and he has to know: http://medianetwork.oracle.com/video/player/2623576348001 I found it pretty interesting. Kind regards, Wanja -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- news://freenews.netfront.net/ - complaints: news@netfront.net ---