News for hackers. Stuff that matters.
Re:Resources about programming practices for writing safety-... by gpderetta on Tuesday March 07, 2017 @05:09AM (#13809387)
For what is worth, C++ type system (which is more powerful than most, actually) make it simple to encode units (including composite units, exponents and ratios) and computing the exact units of complex expressions. See Boost.Units or std::chrono design. And with zero cost abstraction and little syntactic overhead of course.
Re:Resources about programming practices for writing safety-... by pjmlp on Tuesday March 07, 2017 @07:52AM (#13809933)
The problem is getting embedded devs to use it, or when they do use it, not to write "C with C++ compiler" code.
Re:Resources about programming practices for writing safety-... by gpderetta on Tuesday March 07, 2017 @10:15AM (#13810898)
of course, but it would be even harder to get them to use any other language other than C or C++.