News for hackers. Stuff that matters.
Re:Exotic Programming Ideas, Part 3: Effect Systems by no_wizard on Sunday November 22, 2020 @05:57PM (#25181917)
I think the reactive/rx/observer patter might be an acceptable solution around the what color is my function problem and it tends to be very popular with the functional programming wing of the JS community from what I’ve seen.

Never understood why the browser didn’t ship a full access to something like an EventEmitter. Since you can dispatch events on window document DOM elements etc seems like being able to subscribe to events in a more arbitrary fashion that worked in parallel to the other events would have been useful and solved callback hell all the same

Re:Exotic Programming Ideas, Part 3: Effect Systems by the_benno on Monday November 23, 2020 @04:47PM (#25192332)
We built an effect system to enforce thread safety in Rx-based android apps a few years ago and published a paper on it at ASE, if you're interested: plv.colorado.edu/benno/ase18.pdf

the idea should generalize to whatever thread-pool/effect constraints you want to express, but the paper and implementation are focused on keeping UI effects on the android main thread.