News for hackers. Stuff that matters.
Re:Rewrite It in Rails by consteval on Monday November 04, 2024 @12:59PM (#42044237)
Go is absolutely not a low-level systems language. It has a GC. Even C++ isn't a low-level systems language: C++ is a high-level language.

Seriously, how could someone describe a GC memory safe language as "low level"? Unless you mean the type system, which I admit is a bit more primitive than something like C++ or C#. But Go is definitely closer to Java/C# than C++.

Re:Rewrite It in Rails by neonsunset on Monday November 04, 2024 @01:48PM (#42044796)
C# stands out a bit as it provides first-class manual memory management APIs, zero-cost abstractions and tools to do RAII like many other systems programming languages do. It's quite unlike most other GC-based languages once you look at it closely.

If anything, it allows you to go way more low-level than Go.

Re:Rewrite It in Rails by consteval on Monday November 04, 2024 @02:02PM (#42044922)
While true, I'd argue the way C# is used is closer to Java than C++, despite the tools it provides. Also I think Go allows manual memory management as well, although close to nobody uses it. In my head, there's a "sharp" divide between GC langs and non-GC langs. While the GC langs may provide some shallow hacks to get close to what lower-level langs can do, for those lower level langs that's all they can do. And typically it's not a 1-1.
Re:Rewrite It in Rails by neonsunset on Monday November 04, 2024 @05:38PM (#42046742)
The tools C# provides are far from "shallow hacks". Go does not provide "equivalent" ability to malloc and free, or write C structs with explicit layout. Does not have the same type of struct generics C# has ala Rust or C++ templates, it's not even close.

Perception problems do not affect technical capability, and there exists a world of gamedev beyond enterprise engineering that treats C# appropriately.