3 ms·
> The code to handle the special cases of invalid inputs can sometimes have dramatic effects on code size and performance, sometimes too much to bear for code t
by NOGDP 7y ago
> The code to handle the special cases of invalid inputs can sometimes have dramatic effects on code size and performance, sometimes too much to bear for code that should never run in the first place; allowing for garbage output to be produced for garbage input instead of a result that says "this is garbage input" could well be acceptable.
That seems solvable by refactoring your types a little. Also, some languages do not allow partial functions - such as total functional programming languages.
> we have yet to find a satisfying specification for data races that is more constraining than "anything goes," and the two most well-known attempts (Java and C++) have both been widely regarded as failures.
What about nested data parallelism[1] or pure parallelism such as in Haskell?
[1] https://www.classes.cs.uchicago.edu/archive/2016/winter/32001-1/papers/nepal.pdf https://www.classes.cs.uchicago.edu/archive/2016/winter/3200...