Kenneth Lerman wrote: >I've been interacting with Lawrence Yu who reported Bugs 1807761 and >1807740. > >Lawrence has a fix for one of them (we think) and has been working on the >other. Specifically, he is working on the code to finish implementing named >owords. > >His proposed (partial) fix would use the STL string and map classes. To my >knowledge, this would be the first use of the STL in emc. > > There has been some other discussion of "porting" to STL. Overall, I'm for it. That is of course only in places where C++ is already the language used. :)
>I'm very comfortable using the standard C libraries, but have concerns about >using the C++ class libraries. Specifically, I'm concerned that their use of >memory might be somewhat less deterministic than the rest of emc. In a >previous life involving other projects of this nature, I heard strong >arguments both for and against using such libraries. I purposely avoided >using the map class in my code. > > The interpreter is not realtime code, and it only has to be able to interpret input lines faster than canon/traj can execute them to be sufficiently fast. Are you thinking of using libraries like Boost, or is there a "standard library" for C++? Also, how long ago did you use the classes you had concerns over? I know a lot has been done with the STL and other libraries regarding efficiency (and correctness). >So, what do you think? My inclination is to use them as Lawrence has >proposed, but since Lawrence has asked me to review the code before he >commits the code, I'm soliciting comments from the larger developer >community. > > I have no problem with that, but I'd like to have as much separation as possible between addition of new features and pure porting work. This may not be too easy in this case since the new functions are what need the new libraries, but it's something to keep in mind. - Steve ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
