11 ms·
> A common complaint about Haskell is that doing "game-like" stuff I doubt some user-input issue on the Mac, in the alpha release, is to do with difficulties i
by dons 16y ago
> A common complaint about Haskell is that doing "game-like" stuff
I doubt some user-input issue on the Mac, in the alpha release, is to do with difficulties in the correct design for updating shared state, in a purely functional way... (they're probably using STM anyway (I would)).
> Don't hestitate to report any bugs that you experience to the bugtracker!
- dustingetz 16y ago> difficulties in the correct design for updating shared state, in a purely functional way can you elaborate on the right way? i think the choice to write a game in a functional language is interesting, because games are inherently about managing state, and functional languages are all about not using state.
- dons 16y agoAt least Haskell orients towards shared-state concurrency, where the state is the thin layer of communication between many stateless threads, using mechanisms like transactional memory to manage the shared resource.
- A1kmm 16y agoI looked at the source - they are using Hipmunk for the physics engine, a Haskell binding to Chipmunk (a physics library in C) to store state like object positions. Things like updating positions of objects occur in the IO monad. The UI is done using a custom Qt Haskell binding, and it looks like the key mapping to key translation is hard-coded - possibly the cause of key problems on Mac if they key codes are different to what it is expecting.