To wit: Here's a way to implement it with Python and Tkinter for an old school reactive GUI.
https://maldus512.medium.com/how-to-setup-correctly-an-appli...
To wit: Here's a way to implement it with Python and Tkinter for an old school reactive GUI.
https://maldus512.medium.com/how-to-setup-correctly-an-appli...
I wanted React with Elm-like architectures in WX enough that I got annoyed and built one ^_^
The real issue in that example seems to be that the event loop needs to wait for both UI events and read/write readyness on the serial port. This could probably be handled either with createfilehandler[1] (although it doesn't work on Windows) or by dedicating a thread to handling the serial port and posting messages to the Tkinter event loop as suggested at the end.
[1] https://docs.python.org/3/library/tkinter.html#file-handlers
Is the community active at all in 2021 or is it just the result of having basically one person working on the language?
I think there is a slow shift toward community built tools such as lambdera. The language itself is pretty stable (and good, IMHO).
Most of the news are available on the discourse discourse.elm-lang.org
Personally, I find working with Elm's state management features is like heaven compared to dealing with Redux+Typescript's intensely noisy types.
Anybody have any experience on how this compares to ReasonML + React?
Answering your question, the difference is Elm has a more expressive type system than javascript, and will catch a lot of errors for you, with excellent error reporting from the compiler.
The layout of the code becomes less important, because the compiler will catch most errors (actually recommended in elm guides not to split in too many files until overwhelmingly necessary)