Administrator
|
I just downloaded the most recent Mac OS X Java 1.5 developer release
(1.5.06) and was quite surprised that it flipped the Mac desktop java default from 1.4 to 1.5. Presumably this means Mac is considering making 1.5 be the default desktop and browser java soon. I've tried the new 1.5 with both NetLogo and Eclipse and so far, so good. It also seems to work with the Safari browser .. after changing the plug-in settings (/Applications/Utilities/Java/). It appears also to work fine with Processing3D although they recommend against its use. So this is for Java developers our there: - Have you begun to use 1.5? - Any interesting stories/opinions about using it? As you probably can tell, I'm lusting after the for-each and generics and auto-boxing and enums and annotations and var-args and ... -- Owen Owen Densmore http://backspaces.net - http://redfish.com - http://friam.org |
[root at pinkwater ~]# java -version
java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) On Sunday 09 April 2006 13:24, Owen Densmore wrote: > I just downloaded the most recent Mac OS X Java 1.5 developer release > (1.5.06) and was quite surprised that it flipped the Mac desktop java > default from 1.4 to 1.5. Presumably this means Mac is considering > making 1.5 be the default desktop and browser java soon. > > I've tried the new 1.5 with both NetLogo and Eclipse and so far, so > good. It also seems to work with the Safari browser .. after > changing the plug-in settings (/Applications/Utilities/Java/). It > appears also to work fine with Processing3D although they recommend > against its use. > > So this is for Java developers our there: > - Have you begun to use 1.5? > - Any interesting stories/opinions about using it? > > As you probably can tell, I'm lusting after the for-each and generics > and auto-boxing and enums and annotations and var-args and ... > > -- Owen > > Owen Densmore > http://backspaces.net - http://redfish.com - http://friam.org > > > > ============================================================ > FRIAM Applied Complexity Group listserv > Meets Fridays 9a-11:30 at cafe at St. John's College > lectures, archives, unsubscribe, maps at http://www.friam.org |
In reply to this post by Owen Densmore
> So this is for Java developers our there:
> - Have you begun to use 1.5? > - Any interesting stories/opinions about using it? I haven't, but I've paged through the O'Reilly Developer's Notebook on it and it really does look like an absolutely massive improvement. -- Giles Bowkett www.gilesgoatboy.org |
Java 1.5 in a (Marko's) Nutshell ->
1. Generics: Vector<String> names = new Vector<String>(); names.add("Marko"); for(String name : names) { System.out.println(name); } Thats all I use it for that is different than 1.4. Marko. On Mon, 2006-04-10 at 11:42 -0600, Giles Bowkett wrote: > > So this is for Java developers our there: > > - Have you begun to use 1.5? > > - Any interesting stories/opinions about using it? > > I haven't, but I've paged through the O'Reilly Developer's Notebook on > it and it really does look like an absolutely massive improvement. > > -- > Giles Bowkett > www.gilesgoatboy.org > > ============================================================ > FRIAM Applied Complexity Group listserv > Meets Fridays 9a-11:30 at cafe at St. John's College > lectures, archives, unsubscribe, maps at http://www.friam.org Marko A. Rodriguez CCS-3 Modeling, Algorithms and Informatics Los Alamos National Laboratory Phone +1 505 606 1691 Fax +1 505 665 6452 http://www.soe.ucsc.edu/~okram |
That's about the level of my use of generics too. And it certainly makes a
big difference to code readability (none of those damn casts every time I pull something out of a collection). But there's a bunch of stuff around generics and type parameter wildcards (bounded and unbounded) and writing my own generic types that I'm completely failing to understand. Which is a pity, because I suspect that there's some handy tricks lurking in there. Robert On 4/10/06, Marko Rodriguez <marko at lanl.gov> wrote: > > Java 1.5 in a (Marko's) Nutshell -> > > 1. Generics: > > Vector<String> names = new Vector<String>(); > names.add("Marko"); > for(String name : names) > { > System.out.println(name); > } > > Thats all I use it for that is different than 1.4. > > Marko. > > On Mon, 2006-04-10 at 11:42 -0600, Giles Bowkett wrote: > > > So this is for Java developers our there: > > > - Have you begun to use 1.5? > > > - Any interesting stories/opinions about using it? > > > > I haven't, but I've paged through the O'Reilly Developer's Notebook on > > it and it really does look like an absolutely massive improvement. > > > > -- > > Giles Bowkett > > www.gilesgoatboy.org > > > > ============================================================ > > FRIAM Applied Complexity Group listserv > > Meets Fridays 9a-11:30 at cafe at St. John's College > > lectures, archives, unsubscribe, maps at http://www.friam.org > -- > Marko A. Rodriguez > CCS-3 Modeling, Algorithms and Informatics > Los Alamos National Laboratory > Phone +1 505 606 1691 > Fax +1 505 665 6452 > http://www.soe.ucsc.edu/~okram > > > ============================================================ > FRIAM Applied Complexity Group listserv > Meets Fridays 9a-11:30 at cafe at St. John's College > lectures, archives, unsubscribe, maps at http://www.friam.org > An HTML attachment was scrubbed... URL: http://redfish.com/pipermail/friam_redfish.com/attachments/20060411/34e1d444/attachment.htm |
Robert Holmes wrote: > That's about the level of my use of generics too. And it certainly makes > a big difference to code readability (none of those damn casts every > time I pull something out of a collection). But there's a bunch of stuff > around generics and type parameter wildcards (bounded and unbounded) and > writing my own generic types that I'm completely failing to understand. > Which is a pity, because I suspect that there's some handy tricks > lurking in there. I think the high order bit here is to always ask yourself, "what if I wrote into the collection?" For example, suppose you write a function which takes a collection of Numbers, and you pass it a collection of Doubles. It's ok to get() elements from the collection and cast them to Numbers, but you shouldn't be able to insert an Integer into the collection. I think that's the key insight; if you keep asking yourself "but what about writing into the collection?" I think it will make a lot more sense. - Martin |
Administrator
|
In reply to this post by Robert Holmes-2
The best book I've found for 1.5 enlightenment is:
Java 5.0 Tiger: A Developer's Notebook (Paperback) by David Flanagan, Brett McLaughlin http://tinyurl.com/ojq7g I think I've gotten my head around most of the nifty features with Generics, and you're right: there's a lot hiding under the covers. I like the new OReilly Notebook format: very direct and to the point. -- Owen Owen Densmore http://backspaces.net - http://redfish.com - http://friam.org On Apr 11, 2006, at 9:26 AM, Robert Holmes wrote: > That's about the level of my use of generics too. And it certainly > makes a > big difference to code readability (none of those damn casts every > time I > pull something out of a collection). But there's a bunch of stuff > around > generics and type parameter wildcards (bounded and unbounded) and > writing my > own generic types that I'm completely failing to understand. Which > is a > pity, because I suspect that there's some handy tricks lurking in > there. > > Robert > > On 4/10/06, Marko Rodriguez <marko at lanl.gov> wrote: >> >> Java 1.5 in a (Marko's) Nutshell -> >> >> 1. Generics: >> >> Vector<String> names = new Vector<String>(); >> names.add("Marko"); >> for(String name : names) >> { >> System.out.println(name); >> } >> >> Thats all I use it for that is different than 1.4. >> >> Marko. >> >> On Mon, 2006-04-10 at 11:42 -0600, Giles Bowkett wrote: >>>> So this is for Java developers our there: >>>> - Have you begun to use 1.5? >>>> - Any interesting stories/opinions about using it? >>> >>> I haven't, but I've paged through the O'Reilly Developer's >>> Notebook on >>> it and it really does look like an absolutely massive improvement. >>> >>> -- >>> Giles Bowkett >>> www.gilesgoatboy.org >>> >>> ============================================================ >>> FRIAM Applied Complexity Group listserv >>> Meets Fridays 9a-11:30 at cafe at St. John's College >>> lectures, archives, unsubscribe, maps at http://www.friam.org >> -- >> Marko A. Rodriguez >> CCS-3 Modeling, Algorithms and Informatics >> Los Alamos National Laboratory >> Phone +1 505 606 1691 >> Fax +1 505 665 6452 >> http://www.soe.ucsc.edu/~okram >> >> >> ============================================================ >> FRIAM Applied Complexity Group listserv >> Meets Fridays 9a-11:30 at cafe at St. John's College >> lectures, archives, unsubscribe, maps at http://www.friam.org >> > ============================================================ > FRIAM Applied Complexity Group listserv > Meets Fridays 9a-11:30 at cafe at St. John's College > lectures, archives, unsubscribe, maps at http://www.friam.org |
In reply to this post by Owen Densmore
On Windoze standalone,
John Pfersich at smellybutt ~ $ java -version java version "1.5.0-rc" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63) Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing) At 02:07 PM 4/9/2006 -0600, you wrote: >[root at pinkwater ~]# java -version >java version "1.5.0_06" >Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) >Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > > >On Sunday 09 April 2006 13:24, Owen Densmore wrote: > > I just downloaded the most recent Mac OS X Java 1.5 developer release > > (1.5.06) and was quite surprised that it flipped the Mac desktop java > > default from 1.4 to 1.5. Presumably this means Mac is considering > > making 1.5 be the default desktop and browser java soon. > > > > I've tried the new 1.5 with both NetLogo and Eclipse and so far, so > > good. It also seems to work with the Safari browser .. after > > changing the plug-in settings (/Applications/Utilities/Java/). It > > appears also to work fine with Processing3D although they recommend > > against its use. > > > > So this is for Java developers our there: > > - Have you begun to use 1.5? > > - Any interesting stories/opinions about using it? > > > > As you probably can tell, I'm lusting after the for-each and generics > > and auto-boxing and enums and annotations and var-args and ... > > > > -- Owen > > > > Owen Densmore > > http://backspaces.net - http://redfish.com - http://friam.org > > > > > > > > ============================================================ > > FRIAM Applied Complexity Group listserv > > Meets Fridays 9a-11:30 at cafe at St. John's College > > lectures, archives, unsubscribe, maps at http://www.friam.org > >============================================================ >FRIAM Applied Complexity Group listserv >Meets Fridays 9a-11:30 at cafe at St. John's College >lectures, archives, unsubscribe, maps at http://www.friam.org |
In reply to this post by Owen Densmore
Owen - How about a wedtech on generics, hosted by your good self? How about
today? - Robert On 4/11/06, Owen Densmore <owen at backspaces.net> wrote: > > The best book I've found for 1.5 enlightenment is: > Java 5.0 Tiger: A Developer's Notebook (Paperback) > by David Flanagan, Brett McLaughlin > http://tinyurl.com/ojq7g > > I think I've gotten my head around most of the nifty features with > Generics, and you're right: there's a lot hiding under the covers. > > I like the new OReilly Notebook format: very direct and to the point. > > -- Owen > > Owen Densmore > http://backspaces.net - http://redfish.com - http://friam.org > > > On Apr 11, 2006, at 9:26 AM, Robert Holmes wrote: > > > That's about the level of my use of generics too. And it certainly > > makes a > > big difference to code readability (none of those damn casts every > > time I > > pull something out of a collection). But there's a bunch of stuff > > around > > generics and type parameter wildcards (bounded and unbounded) and > > writing my > > own generic types that I'm completely failing to understand. Which > > is a > > pity, because I suspect that there's some handy tricks lurking in > > there. > > > > Robert > > > > On 4/10/06, Marko Rodriguez <marko at lanl.gov> wrote: > >> > >> Java 1.5 in a (Marko's) Nutshell -> > >> > >> 1. Generics: > >> > >> Vector<String> names = new Vector<String>(); > >> names.add("Marko"); > >> for(String name : names) > >> { > >> System.out.println(name); > >> } > >> > >> Thats all I use it for that is different than 1.4. > >> > >> Marko. > >> > >> On Mon, 2006-04-10 at 11:42 -0600, Giles Bowkett wrote: > >>>> So this is for Java developers our there: > >>>> - Have you begun to use 1.5? > >>>> - Any interesting stories/opinions about using it? > >>> > >>> I haven't, but I've paged through the O'Reilly Developer's > >>> Notebook on > >>> it and it really does look like an absolutely massive improvement. > >>> > >>> -- > >>> Giles Bowkett > >>> www.gilesgoatboy.org > >>> > >>> ============================================================ > >>> FRIAM Applied Complexity Group listserv > >>> Meets Fridays 9a-11:30 at cafe at St. John's College > >>> lectures, archives, unsubscribe, maps at http://www.friam.org > >> -- > >> Marko A. Rodriguez > >> CCS-3 Modeling, Algorithms and Informatics > >> Los Alamos National Laboratory > >> Phone +1 505 606 1691 > >> Fax +1 505 665 6452 > >> http://www.soe.ucsc.edu/~okram > >> > >> > >> ============================================================ > >> FRIAM Applied Complexity Group listserv > >> Meets Fridays 9a-11:30 at cafe at St. John's College > >> lectures, archives, unsubscribe, maps at http://www.friam.org > >> > > ============================================================ > > FRIAM Applied Complexity Group listserv > > Meets Fridays 9a-11:30 at cafe at St. John's College > > lectures, archives, unsubscribe, maps at http://www.friam.org > > An HTML attachment was scrubbed... URL: http://redfish.com/pipermail/friam_redfish.com/attachments/20060412/bfb46d24/attachment.htm |
Robert,
Owen and a few of us are at Tom Johnson's very interesting ver 1.0 conference today (http://www.ver1point0.cjb.net/). How about the week after next? Next week's Wedtech, will have Lee Hoffer presenting Ethnographic and ABM research on the Heroin market in Denver. Abstract to follow. -Steve > -----Original Message----- > From: Robert Holmes [mailto:rholmes62 at gmail.com] > Sent: Wednesday, April 12, 2006 8:20 AM > To: Owen Densmore > Cc: The Friday Morning Applied Complexity Coffee Group > Subject: Re: [FRIAM] How many of us are using Java 1.5? > > Owen - How about a wedtech on generics, hosted by your good > self? How about today? - Robert > > > On 4/11/06, Owen Densmore < owen at backspaces.net > <mailto:owen at backspaces.net> > wrote: > > The best book I've found for 1.5 enlightenment is: > Java 5.0 Tiger: A Developer's Notebook (Paperback) > by David Flanagan, Brett McLaughlin > http://tinyurl.com/ojq7g > > I think I've gotten my head around most of the nifty > features with > Generics, and you're right: there's a lot hiding under > the covers. > > I like the new OReilly Notebook format: very direct and > to the point. > > -- Owen > > Owen Densmore > http://backspaces.net <http://backspaces.net> - > http://redfish.com - http://friam.org > > > On Apr 11, 2006, at 9:26 AM, Robert Holmes wrote: > > > That's about the level of my use of generics too. And > it certainly > > makes a > > big difference to code readability (none of those > damn casts every > > time I > > pull something out of a collection). But there's a > bunch of stuff > > around > > generics and type parameter wildcards (bounded and > unbounded) and > > writing my > > own generic types that I'm completely failing to > understand. Which > > is a > > pity, because I suspect that there's some handy > tricks lurking in > > there. > > > > Robert > > > > On 4/10/06, Marko Rodriguez <marko at lanl.gov> wrote: > >> > >> Java 1.5 in a (Marko's) Nutshell -> > >> > >> 1. Generics: > >> > >> Vector<String> names = new Vector<String>(); > >> names.add("Marko"); > >> for(String name : names) > >> { > >> System.out.println(name); > >> } > >> > >> Thats all I use it for that is different than 1.4. > >> > >> Marko. > >> > >> On Mon, 2006-04-10 at 11:42 -0600, Giles Bowkett wrote: > >>>> So this is for Java developers our there: > >>>> - Have you begun to use 1.5? > >>>> - Any interesting stories/opinions about using it? > >>> > >>> I haven't, but I've paged through the O'Reilly Developer's > >>> Notebook on > >>> it and it really does look like an absolutely > massive improvement. > >>> > >>> -- > >>> Giles Bowkett > >>> www.gilesgoatboy.org <http://www.gilesgoatboy.org> > >>> > >>> ============================================================ > >>> FRIAM Applied Complexity Group listserv > >>> Meets Fridays 9a-11:30 at cafe at St. John's College > >>> lectures, archives, unsubscribe, maps at > http://www.friam.org > >> -- > >> Marko A. Rodriguez > >> CCS-3 Modeling, Algorithms and Informatics > >> Los Alamos National Laboratory > >> Phone +1 505 606 1691 > >> Fax +1 505 665 6452 > >> http://www.soe.ucsc.edu/~okram > >> > >> > >> ============================================================ > >> FRIAM Applied Complexity Group listserv > >> Meets Fridays 9a-11:30 at cafe at St. John's College > >> lectures, archives, unsubscribe, maps at > http://www.friam.org > >> > > ============================================================ > > FRIAM Applied Complexity Group listserv > > Meets Fridays 9a-11:30 at cafe at St. John's College > > lectures, archives, unsubscribe, maps at http://www.friam.org > > > > > |
Free forum by Nabble | Edit this page |