3 ms·
Good read, thanks. But in practice, with all its problems, C++ has been proven to work over and over, and the author's - Tim Sweeney - work is proof of that. To
by stephth 15y ago
Good read, thanks. But in practice, with all its problems, C++ has been proven to work over and over, and the author's - Tim Sweeney - work is proof of that. Today, 6 years after this talk, has anyone successfully made a commercial game with the game logic built with FP, and if so, was it more productive than the former approach? I'm not saying the lack of examples prove it's not beneficial, but believing it is, is still only a guess.
- Morcane 15y agoFP languages in games: - Jax and Daxter (and Crash Bandicoot): http://ynniv.com/blog/2005/12/lisp-in-games-naughty-dogs-jax-and.html http://ynniv.com/blog/2005/12/lisp-in-games-naughty-dogs-jax... - Abuse: http://en.wikipedia.org/wiki/Abuse_(computer_game) http://en.wikipedia.org/wiki/Abuse_(computer_game) - Lua (even though it is not strictly functional) is used quite a bit throughout the game industry.
- stephth 15y agoOf those examples only Jak and Dexter is actually about functional programming in game dev. It's a good example though. But the outcome of using FP didn't turn out that great for them, it did not make them more productive: A single programmer (who could easily be one of the top ten Lisp programmers in the world) wrote GOAL. While he called his Lisp techniques and programming practices "revolutionary," others referred to them as "code encryption," since only he could understand them. So we found one example, and it didn't prove FP is beneficial to productivity.
- eru 15y agoYou are right, we need to see more examples of functional programming being used in games. Then we can better tell what effects it has. Interestingly, you can also say that Cobol has been proven to work for business applications over and over. And people build successful websites with PHP.