News for hackers. Stuff that matters.
Re:A Gentle Introduction to Liquid Types by eigenspace on Tuesday September 05, 2023 @02:59AM (#37388716)
> But Haskell enables you to do more. With around 30 lines of Liquid Haskell (those lines between {-@ and @-}), you can upgrade simple runtime checks to compile time verification, see the full example [1]. You get great efficiency, safely, without unnecessary runtime checks, which is impossible in C++, Rust, or Julia without Liquid Types.

Just a side-note, julia's compiler is very adept at proving situations where array accesses are guaranteed to be in-bounds and will automatically elide bounds checks in those situations. Not saying this to take anything away from Liquid Haskell though, that seems like a very cool project with some very cool capabilities.

Re:A Gentle Introduction to Liquid Types by one-punch on Wednesday September 06, 2023 @12:18AM (#37401302)
Thanks for the great note, I learned something today.