Better HN
topnewbestaskshowjobs
Log inSign up

endoplasm

1 karma · joined Jan 7, 2018 (8y ago) · 2 submissions

Submissions

comment 8y ago · link · parent

Yes, you're right. The definition of an optimization being ``safe'' is tricky in the presence of non-determinism.

The set of possible executions of a correctly optimized program should be a subset of---and specifically, need not be necessarily equal to---the possible executions of the original unoptimized version.

comment 8y ago · link · parent

Neither of those optimizations looks safe to me. Couldn't they potentially introduce deadlocks?