the-dr-lazy / purescript-monarch

A simple but powerful PureScript library for declaring pure UIs
Mozilla Public License 2.0
9 stars 0 forks source link

Rewrite document in typescript and imperative style #33

Closed jedimahdi closed 3 years ago

jedimahdi commented 3 years ago

We are gonna rewrite the core reactive loop of Monarch in the TypeScript. The reason behind these changes is the undesirable performance overhead of the PureScript which doesn't have any sense of inlining. Also, curry function calls are not desirable for the main loop which gonna call many times in the whole life of the UI application.

the-dr-lazy commented 3 years ago

Thank you @jedimahdi.

I left some suggestions about the changes. Also, the document has no understanding of the output and subscription now.