3 ms·
>Forgive my ignorance of Rust, but GUI toolkits are probably the strongest candidate for OOP style development That's so 1991. We're on to GUI's as pure functi
by coldtea 6y ago
>Forgive my ignorance of Rust, but GUI toolkits are probably the strongest candidate for OOP style development
That's so 1991. We're on to GUI's as pure functions of state these days, get on with the program :-)
- BlueTemplar 6y agoTell us more ?
- k__ 6y agoCycle.js, Callbags, etc.
- deleted 6y ago[deleted]
- coldtea 6y agoElm and React for one... and all the other similarly inspired UI libs (even SwiftUI is kind of going there)... Plus the increased interested on fp UIs for games, entity systems, etc... https://www.freecodecamp.org/news/the-revolution-of-pure-views-aed339db7da4/ https://www.freecodecamp.org/news/the-revolution-of-pure-vie...
- 3PS 6y agoCheck out these articles surveying the landscape of reactive UI, from the same author as the linked article: https://raphlinus.github.io/ui/druid/2019/11/22/reactive-ui.html https://raphlinus.github.io/ui/druid/2019/11/22/reactive-ui.... https://raphlinus.github.io/rust/druid/2020/09/25/principled-reactive-ui.html https://raphlinus.github.io/rust/druid/2020/09/25/principled...
- seanalltogether 6y agoI'm not entirely convinced. Libraries like React have succeeded in web development due to the complete lack of html having an extensible component model. Native applications don't have to worry about shoehorning a workable framework into stateless document renderers.
- realharo 6y agoNo, this is a larger trend. Both major mobile platforms are moving in this direction as well (SwiftUI, Jetpack Compose).
- andrewmcwatters 6y agoThere's really no such thing. You might be using pure functions from your perspective, but someone is handling all that backing layer data and mutable information.
- lmm 6y agoThere's no such thing as structured programming, at the assembly level it always just compiles down to conditional jumps. There's no such thing as a digital circuit, because real-world voltages are always analogue. Etc.
- oblio 6y agoYeah, but some abstractions are leakier than others. I have never hit a real-world voltage bug or conditional jump bug, as far as I remember.
- lmm 6y agoHave you ever hit a bug in the implementation of immutable data? I haven't. (And I have seen a miscompiled loop, though I agree they're very rare).
- oblio 6y agoWell, now that I think about it, I have seen a compiler bug in an IBM Java compiler where an if condition would never be hit, despite the code being fine and the Sun Java compiler working as expected.
- andrewmcwatters 6y agoWhich is all dealing with retained, mutable data. Period. I'm not making the comment for the sake of pointing out _levels_ of abstraction. I made the comment because such an abstraction doesn't at all map to reality.
- lmm 6y ago