Go to Post Its never too early to start dreaming. - Robert Cawthon [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-01-2013, 07:56
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Will this year use the C++11 standard library?

I was browsing msdn and watched this talk by Herb Sutter where he talks about changes to the standard library wherein its revealed that const objects are expected by the standard library to be thread safe, and so if our own classes do not follow the same behavior but use the standard library, then I could be subject to some race conditions.

Will we be using the C++11 standard library this year?

Video summarized by StackOverflow here.
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-01-2013, 14:27
sur sur is offline
Registered User
AKA: Sujit Rao
FRC #3324 (Metrobots)
Team Role: Alumni
 
Join Date: May 2012
Rookie Year: 2011
Location: Ohio
Posts: 12
sur is an unknown quantity at this point
Re: Will this year use the C++11 standard library?

I think that the version of WindRiver we have is using GCC 3.2, but full C++11 support isn't available in even the latest version of GCC (C++0x/C++11 Support in GCC), so I don't think it will change anything.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-01-2013, 16:52
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Will this year use the C++11 standard library?

Highly unlikely. It wasn't involved in the C++ beta, so it's probably not going to be in the final package
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #4   Spotlight this post!  
Unread 03-01-2013, 18:12
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,082
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Will this year use the C++11 standard library?

Search the forums, someone got a GCC 4.x toolchain working for vxWorks, so you could use that if you wanted the newest standard library stuff.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #5   Spotlight this post!  
Unread 08-01-2013, 15:01
CodeYeti's Avatar
CodeYeti CodeYeti is offline
FRC Addict
AKA: Matt Coffin
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Colorado
Posts: 81
CodeYeti is an unknown quantity at this point
Re: Will this year use the C++11 standard library?

Quote:
Originally Posted by virtuald View Post
Search the forums, someone got a GCC 4.x toolchain working for vxWorks, so you could use that if you wanted the newest standard library stuff.
rbmj and anyone who he has taken code from have done most of the work. I've just made some small changes and bugfixes to the build system, particularly for building WPILib.

Here's the latest thread on the topic if you're interested!
http://www.chiefdelphi.com/forums/sh...d.php?t=109385
Reply With Quote
  #6   Spotlight this post!  
Unread 08-01-2013, 16:41
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Will this year use the C++11 standard library?

I got code from AustinSchuh, Ross Light, and Cody Schafer. The initial code and concept is all to the credit of Austin Schuh. Ross Light did some initial work on this base to make it more configurable, and Cody Schafer added several patches to enhance the support. He also updated the patches to work with 4.7 and found several new issues. After much negotiating I was able to get the effective equivalent of the patches into GCC itself as part of the fixincludes subsystem, and I corrected an issue with the installation header paths with the current build scripts. Though I still have one bug open against GCC, most of the hard work is finished and now it's the tedious maintenance that has to be done.

Felt like they deserved to be called out since they did all the heavy lifting of actually getting a working compiler, in the dark ages of the project when it wasn't clear if it was actually going to be a feasible amount of effort or not...

Anyway, I have compiled binaries on my system. Once I've completed testing and got WPILib up and running I'll post the results. They will be targeted at debian unstable aka testing aka wheezy, but they should be fine on any deb-based distro, and alien might work for rpm-based distros (which can of course still do a manual build).

Everything should be ready for release NLT Saturday, so if you want to play around with it there should be plenty of time during build season to do so

EDIT: Used real names instead - they're available from all of their github pages anyway...

Last edited by rbmj : 08-01-2013 at 18:47.
Reply With Quote
  #7   Spotlight this post!  
Unread 08-01-2013, 17:46
CodeYeti's Avatar
CodeYeti CodeYeti is offline
FRC Addict
AKA: Matt Coffin
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Colorado
Posts: 81
CodeYeti is an unknown quantity at this point
Re: Will this year use the C++11 standard library?

Quote:
Originally Posted by rbmj View Post
I got code from zombiezen and jmesmon. The initial code and concept is all to the credit of zombiezen. Jmesmon then updated the patches to work with 4.7 and found several new issues. After much negotiating I was able to get the effective equivalent of the patches into GCC itself, and corrected an issue with the installation header paths with the current build scripts.

Felt like they deserved to be called out since they did all the heavy lifting of actually getting a working compiler, in the dark ages of the project when it wasn't clear if it was actually going to be a feasible amount of effort or not...

Anyway, I have compiled binaries on my system. Once I've completed testing and got WPILib up and running I'll post the results. They will be targeted at debian unstable aka testing aka wheezy, but they should be fine on any deb-based distro, and alien might work for rpm-based distros (which can of course still do a manual build).

Everything should be ready for release NLT Saturday, so if you want to play around with it there should be plenty of time during build season to do so
Not meaning to thread-jack, but do you mind sharing where you got the source for WPILib without installing WindRiver Workbench? The SVN repository doesn't seem to allow for anonymous access and everything I've found telling people how to get source assumes that you have a working WindRiver installation, and I don't have a Windows machine readily available to set that up.
Reply With Quote
  #8   Spotlight this post!  
Unread 08-01-2013, 18:18
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Will this year use the C++11 standard library?

Quote:
Originally Posted by CodeYeti View Post
Not meaning to thread-jack, but do you mind sharing where you got the source for WPILib without installing WindRiver Workbench? The SVN repository doesn't seem to allow for anonymous access and everything I've found telling people how to get source assumes that you have a working WindRiver installation, and I don't have a Windows machine readily available to set that up.
Download the workbenchupdate.exe file off of firstforge, change the extension to .zip, extract it, and look around. There should be a wpilib source folder. Learned that trick from the ucpp scripts
Reply With Quote
  #9   Spotlight this post!  
Unread 08-01-2013, 18:19
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,576
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: Will this year use the C++11 standard library?

Quote:
Originally Posted by CodeYeti View Post
Not meaning to thread-jack, but do you mind sharing where you got the source for WPILib without installing WindRiver Workbench? The SVN repository doesn't seem to allow for anonymous access and everything I've found telling people how to get source assumes that you have a working WindRiver installation, and I don't have a Windows machine readily available to set that up.
The C++ Update is just a self extracting zip file. You can use almost any unzip tool to get to the source archive inside.
Reply With Quote
  #10   Spotlight this post!  
Unread 10-01-2013, 16:21
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Will this year use the C++11 standard library?

FYI: Binaries are available now. See the thread in the global programming forum.
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 03:34.

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