News for hackers. Stuff that matters.
Re:Exotic Programming Ideas, Part 3: Effect Systems by valenterry on Sunday November 22, 2020 @08:41PM (#25182799)
It only implements the first part, not the more difficult one of composing different kind of effects.

Scala has a library for the difficult part, but I don't think it was very successful: https://github.com/atnos-org/eff

Re:Exotic Programming Ideas, Part 3: Effect Systems by atennapel on Monday November 23, 2020 @07:08AM (#25185853)
There's also effekt for Scala: https://github.com/b-studios/scala-effekt though it does not seem to be maintained.
Re:Exotic Programming Ideas, Part 3: Effect Systems by valenterry on Monday November 23, 2020 @07:10PM (#25193582)
Yes - I think we can conclude that these techniques are both too complicated and not ergonomic enough as of now. If that does not work in Scala, it will work even less in Kotlin (where many people go when they find Scala too complex).
Re:Exotic Programming Ideas, Part 3: Effect Systems by atennapel on Wednesday November 25, 2020 @05:29AM (#25207753)
I think something like algebraic effects can definitely be ergonomic and understandable, but a language definitely has to be designed for it. Algebraic effects are like exceptions in a lot of ways, so I think people will be able to understand them. See Effekt [1] and Koka [2] for languages that are designed with them in mind.

[1] https://effekt-lang.org/ [2] https://koka-lang.github.io/koka/doc/kokaspec.html