4 ms·
Metamine represents the latest breakthrough in programming, it offers a mix of tradition declarative programming and reactive programming. The "magical equals"
by mikewarot 5y ago
Metamine represents the latest breakthrough in programming, it offers a mix of tradition declarative programming and reactive programming. The "magical equals" for lack of a better term, lets you do "reactive evaluation", the opposite of lazy evaluation.
If any of the terms that a term depend on change, the result is updated, and all it's dependencies, etc. You can use the system clock as a term, thus have a chain of things that update once a second, etc.
Being able to use both reactive and normal programming together without breaking your brain is a whole new level of power.
It's brilliant stuff, and it seems to have been yoinked from the internet. 8(
Here's a previous thread about it: https://news.ycombinator.com/item?id=27555940 https://news.ycombinator.com/item?id=27555940
- pharmakom 5y agoCan’t this be expressed as a library in Haskell or even F# though?
- AnimalMuppet 5y agoThat style sounds like it's mutating variables when other variables change (that is, mutate). That doesn't sound like a good fit for Haskell...
- kian 5y agoHaskell is great at mutating variables. Reactive programming was even pioneered in it. It's just that the Monads that allow you to do this are somewhat like sticky tar - everything they touch becomes a part of them. The traditional structure of Haskell programs is to build a pure functional 'core', and layer around that the 'sticky' parts of the code that need to interact with the outside world.
- AnimalMuppet 5y agoOK, but the "reactive" programming sounds like how you build the core. So I still question whether that style fits well with Haskell.
- pharmakom 5y agoHaskell has do notation and monads (F# has computation expressions, which are similar). These allow you to implement things as libraries that in most other languages would require changes to the compiler. Lisp macros can do it too. You could push the reactivity monad right down to the core of your application to get the benefits of this reactive language.
- machiaweliczny 5y agoSo it's like MobX in UI world?
- still_grokking 5y agoDataflow languages are going back to the late 70ies. Think Excel. ;-) But I agree it's an under-explored branch of programming. Event-"handlers" are by the way dataflow based in QML. Dataflow shines in GUIs. But not only there: https://enso.org/ https://enso.org/