News for hackers. Stuff that matters.
Re:Interview with Simon Peyton-Jones by nightski on Thursday April 19, 2018 @04:08PM (#16879636)
AAA game engines could greatly benefit from the type systems. The problem is most (if not all to my knowledge) functional languages with advanced type systems require a garbage collector which is not ideal at all in that type of environment. They prefer the more deterministic latency provided by manual memory management.
Re:Interview with Simon Peyton-Jones by seanmcdirmid on Thursday April 19, 2018 @04:47PM (#16880022)
Unity uses C# as its scripting language, Lua is popular as well. These all have GC.
Re:Interview with Simon Peyton-Jones by cgh on Thursday April 19, 2018 @04:55PM (#16880078)
My friends in game dev do not consider Unity to be a AAA game engine, not by a long stretch.
Re:Interview with Simon Peyton-Jones by seanmcdirmid on Thursday April 19, 2018 @08:48PM (#16881350)
Obviously, there are no true Scotsmen. But whatever you think of it, unity is widely used by indies, especially in mobile and VR.
Re:Interview with Simon Peyton-Jones by pjmlp on Thursday April 19, 2018 @05:11PM (#16880223)
So given that, would they consider Unreal to be a AAA game engine?
Re:Interview with Simon Peyton-Jones by nightski on Thursday April 19, 2018 @10:18PM (#16881691)
Generally it's judged by the types of games which have been produced. Since Unreal has had AAA games released using it, then yes I'd say so.
Re:Interview with Simon Peyton-Jones by pjmlp on Friday April 20, 2018 @02:03AM (#16882475)
So then having a GC isn't an impediment to be a AAA games engine it seems.
Re:Interview with Simon Peyton-Jones by nightski on Friday April 20, 2018 @10:56AM (#16885274)
I didn't mean to imply that it was. But it's not ideal. I believe it's optional in Unreal too, so I'm not sure if AAA games use that feature.

GC is also a very blanket term. There are many different types. From what I understand the Unreal GC gives you a lot more explicit control over how and when it runs.

Having written OpenGL applications in Haskell (not games) I can say that it has no such feature. It's GC is also vastly different as immutable functional languages generate a LOT more garbage than normal applications (measured in GB/s).

GC is not the impediment. GC as it is currently implemented in the majority (if not all) advanced type system functional languages is.

Re:Interview with Simon Peyton-Jones by pjmlp on Friday April 20, 2018 @03:45PM (#16887938)
There I agree with you.

However Unity is improving their performance, you should have a look at HPC# presented at GDC 2018.