Haskell SpriteKit- a Purely Functional API
recording made private on YouTubehttps://youtu.be/kd8mlbN0Mws
summary
Haskell binding to Apple SpriteKit provides a purely functional scene representation and a real-time adaptor that translates Haskell-side changes into minimal edits on the mutable SpriteKit graph, demonstrated with a Flappy Bird–style game that spawns pipes every 1.5s and runs at 60Hz. Key techniques are lazy marshalling (thunks that marshal Obj‑C nodes on demand), unsafePerformIO with inline Objective‑C to perform that marshalling, and thunk identity comparison (reallyUnsafeEquality#) to compute diffs and apply only the changed fields; works but relies on unsafe primitives.
AI-written summary · about
related talks
01h 11mCan You Build a Commercial Game in Haskell?
01h 04mHaskell - A Peek Inside the Ivory Tower
40mWhat Haskell taught us when we were not looking
01h 22mHaskell for Everyday Programmers
46mPainless software development with Haskell
01h 00mCause and Effect(s): Towards a More Programmable Haskell
01h 02mHaskell for Java Programmers
45mHow I Learned Haskell by Writing Tiny Games