News for hackers. Stuff that matters.
Re:Godot founders had desperately hoped Unity wouldn't 'blow... by neonsunset on Friday September 06, 2024 @05:16PM (#41469785)
You may be right, but chances are it would have pushed Godot in the right direction of avoiding Unity mistakes namely using custom scripting language which Unity ultimately gave up on. In this case, however, the forced API decisions that are contrary to performant interop patterns of C# are even more painful, and I keep getting casual reports that there is something wrong with the way Godot embeds .NET that leads to its consistently worse performance vs when being used standalone. I don't know the details and if anyone can shed more light on this, I'd love to dig into that.

In any case, even if we skip the subject of performance, GDScript is not a particularly good language comparatively speaking.

Re:Godot founders had desperately hoped Unity wouldn't 'blow... by Buttons840 on Friday September 06, 2024 @06:05PM (#41470062)
GDScript is fine and I rarely encounter errors because of the GDScript language. The typing is optional, but if used it works well enough and the editor gives good autocompletions and will mark type errors before runtime. GDScript also hasn't screwed up any of the fundamentals, like implicit type coercion in if-statements (see JavaScript), and is thus capable of improving without breaking backwards compatibility.
Re:Godot founders had desperately hoped Unity wouldn't 'blow... by kruuuder on Friday September 06, 2024 @05:46PM (#41469952)
> and I keep getting casual reports that there is something wrong with the way Godot embeds .NET that leads to its consistently worse performance vs when being used standalone.

This is the first time I hear that. Do you have any sources for that? Reposting unfounded "casual reports" isn't helpful.

Re:Godot founders had desperately hoped Unity wouldn't 'blow... by neonsunset on Friday September 06, 2024 @06:02PM (#41470037)
I'm not saying that they are well-founded, only that there seems to be a consistent anomaly I keep getting told about and would like to hear if this tracks or does not track with the experience of active Godot + C# users. It's just something I would like to know more about, with the best outcome of being proven wrong.
Re:Godot founders had desperately hoped Unity wouldn't 'blow... by gdscripter on Friday September 06, 2024 @05:32PM (#41469878)
I can tell you if Godot abandoned GDScript and went all in on C# then I would stop using Godot. I do not think C# is even remotely enjoyable as a language and GDScript works really well.
Re:Godot founders had desperately hoped Unity wouldn't 'blow... by jayd16 on Friday September 06, 2024 @07:26PM (#41470432)
Why? What are the features in GDScript that don't exist in C#?

Personally I find C# to be a fantastic language with both high (eg. pattern matching, dynamic) and low level (eg. value types, Span<T>) features as well as amazing tooling (eg. Rosylyn Analyzers) that come in very handy.

Re:Godot founders had desperately hoped Unity wouldn't 'blow... by gdscripter on Friday September 06, 2024 @08:24PM (#41470683)
My dislike of C# is nothing but syntax. Godot writes their examples in both C# and GDScript and you can see that GDScript is a much more concise language with almost no boilerplate compared to C#.
Re:Godot founders had desperately hoped Unity wouldn't 'blow... by danbolt on Saturday September 07, 2024 @12:23PM (#41474732)
I’ve used both, and personally, I find a lot of features in C# not necessarily contributing to standing up the gameplay I’m looking for. It has more functionality like you mention, but GDScript integrates with the engine nicely and doesn’t have GC pauses to worry about.

If performance is an issue, or I want to do something that GDScript doesn’t lend well too, I’d probably just jump to C++.

Re:Godot founders had desperately hoped Unity wouldn't 'blow... by pjmlp on Sunday September 08, 2024 @03:42PM (#41482622)
Pity that it doesn't have a JIT or AOT compiler like C#, though.
Re:Godot founders had desperately hoped Unity wouldn't 'blow... by pjmlp on Sunday September 08, 2024 @03:41PM (#41482615)
Apparently they have done the same strange anti-pattern as Unity, regarding magic methods called via reflection.