by CyberDildonics · 3y ago · 0 comments
So your solution is to rewrite the haskell standard library yourself?
With CPP or cabal tricks
I don't know what cabal tricks is supposed to mean here.
> So your solution is to rewrite the haskell standard library yourself?
No need--the simplest solution is to pass flags correctly to the dependent library (set all flags BoundsChecks, UnsafeChecks, and InternalChecks to false for the vector package) for release builds.
Explanation after the one-line rebuttal:
This exactly matches the C++ behavior: no bound checks for release builds, but with bounds checks for debug builds. This shows that Haskell can do what C++ can do, very easily, just by passing compiler/cabal/stack flags correctly.
With this rebuttal, I think the issue is completely settled, at least for reasonable readers.
If performance is an issue, why not just do this instead of dealing with "Liquid Types".
And with this rebuttal, the issue is now settled for all readers and even those differently abled that are using voice readers.
For pointer checks.
And with this rebuttal, the issue is now double settled.
> I don't know what cabal tricks is supposed to mean here.
It means conditional compilation, i.e. what the C preprocessor also gives you (but somewhat more principled).