News for hackers. Stuff that matters.
Re:Typelevel Scala by tlarkworthy on Friday August 26, 2016 @06:46PM (#12369828)
Sometimes you really need to drop into mutation of state in perf critical paths
Re:Typelevel Scala by roberthensing on Saturday August 27, 2016 @10:04AM (#12372375)
There are great tools for that in both Scala and Haskell.

In Scala you can use var, which is easy.

In Haskell you can write your algorithm using ST and then use it as a pure function by means of runST. The type system guarantees that all such state is local to the invocation.