Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Totally possible. Here’s a link to a game recently released on Steam that is written in Haskell and whose source is open: https://github.com/incoherentsoftware/defect-process

I recently hacked together an asteroids clone in Haskell with SDL2 and not much else. It’s not super pretty but it works.

I’ve talked to folks who’ve been using the newer effects libraries taking advantage of the new delimited continuation primops in GHC 9.6 for their game dev. Even with very high level libraries their reporting acceptable performance.

With enough dedication I’m certain anyone could make whatever game they wanted in an FP language.



Even without delimited continuations, ReaderT IO-based effects libraries like cleff and effectful are plenty cheap for gamedev!


Or, as the link says:

> I've spent enough time with functional languages to have figured out how to implement non-trivial, interactive applications like video games. My plan is to cover this information in a short series of entries.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: