8,555 reputation
12153
bio website glenpeterson.blogspot.com
location United States
age
visits member for 2 years, 8 months
seen 2 days ago

Java/Web Application Architect, Scala enthusiast, Clojure fan, seeker of knowledge.

The new "On Hold" feature of SE that gives people more of a chance to improve poorly worded questions before they are closed is sweet!


Apr
24
revised Is String processing more complex than number processing in programming languages?
Fixed to say 1-4 bytes - thank you @gnasher729
Apr
24
revised Why doesn't Java 8 include immutable collections?
deleted 15 characters in body
Apr
24
revised Why doesn't Java 8 include immutable collections?
added 112 characters in body
Apr
24
comment Is String processing more complex than number processing in programming languages?
@gnasher729 thank you for "grapheme clusters!" That adds some delightful complexity! UTF-8 uses up to 6 bytes to store a character (check the link I included).
Apr
24
revised Is String processing more complex than number processing in programming languages?
added 333 characters in body
Apr
23
revised Is String processing more complex than number processing in programming languages?
added 495 characters in body
Apr
23
revised Is String processing more complex than number processing in programming languages?
added 495 characters in body
Apr
23
answered Is String processing more complex than number processing in programming languages?
Apr
14
awarded  Good Question
Apr
3
awarded  Nice Question
Apr
1
comment Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
@m3th0dman The question is based on the assumption that the lambda syntax is clearer and asks if there is a performance reason to use a method reference instead. Open-ended, opinion-based questions about "which is better" are not allowed on StackExchange. This question is specifically about performance. You are free to discuss other reasons to choose one syntax over the other in an answer, if you chose to do so, but I'm not asking that kind of question here.
Mar
31
awarded  Good Question
Mar
31
revised Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
added 206 characters in body
Mar
31
revised Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
added 206 characters in body
Mar
31
comment Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
@Snowman and Doval, This question isn't about whether first-class functions are good or bad. It's about choosing the best Java 8 syntax to express them in. I've updated the question and added examples.
Mar
31
revised Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
added 603 characters in body
Mar
26
revised Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
edited tags; edited title
Mar
26
comment Can I use Apache Software License, Version 2.0 and GNU LGPL 3 licence plugins in my commercial web application?
The question is not about the Adaptave Public License (APL) opensource.org/licenses/APL-1.0 it's about the Apache License (ALv2). If you meant APL, you should provide a link. If you meant ALv2, you should search and replace in your answer.
Mar
26
asked Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?
Mar
25
comment Are chained methods that require only one parameter per method equivalent to currying?
@Sridhar-Sarnobat a curried function returns another function with fewer parameters. The eliminated parameters are turned into internal constants in the returned function. Some objects are treated like functions in Java 8, which can make this confusing, but StringBuilder is not one of them. Hmm, within StringBuilder, the append(charSeq) function is a curried form of the insert(destOffset, charSeq) function where destOffset is always the length of the StringBuilder.