News for hackers. Stuff that matters.
Re:Swift System Is Now Open Source by myko on Friday September 25, 2020 @09:11PM (#24595608)
I find Rx to be super clear usually. What problems have you run into?

Combine (Apple's Rx framework) is pretty understandable/usable as well.

Re:Swift System Is Now Open Source by vips7L on Friday September 25, 2020 @10:41PM (#24596010)
In my opinion it's just easy to do wrong. Most uses I've seen (at least in java land) are attempts at non-blocking io which ends up turning the whole application into observables from bottom up. Which in turn makes your app hard to debug and reason about.

When done right, when you actually need the observer pattern, and use it as an event queue I'm sure it's probably amazing though.

Re:Swift System Is Now Open Source by myko on Saturday September 26, 2020 @10:15AM (#24599020)
Those are good points but I agree with the other commenter that these are just difficulties with asynchronous programming generally. I like that Rx makes reasoning about those issues more straight forward and something you must handle instead of something that will bite you later if you didn't think through it.
Re:Swift System Is Now Open Source by nsonha on Saturday September 26, 2020 @12:30AM (#24596425)
this is the problem with async programming in general not just rx. Relevant read:

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...

Re:Swift System Is Now Open Source by vips7L on Saturday September 26, 2020 @01:00AM (#24596551)
Yes I know about colored functions. I'm looking forward to loom and virtual threads on the jvm to solve that.

BUT it doesn't change the fact that Rx is hard to implement correctly and is often misused when you don't need the observer pattern.