Go to Post If nothing's going wrong, then there is something seriously wrong. - Astronouth7303 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-06-2014, 14:24
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 100
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
slides on updates to java and eclipse

I gave a presentation today to team 2601 on some topics that will be useful for next year
- Java Micro Edition vs Java Standard Edition
- Changes in Java 5-8 that we are most likely to use
- Intro to Eclipse/tips

The deck is available here:
http://www.slideshare.net/boyarsky/j...-8-and-eclipse

I did this based on the announcement at Championship last year that we will be using Java 8 SE and Eclipse for the 2014-2015 season. Sharing on Chief Delphi in case anyone else finds it useful.
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
Reply With Quote
  #2   Spotlight this post!  
Unread 10-06-2014, 17:38
NWChen's Avatar
NWChen NWChen is offline
Alum
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
NWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to behold
Re: slides on updates to java and eclipse

Here's a video of the presentation.
Thanks again to Jeanne and Danny for their work, and Ian Sun for the video.
__________________
2012 - 2015 • Team 2601

Reply With Quote
  #3   Spotlight this post!  
Unread 10-06-2014, 18:27
markmcgary's Avatar
markmcgary markmcgary is online now
Software Mentor
FRC #4322 (Clockwork Oranges)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Fullerton, CA
Posts: 179
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: slides on updates to java and eclipse

Very nice. Thank you! I will be sharing this.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-06-2014, 20:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: slides on updates to java and eclipse

The alpha testing is currently using Eclipse Kepler with the Java 8 SE embedded JRE on the roboRIO. Not being a java expert, I'm not sure what additional java 8 support Eclipse Luna supports, or what the plans would be to support which version for FRC.

enums are the thing I miss most that is not included in Java ME
Reply With Quote
  #5   Spotlight this post!  
Unread 10-06-2014, 21:03
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 100
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: slides on updates to java and eclipse

Quote:
Originally Posted by NWChen View Post
Ian Sun for the video.
Thanks Ian for the video! I've linked from the slideshare site to the video. Youtube says I can't add a comment for 20 minutes because it is doing maintenance to my account. I'll add the link in that direction when it finishes.
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
Reply With Quote
  #6   Spotlight this post!  
Unread 10-06-2014, 21:08
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 100
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: slides on updates to java and eclipse

Quote:
Originally Posted by Joe Ross View Post
The alpha testing is currently using Eclipse Kepler with the Java 8 SE embedded JRE on the roboRIO. Not being a java expert, I'm not sure what additional java 8 support Eclipse Luna supports, or what the plans would be to support which version for FRC.
Eclipse Kepler supports Java 7 syntax. You can use Java 8 libraries with Kepler. What you can't use is new Java 8 syntax. Which is just functional programming/lambdas. I wouldn't expect that to come during alpha or beta testing anyway. Largely because FIRST said they want to preserve as much backward compatibility to the APIs as they can next year. Which implies they aren't changing them to use functional programming APIs! I could see it coming up if a team is writing a complex algorithm and wants to call some built in APIs for that.

Professionally, I'm excited about functional programming. For FRC, I'm much more excited about Java SE and various features added in Java 5 and 7. That and the fact that we aren't using NetBeans next year!
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
Reply With Quote
  #7   Spotlight this post!  
Unread 11-06-2014, 08:33
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: slides on updates to java and eclipse

Quote:
Originally Posted by Joe Ross View Post
The alpha testing is currently using Eclipse Kepler with the Java 8 SE embedded JRE on the roboRIO. Not being a java expert, I'm not sure what additional java 8 support Eclipse Luna supports, or what the plans would be to support which version for FRC.

enums are the thing I miss most that is not included in Java ME
That, and generics. Its amazing how much you take those things for granted until you no longer have them.

I am very much looking forward to an updated Java and all of the little toys that come with it.
Reply With Quote
  #8   Spotlight this post!  
Unread 11-06-2014, 21:29
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 100
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: slides on updates to java and eclipse

Quote:
Originally Posted by notmattlythgoe View Post
That, and generics. Its amazing how much you take those things for granted until you no longer have them.
Well said. We were trying to write some Networking code last year. When a student asked me a question, I said "why don't you just call the X class." Oh yeah. Because we can't.
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
Reply With Quote
  #9   Spotlight this post!  
Unread 26-06-2014, 19:28
MatthewC529 MatthewC529 is offline
Lcom/mattc/halp;
AKA: Matthew
FRC #1554 (Oceanside Sailors)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: New York
Posts: 39
MatthewC529 is on a distinguished road
Re: slides on updates to java and eclipse

Some of the stuff that is recommended I would argue is generally discouraged in terms of common practice (Though Common Practice does tend to fall away in the rush of programming between matches) but I think this is a good overview.

Also quick note, Eclipse Kepler CAN support Java 8 syntax, although you have to search for it in the Eclipse Marketplace and it works only after a certain build so either way I would recommend updating to Eclipse Luna.

Although WPILib wont be refactored and updated to Java 1.8 for the 2015 season I think this is a great move up. I sorely miss Enum's, Generics and all the IO and NIO utilities (Also all the missing Collections!) I have come to love. Plus that means I can port some of my libraries more easily to FRC Code now! Networking will come back to being easier to implement and maintain and all the 1.7 Libraries will be opened, always a plus. Something I am curious about is if JNI will work with the cRIO and using the JNIGen library will make it easier to test allowing for some time and memory consuming processes to be shared between Java and Native Memory.

Still, could Reflection become a problem? I mean altering internal variable at will seems like it could result in unexpected behavior, even as to unexpected behavior returning to the FMS. Of course I am sure it is just common sense to not mess around too much with the WPILib Internal Variables. Just putting it out there.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi