← Home ← Back to /g/

Thread 107139021

14 posts 6 images /g/
Anonymous No.107139021 [Report] >>107139757 >>107140811 >>107140944 >>107142827 >>107144172
>has zero use cases over haskell in your path
Anonymous No.107139732 [Report] >>107140533
Isn't it easier to write verifiable software in ocaml
Haskell is lazy which makes code higher level, but makes reasoning about termination and execution order harder.
Doesn't require monads wrappers for interfacing with c or rocq
Type system is much to expressive which makes proofs a challenge for large projects as the standard way to write something in haskell may use something outside of your type restrictions
Ocaml is part of a larger ecosystem of verification and theorem proving tools infact rocq is written in ocaml
rocq can even write programs in ocaml for you
Anonymous No.107139757 [Report]
>>107139021 (OP)
so it also zero use cases?
Anonymous No.107140533 [Report]
>>107139732
>Isn't it easier to write verifiable software in ocaml
>Ocaml is part of a larger ecosystem of verification and theorem proving tools infact rocq is written in ocaml
>rocq can even write programs in ocaml for you
see agda and agda2hs
also check out LiquidHaskell
>Haskell is lazy which makes code higher level, but makes reasoning about termination and execution order harder.
lazy evaluation guarantees that your code will terminate if it can terminate with some evaluation order. and with pure code, execution order should not matter at all as far as the result is concerned. read more here: https://en.wikipedia.org/wiki/Lambda_calculus
>Doesn't require monads wrappers for interfacing with c or rocq
using do notation isn't hard
>Type system is much to expressive which makes proofs a challenge for large projects as the standard way to write something in haskell may use something outside of your type restrictions
not sure what you mean
Anonymous No.107140811 [Report] >>107140913
>>107139021 (OP)
Yea bro try making sure your code uses in place memory.
Anonymous No.107140913 [Report]
>>107140811
You could do that with linear types though
Anonymous No.107140944 [Report] >>107141481
>>107139021 (OP)
I use Perl all the time.
Much faster and more concise than something like haskell. Haskell is an educational/theoretical language with no real-world usefulness.
Anonymous No.107141270 [Report] >>107141397
More importantly, it has no use cases over Rust. It's just some weird boomer imperative language only used by one meme prop trading firm.
Anonymous No.107141397 [Report]
>>107141270
Ocaml at least has gadts unlike rust
Anonymous No.107141481 [Report]
>>107140944
how the fuck is perl faster than haskell
Anonymous No.107142622 [Report] >>107143313
it's better for compilers
Anonymous No.107142827 [Report]
>>107139021 (OP)

not for me
Anonymous No.107143313 [Report]
>>107142622
how so?
Anonymous No.107144172 [Report]
>>107139021 (OP)
Programs need to mutate external state to be useful. Unlike Haskell, OCalm prioritizes pragmatism over ideological priority.