News for hackers. Stuff that matters.
Re:Why is Idris 2 so much faster than Idris 1? by kibwen on Monday May 25, 2020 @05:39PM (#23305257)
I'm asking what we're referring to by "type erasure" here; one can use trait objects to erase a type in Rust, and size_of (which, yes, runs at compile-time (the debug macro is just for printing, not for const eval)) does indeed work on such type-erased objects, but it will always give you the size of the fat pointer to the trait object.

There are no comments on this comment yet.