FAQ

Search Discussions

132 discussions - 602 posts

  • Hi all, my name is Conrad Winchester and I am a long time developer. I am currently experimenting with the new lambdas and function pointers in the Java 8 developer preview. I have come across ...
    Conrad WinchesterConrad Winchester
    Feb 26, 2012 at 12:18 pm
    Feb 26, 2012 at 1:15 pm
  • IMHO: It is far better to prefix the types with some letters than with a #. Yet the question is if the type of the lambda is a lambda or if the type is a function. If an we choose an ID why not name ...
    Jakob PraherJakob Praher
    Mar 11, 2010 at 1:15 am
    Mar 11, 2010 at 1:15 am
  • Dear List, I was thinking much about the syntax of the upcoming language changes regarding the introduction of * first class functions * first class function types * lambda expressions ("closures") ...
    Jakob PraherJakob Praher
    Mar 8, 2010 at 9:22 am
    Mar 9, 2010 at 4:59 pm
  • Hi, All I have a question: why BGGA 0.5 syntax was rejected in favor of CLang-like syntax that causes so lots of problems? It much more elegant for function type definition #(#int(String)(throws ...
    Vladimir KirichenkoVladimir Kirichenko
    Feb 10, 2010 at 5:56 am
    Feb 10, 2010 at 7:20 am
  • Jesse- That article provides a good understanding of the goals of BGGA and CfJ 0.6a/b (and the openjdk closures project), as contrasted with the goals of the current effort (openjdk project lambda) ...
    Neal GafterNeal Gafter
    Feb 7, 2010 at 9:10 am
    Feb 9, 2010 at 1:55 pm
  • [Moving conversation to closures-dev] I don't know whether you consider Scala a "parallel language", and one can argue whether or not its use has been "extensive", but there is little evidence that ...
    Neal GafterNeal Gafter
    Feb 2, 2010 at 8:02 am
    Feb 2, 2010 at 8:20 am
  • The subject of nonlocal transfers is more appropriate for the mailing list for the closures project. Please follow up there. The subject here is the meaning of "this". If you're going to compare to ...
    Neal GafterNeal Gafter
    Jan 29, 2010 at 12:23 pm
    Jan 29, 2010 at 12:23 pm
  • Alex Buckley pointed out to me that the CfJ 0.6a rules for definite assignment are a bit informal: The body of a closure literal may not assign to a final variable declared outside the closure ...
    Neal GafterNeal Gafter
    Jan 21, 2010 at 5:05 pm
    Jan 21, 2010 at 5:08 pm
  • I have two questions about void handling. Currently, as specified by CfJ 0.6a, expression lambda form takes an expression: # ( FormalParameters opt ) Expression Since valid "Expression" as defined by ...
    Peter LevartPeter Levart
    Jan 13, 2010 at 1:24 am
    Jan 14, 2010 at 11:17 pm
  • Hello, I'm wondering about how to assign the return value of a ControlInvocationStatement to a variable. Or can the return value of a CIS never be used if the special syntax for such statements is ...
    Gernot NeppertGernot Neppert
    Jan 8, 2010 at 4:13 am
    Jan 8, 2010 at 8:57 am
  • Hello, if I read the proposal for ControlInvocationStatement correctly, the invocation of a method that accepts a single lambda and no other parameters looks a little strange because of the trailing ...
    Gernot NeppertGernot Neppert
    Jan 8, 2010 at 4:03 am
    Jan 8, 2010 at 8:56 am
  • Hello, what do we do when the syntax for Control Abstraction does not really fit the API that we're using? I can see that given a method "<T void forEach(Collection<T c, #void(T))", someone might ...
    Gernot NeppertGernot Neppert
    Jan 8, 2010 at 3:56 am
    Jan 8, 2010 at 8:53 am
  • Hello, I have a proposal to simplify the Control Invocation syntax. It consists of two parts: 1. Limit the difficulties with non-local transfer to "return", eliminating "break" and "continue". 2 ...
    Gernot NeppertGernot Neppert
    Jan 5, 2010 at 12:49 am
    Jan 5, 2010 at 9:18 am
  • Hello, while reading section 0.6b of the closures draft, I stumbled upon the "loop abstraction" proposal. The text provides this example of a loop abstraction: <K,V,throws X void for ...
    Gernot NeppertGernot Neppert
    Jan 5, 2010 at 12:24 am
    Jan 5, 2010 at 7:43 am
  • Hello all, first of all, I need to say I'm thrilled that a simplified syntax for anonymous function types is going to be part of Java finally! What amazes me, however, is the fact that Neal Gafter's ...
    Gernot NeppertGernot Neppert
    Jan 4, 2010 at 7:34 am
    Jan 4, 2010 at 10:31 am
  • [conversation moved from lambda-dev to closures-dev] Yes, it is possible, by using a label. It is just a bit awkward. More on that later. That single lambda form is mostly transparent ...
    Neal GafterNeal Gafter
    Dec 28, 2009 at 8:38 am
    Jan 13, 2010 at 10:56 am
  • I may come from a different background, and also don't know the history and the full extent of the discussion (e.g. http://mail.openjdk.java.net/pipermail/closures-dev/2009-November/000267.html ), ...
    DiegoDiego
    Dec 16, 2009 at 2:49 am
    Dec 16, 2009 at 8:01 am
  • Hi, I was wondering about the implementation of closures (translation into Java bytecode), a topic that's not yet covered by any of the current proposals (CfJ 0.6a+b or the Strawman), although well ...
    Osvaldo DoederleinOsvaldo Doederlein
    Dec 15, 2009 at 10:03 am
    Dec 16, 2009 at 3:21 am
  • The syntax reads: ControlInvocationStatement: foropt Primary ( FormalParameters : ExpressionListopt ) Statement foropt Primary ( ExpressionListopt ) Statement But the "with" method declaration does ...
    Paul BenedictPaul Benedict
    Dec 14, 2009 at 10:33 am
    Dec 14, 2009 at 10:48 am
  • I may come from a different background, and also don't know the history and the full extent of the discussion (e.g. http://mail.openjdk.java.net/pipermail/closures-dev/2009-November/000267.html ), ...
    DiegoDiego
    Dec 14, 2009 at 4:17 am
    Dec 14, 2009 at 4:17 am
  • Part b of the Closures for Java 0.6 specification can now be found at http://www.javac.info/closures-v06b.html. Part b extends the specification of part a to support *control abstraction*. There are ...
    Neal GafterNeal Gafter
    Dec 13, 2009 at 4:34 pm
    Dec 23, 2009 at 8:17 am
  • Hi, I noticed a discussion about m.invoke() and m() on Mark Reinhold's blog and although it is true that if m is in the variable name space, we need "invoke", if syntax fun void m(int x); is adopted, ...
    TronicekTronicek
    Dec 5, 2009 at 4:33 am
    Dec 13, 2009 at 10:06 am
  • ...to scala mailing list: http://old.nabble.com/Interesting-message-for-Java%2C-the-platform%2C-concurrency%2C-and-platform--limitations-(by-Doug-Lea)-td26536000.html :)) -- Best Regards, Vladimir ...
    Vladimir KirichenkoVladimir Kirichenko
    Nov 29, 2009 at 2:44 pm
    Nov 29, 2009 at 2:44 pm
  • How can something be a subtype of nothing? I think my philosophy professors would have flunked me in college if I were to assert that. :-) Are we really going to see java.lang.Object now as a subtype ...
    Paul BenedictPaul Benedict
    Nov 29, 2009 at 12:22 pm
    Dec 5, 2009 at 9:06 am
  • Neal, Do you have a mental list of changes that you think will go into your v7 proposal? There's been a pretty good size discussion thus far, as I estimate. Sometimes it's tough to keep track which ...
    Paul BenedictPaul Benedict
    Nov 26, 2009 at 11:26 pm
    Nov 27, 2009 at 10:29 am
  • For anyone who hasn't seen it yet: http://blogs.sun.com/mr/entry/closures
    Mark MahieuMark Mahieu
    Nov 24, 2009 at 4:21 pm
    Nov 24, 2009 at 4:21 pm
  • The performance of the scalar versions of ParallelArray has been discussed a couple of times on the concurrency interest list. Here are some pointers ...
    Kasper NielsenKasper Nielsen
    Nov 23, 2009 at 1:48 pm
    Nov 23, 2009 at 1:48 pm
  • Doctors can do better by their patients by investing more time, with or without new techniques. On the other hand, she may be able to save more lives with the same effort by taking advantage of the ...
    Neal GafterNeal Gafter
    Nov 23, 2009 at 12:35 pm
    Nov 23, 2009 at 2:36 pm
  • Hi All. Just compare the different versions of following sample codes And then vote them: -------------------------------------------------------------- Sample code 1: new language construct with ...
    Ali EbrahimiAli Ebrahimi
    Nov 22, 2009 at 4:54 am
    Nov 22, 2009 at 11:05 pm
  • Gentlemens, what about introducing boxing/unboxing for functional types? As Java generics don't allow us to use primitive types as type parameters, all java implementations of collection algorithms ...
    Kochurov AlexanderKochurov Alexander
    Nov 21, 2009 at 10:49 pm
    Nov 30, 2009 at 2:01 pm
  • I'm wondering whether Diamond could/should be useable with lambda expressions, for example: #int(Collection<SomeLongType ) foo = #(Collection< c) c.size(); I can imagine people intuitively expecting ...
    Mark MahieuMark Mahieu
    Nov 21, 2009 at 8:27 pm
    Nov 21, 2009 at 9:36 pm
  • Folks- I suggest we consolidate discussion of about closures to the openjdk closures project mailing list: http://mail.openjdk.java.net/mailman/listinfo/closures-dev. Cheers, Neal An HTML attachment ...
    Neal GafterNeal Gafter
    Nov 21, 2009 at 6:18 pm
    Nov 21, 2009 at 6:18 pm
  • Hi all, disclaimer: I did not provide complete EBNF, I just want to get this ideas out and hope for feedback. For me the biggest motivations for designing syntacic changes is to make it _orthogonal_ ...
    Jakob PraherJakob Praher
    Nov 21, 2009 at 1:48 am
    Nov 21, 2009 at 1:48 am
  • Folks- The 0.6a syntax is based on CLang<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-August/002670.html , but with # instead of ^. I kind of like ^ better, but that's slightly inconsistent with ...
    Neal GafterNeal Gafter
    Nov 20, 2009 at 11:44 am
    Nov 26, 2009 at 10:17 pm
  • This version is based on CLang<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-August/002670.html , but with # instead of ^. # is used for method references because that is the syntax in javadoc. I ...
    Neal GafterNeal Gafter
    Nov 20, 2009 at 11:33 am
    Nov 24, 2009 at 3:04 am
  • Hi Neal, I've just read the new proposal, seems to hit a quite good balance so I hope this will finally succeed. Some initial comments: The proposal doesn't mention support for any kind of ...
    Osvaldo DoederleinOsvaldo Doederlein
    Nov 20, 2009 at 6:32 am
    Nov 20, 2009 at 9:24 am
  • Neal/Remi, perhaps you could give your opinion on this one. To me, having well-formatted code to make easy readability is important to me. It's very important. I don't find it very readable without ...
    Paul BenedictPaul Benedict
    Nov 19, 2009 at 8:20 am
    Nov 19, 2009 at 3:53 pm
  • After reading the 0.6 version of the spec, I do not understand why a new type parameter must be created to support exception transparency. My understanding of closures is definitely in the amatuer ...
    Paul BenedictPaul Benedict
    Nov 18, 2009 at 8:02 pm
    Nov 21, 2009 at 8:04 am
  • Hi Neal, I've just read your new proposal for lambda in Java (v0.6a). A small remarks, I think that defined @Shared as an annotation is not necessary. 'shared' as a local keyword should be better ...
    Rémi ForaxRémi Forax
    Nov 18, 2009 at 1:37 pm
    Nov 19, 2009 at 9:34 am
  • I'm not sure if this behavior is defined by the spec or a bug in the "javac" prototype: int x; { = x = 1; System.out.println(x); // javac: variable x might not have been initialized }.invoke(); I ...
    Kannan GoundanKannan Goundan
    Jan 15, 2009 at 1:53 pm
    Jan 15, 2009 at 2:00 pm
  • Dear Java closures people, I very much appreciate your interesting and enterprising work on Javac. As a theoretically minded researcher in programming languages, I have a suggestion to offer ...
    John LongleyJohn Longley
    Nov 20, 2008 at 9:27 am
    Dec 3, 2008 at 3:18 am
  • More accurate problematic example: public class Test { static {int == int} temp; static void term() { {int== int} t = {int i == if (i 5) return; i}; temp = t; } static int m(int i, {int == int} f) { ...
    Vladimir KirichenkoVladimir Kirichenko
    Nov 15, 2008 at 7:26 pm
    Nov 16, 2008 at 3:50 pm
  • This makes impossible to implement functional-style control abstractions like generators: Iterable<Integer squares = yield(int i : someIterable()) { i * i } int[] sqa = for collect(int i : array) { i ...
    Vladimir KirichenkoVladimir Kirichenko
    Nov 14, 2008 at 5:25 pm
    Nov 15, 2008 at 6:53 pm
  • Alex- In your code, doN requires its third parameter of type {int, T = U throws X} but you've supplied something of type {int, String = void throws IOException} In fact, the value you supplied is NOT ...
    Neal GafterNeal Gafter
    Aug 12, 2008 at 8:44 pm
    Aug 14, 2008 at 7:15 am
  • Alex- Thanks for the bug report! I've just pushed an update of the prototype that fixes this. It is possible that this fixes other problems with verification, but I have not check that yet. Regards, ...
    Neal GafterNeal Gafter
    Aug 11, 2008 at 7:32 pm
    Aug 11, 2008 at 7:32 pm
  • Changeset: f45b5d2d9639 Author: gafter Date: 2008-08-11 19:28 -0700 URL: http://hg.openjdk.java.net/closures/closures/langtools/rev/f45b5d2d9639 Fixed a compiler crash on some closures that can't ...
    NealNeal
    Aug 11, 2008 at 7:30 pm
    Aug 11, 2008 at 7:30 pm
  • Hi, the following code is compilable but does not run: public static void main(String[] args) { int i; for (i = 0; i < 5; i++) { if (i == 3) { == break; }.invoke(); } if (i != 3) { throw new ...
    Zdenek TronicekZdenek Tronicek
    Aug 10, 2008 at 12:51 pm
    Aug 10, 2008 at 12:51 pm
  • FYI, the following code (all in one compilation unit) compiles but fails with a VerifyError when run. The test case is about as simple as I could make it... public class TriggerVerifyError { public ...
    Mark MahieuMark Mahieu
    Aug 6, 2008 at 2:20 am
    Oct 4, 2008 at 10:13 am
  • This is a final submission for the Closures for Java project described at http://mail.openjdk.java.net/pipermail/challenge-discuss/2008-February/000047.html HOW TO ACCESS THE CODE: The complete ...
    Neal GafterNeal Gafter
    Aug 4, 2008 at 9:56 pm
    Aug 5, 2008 at 10:34 am
  • The closures prototype now has a (very lightly tested) implementation of 'return', 'break', and 'continue' from within a closure. It could probably use some performance tuning. With that, I believe ...
    Neal GafterNeal Gafter
    Aug 4, 2008 at 4:06 pm
    Aug 5, 2008 at 5:13 pm
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupclosures-dev @
categoriesopenjdk
discussions132
posts602
users48
websiteopenjdk.java.net

Top users

Neal: 243 posts Mark Mahieu: 49 posts Vladimir Kirichenko: 32 posts Rémi Forax: 29 posts Tronicek: 26 posts Paul Benedict: 24 posts Mark Mahieu: 22 posts Peter Levart: 22 posts Reinier Zwitserloot: 17 posts Peter Levart: 14 posts Jakob Praher: 11 posts Jonathan Gibbons: 9 posts Tronicek: 9 posts Osvaldo Doederlein: 9 posts Stefan Schulz: 8 posts Gernot Neppert: 8 posts Ricky Clarkson: 6 posts John Nilsson: 6 posts John Rose: 5 posts John Longley: 4 posts
show more