<div dir="ltr">Well... I don't think anyone would consider this horrendous thing, idiomatic haskell...</div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-22 10:34 GMT+01:00 Jeremy <span dir="ltr"><<a href="mailto:voldermort@hotmail.com" target="_blank">voldermort@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Compared to the Nim code<br>
[<a href="https://github.com/logicchains/LPATHBench/blob/master/nim.nim" target="_blank">https://github.com/logicchains/LPATHBench/blob/master/nim.nim</a>] for a<br>
longest path algorithm, Haskell<br>
[<a href="https://github.com/logicchains/LPATHBench/blob/master/hs.hs" target="_blank">https://github.com/logicchains/LPATHBench/blob/master/hs.hs</a>] looks<br>
horrendously verbose and ugly, even if you ignore the pragmas and imports.<br>
<br>
Is this idiomatic Haskell style? Could it be clearer, but has to be written<br>
that way for performance - although it still takes 3.7x as long as the Nim<br>
version [<a href="https://github.com/logicchains/LPATHBench/blob/master/writeup.md" target="_blank">https://github.com/logicchains/LPATHBench/blob/master/writeup.md</a>]?<br>
<br>
I posted this to the beginners group last week, but no reply, so trying<br>
again here.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://haskell.1045720.n5.nabble.com/Haskell-implementation-of-longest-path-algorithm-tp5765786.html" target="_blank">http://haskell.1045720.n5.nabble.com/Haskell-implementation-of-longest-path-algorithm-tp5765786.html</a><br>
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>