Skip to content

Add my ArduinoSTL Library. #5224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mike-matera opened this issue Aug 10, 2016 · 5 comments
Closed

Add my ArduinoSTL Library. #5224

mike-matera opened this issue Aug 10, 2016 · 5 comments
Labels
Component: Board/Lib Manager Boards Manager or Library Manager

Comments

@mike-matera
Copy link

Hello Arduino Maintainers,

I teach a C++ class using Arduino. I want my students to have the full C++ experience with vectors, cin and cout, etc so I've ported uClibc++ and packaged it as a library. This STL implementation is surprisingly functional. Using it requires about 25% of your code space on an Uno. You already have an implementation of the STL by John Wellbelove but it is broken and seems to be unmaintained (the URL in the library is a dead link). Would you please add mine? I'll maintain it!

https://github.com/mike-matera/ArduinoSTL

Thanks!

@cmaglie cmaglie added the Component: Board/Lib Manager Boards Manager or Library Manager label Aug 10, 2016
@cmaglie
Copy link
Member

cmaglie commented Aug 10, 2016

Done!

@cmaglie cmaglie closed this as completed Aug 10, 2016
@matthijskooijman
Copy link
Collaborator

@mike-matera, did you also see https://github.com/maniacbug/StandardCplusplus and related forks? That also seems a port of uclibc++. Does your port add anything over that library?

@mike-matera
Copy link
Author

mike-matera commented Aug 10, 2016

@matthijskooijman, Yes. I have seen that project. That one also seems to be unmaintained. If you look at the pull requests you can see that there's one from me (number 17) that makes blocking I/O work properly on Arduino. It's a year old at this point. The last commit was in 2013.

My library has two improvements going for it: It's a compliant Arduino library and it contains Andy Brown's stream implementation (in /src/serstream) that wraps a HardwareSerial in a basic_streambuf enabling cin and cout to work seamlessly.

Thanks!

@matthijskooijman
Copy link
Collaborator

@mike-matera, true, I might see about switching over to your library :-)

Did you by chance have had contact with uclibc++ upstream? It seems some development is still going on, but I haven't found a forum, IRC channel or mailing list where development is discussed so far.

@mike-matera
Copy link
Author

@matthijskooijman. Thanks!

I didn't see a way to contact them either. The main page still lists Garrett Kajmowicz as the author but it looks like Bernhard Reutner-Fischer has been doing the bulk of the commits for years. My repo is a "rearranged" version of theirs, which keeps their commit history. My hope is that I'll be able to keep my version up to date with theirs. If you find a way to hail them I'd love to give them a hat tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Board/Lib Manager Boards Manager or Library Manager
Projects
None yet
Development

No branches or pull requests

3 participants