What do you think makes ECS cancer? I mean it seems like cancer to me but I'm a stubborn retard so I'm an unreliable judgeI think what you want is learn data oriented design rather than ECS (cancer).
What do you think makes ECS cancer? I mean it seems like cancer to me but I'm a stubborn retard so I'm an unreliable judgeI think what you want is learn data oriented design rather than ECS (cancer).
Yeah but C has headers and I find them annoying to deal with. Go looks easier to write and is garbage collected but you still have to deal with like memory pointers and shit. It is a lot easier than c++ albeit, but is fucking picky as shit, requires semi colons after every line and has a go at you if you don't. Also, you are making a 2D game in C, been done before so many times.I think what you want is learn data oriented design rather than ECS (cancer). I don't think Zig or Rust are good languages right now because they have no libraries, unstable, llvm mess, and long compile times with huge binaries output.
I would say Go is bad because it is garbage collected you'd take performance hits each time it cleans up. You can remedy it by avoiding allocations at run time. For example only allocate/deallocate every time you load/unload a level.
>Is it possible to have a programming language that doesn't suck, easy to read, easy to write, but extremely performative and cross platform?
yes and it's called C , but seriously I'm trying to write a 2d game with C and it's not so bad merely a different approach to C++. Instead of writing `Object.update(world)` I write `update(world, object)`. Regarding reinventing the wheel in C with data structures, I just allocate a 16000 array and I don't need more.
primitive types like integers, floats you should pass by value. But larger objects like a class are huge to copy, and you usually want to modify them, so you use a pointer.I've tried reading up about pointers and stuff, can anyone explain to me their purpose?
retardGODSo why not just use pointers for everything?
because it's not necessary and just makes code less readable and more brittle (more chance of null deref and IDF blowing up your computer)So why not just use pointers for everything?
So just always use pointers for classes and structs then? And also variables with a really high size, like a file loaded as string or something like that?primitive types like integers, floats you should pass by value. But larger objects like a class are huge to copy, and you usually want to modify them, so you use a pointer.
retardGOD
because it's not necessary and just makes code less readable and more brittle (more chance of null deref and IDF blowing up your computer)
I feel that they add a lot of overhead, to get them working you need to setup groundwork. I prefer to write things as they are. I'd would just have structs/classes with repetitive information then make everything a component.What do you think makes ECS cancer? I mean it seems like cancer to me but I'm a stubborn retard so I'm an unreliable judge
Built for Big Soulja Boy CockI think what you want is learn data oriented design rather than ECS (cancer). I don't think Zig or Rust are good languages right now because they have no libraries, unstable, llvm mess, and long compile times with huge binaries output.
I would say Go is bad because it is garbage collected you'd take performance hits each time it cleans up. You can remedy it by avoiding allocations at run time. For example only allocate/deallocate every time you load/unload a level.
>Is it possible to have a programming language that doesn't suck, easy to read, easy to write, but extremely performative and cross platform?
yes and it's called C , but seriously I'm trying to write a 2d game with C and it's not so bad merely a different approach to C++. Instead of writing `Object.update(world)` I write `update(world, object)`. Regarding reinventing the wheel in C with data structures, I just allocate a 16000 array and I don't need more.
I don't think he has recovered from that GEG, fucking John blows some of his advice is good but the more you listen to worse it isBuilt for Big Soulja Boy Cock