Settings

Theme

Building a reactive calculator in Haskell

keera.co.uk

22 points by myroslambda 6 years ago · 4 comments

Reader

9214 6 years ago

Red language offers a different approach: https://github.com/red/code/blob/master/Showcase/calculator....

Truly native and cross-platform GUI with declarative DSL for its specification, built-in reactive framework (no FRP though), and semantically rich evaluation model (e.g. note that calculation of typed expression is a one-liner).

  • myroslambdaOP 6 years ago

    So as a minimal example, yes, that is short. But it mixes model and view which, in very large applications, may produce codebases that are really hard to maintain. Are there examples that are much bigger, for example, with at least a few hundred widgets?

    By the way, the library used in that blog post is also truly native and cross-platform. Keera has apps and games that work on Windows/Mac/Linux/Web/iOS/Android, all from the same code.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection