Java and closures – YAPOJC
YetAnotherPostOnJavaClosures
So, I fell over some articles with both the words closure and java in them this week.
It was this article about JavaFX closures.
Since I’ve done some of my non-mandatory classes in my stud.scient. days (like the last 4years) it kinda woke my interest.
It seems like lots of things has happend in the Java world since I last had any real interest in it (somewhere around 1½ year ago).
- Java 6 and 7.
- Scripting languages on the JVM, like Scala and Groovy. Scala looks quite interesting in my opinion.
- And all the stuff that I’ve been ignoring when coding small things in Java 1.4 SE and having fun with generics in Java 5 SE.
- Like for example J2EE, the bean concepts and Application servers and everything
- Spring
- Hibernate
- JUnit
- Test-driven-development
Maybe “fell over some articles” is a bit inaccurate. I’ve actually been trying to catch up. My main focus has been on the things I needed in my day-to-day work. That included JUnit and Unit-testing, Spring and the Application Server Enterprisy way of doing things.
Luckily I already spent some time reading up on the concept of SOA.
There is a ton of material online about all these things. Currently(as in the past year) there’s alot of talk about feature request for Java 7. Including closures. I tried to do a “quick” catchup on the subject and decided to share my findings with the world:
As far as I gather there currently exist two proposals:
- CICE – Concise Instance Creation Expressions by Josh Bloch, Doug Lea and Bob Lee
- BGGA – Gilad Bracha, Neal Gafter, James Gosling, Peter von der Ahé
and as in any other good war on the internet, it seems like we are at a point where religion is the turning point. The CICE people believes that the BGGA is “overly complex”, and will alienate users by “pushing the complexity of the language beyond the point where Joe Java can’t use the language anymore”
Another interesting twist is the fact the Neal Gafter – who I see as the current “main-man” behind BGGA, is working at Google as well as Josh Bloch and Josh Blach is the JCP representative for Google as pointed out by Ricky Clarkson (and down played by Neal Gafter).
So no real catfight there. But among the readers there’s a very Web2.0-ish involvement in the debate. Lots of evangelists on both sides. (I’m a BGGA’er myself! To me it seems like CICE is like sitting between two chairs). Among these debates and blogentries there’s lots of interesting reading (and hearing; podcasts).
Apart from the other links in this post I recommend:
- Gafter with closure examples
- Gafter with prototype for javac and a rewrite of fork/join code to use closures.
- (Actually all of Gafters blog is very interesting if you like programming language issues)
- JavaPosse podcast. (BGGA people as well)
- IBM on the debate: Java theory and practice: The closures debate
If you need even more reading try some of these googlesearches:
- Comments to Gafter and closures
- Josh Bloch and Closures
- Gilad Bracha andClosure (Actually i really like his blog all in all. Just the name and Im sold “Computational Theology”. Too bad it’s discontinued, but hey, he still writes a bit on Blogspot)
| Print article | This entry was posted by svrist on 2007-11-28 at 23:03, and is filed under English, Work. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No comments yet.
No trackbacks yet.
Biomolecular computers and programming
about 3 months ago - View Comments
I have recently handed in a report as a part of my masters/candidate in Computer Science at University of Copenhagen – “Visualizing blobs and computation in a biomolecular computation model“. It sounds very fancy and I would like to introduce the subject and my report here in hopefully a less dry way than in the report
What does CodingHorror have in common with Apache H-Base?
about 6 months ago - View Comments
As I was in my “Advanced data management” class today I realized that CodingHorror aka Jeff Atwood of stackoverflow fame agree quite alot with Apache H-base. Apache H-base is a column-store database system based on the Google BigTable ideas leveraging Apache Hadoop. Jeff Atwood was is not very happy with the default “incredibly pessimistic out
Logging vs. debugging
about 1 year ago - View Comments
It is probably no news that measurements in an experiment almost by definition affects the experiment. This is true also for IT systems, where logging is a very used way for observing running code. From Jeff Atwoods Coding Horror blog about a problem during the beta of stackoverflow.com: We spent days troubleshooting these deadlocks by
What I like about Unit Tests
about 1 year ago - View Comments
They are included with the source code, committed to SC and build along with the code pretty automatically these days! Actually I dont really care if it’s unit tests, integration tests or any other kind of test, I just see unit tests every day as part of my work. The part I like is that
Eclipse setup
about 2 years ago - View Comments
Image from WikipediaI work with eclipse all day, so I’ve spent some time messing around with plugins. Lots and lots of plugins. The plugins I’ve current stablized on is: Maven2 plugin: http://m2eclipse.codehaus.org/ (update-site: http://m2eclipse.sonatype.org/update/) PMD for static analysis of java code: http://pmd.sourceforge.net/integrations.html#eclipse (update-site: http://pmd.sf.net/eclipse ) Findbugs for static analysis of java bytecode http://findbugs.sourceforge.net/manual/eclipse.html (update-site: http://findbugs.cs.umd.edu/eclipse/)
Focus on the technology – 2
about 2 years ago - View Comments
So, progress is slow, and currently I’m looking into the base “architecture” of the show. I’ve been looking into different ESB’s as in: Mule OpenESB Apache ServiceMix Im pretty hooked on using SQS for queues which Mule supports out-of-the-box. On the other hand is it tempting to code it my self. But then again. Ill
Fast inverse square root
about 2 years ago - View Comments
Beyond3D(Rys) wrote an article (almost a series!) about the history of the magic fast inverse square root found in for example the quake code. With the explantions it doesn’t seem quite that much as magic. As this pdf says, its not magic at all(page2) The history article is all about paying homage to the author(s)
Mere googlemania
about 2 years ago - View Comments
Så har jeg også fået googledesktop. Nu ejer google ca. alt hvad jeg har på diverse af mine maskiner. Det er noget af en fest! Google desktop plugins er nu så meget sejere end yahoo-widgets. Jeg elsker de små korte beskeder man får hele tiden med updates på ens rss-feeds, emails og lign. Og TODO
Eliteprofessionel!
about 2 years ago - View Comments
ADVARSEL: Buzzwords og partisk indlæg! Jeg har den store glæde at kunne præsentere mig selv som en af de få rå: Ægte Eliteprofessionel! ComputerWorld interview med vores administrerende direktør At kommentarene til den tilhørende artikel ikke er helt så fine kan ikke ryste mig Man kunne måske mene at eliteprofessionel måske er lidt meget buzzword,
Vidste du det?
about 2 years ago - View Comments
. Der findes simpelthen en papegøje som er nattedyr og ikke kan flyve. Det lyder dælme som en freaky fugl! Den hedder en kakapo . . Spørg evt. Douglas Adams “(The kakapo boom) was like a heartbeat: a deep powerful throb that echoed through the dark ravines.It was so deep that some people will tell