Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Type Stability in Julia: Avoiding Performance Pathologies in JIT Compilation. Parent comment
Test.@inferred is not quite what is needed:
function foo(x) s = 0 # better use a zero of the same type than x # s = zero(x) for y in x s += y end return s end Test.@inferred Float64 foo(12.1)
There are no comments on this comment yet.
Test.@inferred is not quite what is needed:
This test succeeds even if code is type-unstable