News for hackers. Stuff that matters.
Re:Xenko Game Engine 2.0 released by stcredzero on Tuesday April 25, 2017 @08:03PM (#14199379)
Unity games are often reported to have performance issues, allegedly due to the underlying GC (or lack of understanding of it).

Is there a way of running C# with reference counting?

Re:Xenko Game Engine 2.0 released by flukus on Tuesday April 25, 2017 @11:00PM (#14200117)
At that point you've created a different language with different semantics.
Re:Xenko Game Engine 2.0 released by stcredzero on Wednesday April 26, 2017 @01:20PM (#14205005)
I think "you can write C#, but you can only have your references form a DAG" would be acceptable in a lot of contexts, like game programming. (Existing libraries would still require some form of tracing, but I think there are ways that the tracing could be handled by another thread.)
Re:Xenko Game Engine 2.0 released by theprotocol on Wednesday April 26, 2017 @04:27AM (#14201393)
I instinctively get that thought whenever I work with C#. It's really nice but would it kill them to at least offer simplistic memory management semantics?
Re:Xenko Game Engine 2.0 released by pjmlp on Wednesday April 26, 2017 @05:06AM (#14201561)
People think RC as GC algorithm is simpler, but it isn't.

Naive implementations are slower than tracing GC, while high performance ones are as complex as tracing GC ones, while having the burden of forcing the developers to explicitly deal with cycles.

Re:Xenko Game Engine 2.0 released by stcredzero on Wednesday April 26, 2017 @01:16PM (#14204964)
high performance ones are as complex as tracing GC ones, while having the burden of forcing the developers to explicitly deal with cycles.

I bet there are plenty of game developers who would be only too glad to arrange their references as a DAG, if they could have guaranteed low latency.

Re:Xenko Game Engine 2.0 released by pjmlp on Wednesday April 26, 2017 @02:30PM (#14205660)
Maybe, but if they don't take care, some stack overflow surprises might happen, the fun of cascade deletions.