GabeRundlett / gvox_engine

MIT License
319 stars 20 forks source link

programming language #10

Closed Pantyhose-X closed 2 months ago

Pantyhose-X commented 3 months ago

Should the use a programming language that is faster, smaller, and consumes less resources? ? It's 2024 and not many people are going to learn languages like C and java, which are not easy to learn and consume more time to maintain. Odin, Nelua ,Rust , Zig

GabeRundlett commented 3 months ago

Could you elaborate?

RedNicStone commented 3 months ago

Who let chatgpt loose on github?

trsh commented 3 months ago

Who let chatgpt loose on github?

Meh, no, chatGPT writes correct sentences.

trsh commented 3 months ago

Should the use a programming language that is faster, smaller, and consumes less resources? ? It's 2024 and not many people are going to learn languages like C and java, which are not easy to learn and consume more time to maintain. Odin, Nelua ,Rust , Zig

Some issues with your question / proposal. This engine is writen in c++, not c, big difference. Try to actually use Rust for some more or less complex project and then talk about "it being easier to learn and maintain". More trending then c++, sure, but easier to code, no way (maybe just the building part). So we are left with odin and zig (can't comment on nelua, as I haven't researched it). But why do you think zig/odin are smaller and faster, and use less resources? Actually for that c/c++/rust are best candidates and should in deed power the core of a desktop voxel engine. For a more high level programming, there is usually an API/SDK that can power many language bindings. Maybe that is the thing you wish for?

Pantyhose-X commented 3 months ago

Test data from benchmark https://survey.stackoverflow.co/2023/ According to the statistics, the number of people learning c, cpp, java is decreasing. https://programming-language-benchmarks.vercel.app/cpp-vs-zig https://programming-language-benchmarks.vercel.app/cpp-vs-rust https://programming-language-benchmarks.vercel.app/cpp-vs-odin

solmidnight commented 3 months ago

Test data from benchmark https://survey.stackoverflow.co/2023/ According to the statistics, the number of people learning c, cpp, java is decreasing. https://programming-language-benchmarks.vercel.app/cpp-vs-zig https://programming-language-benchmarks.vercel.app/cpp-vs-rust https://programming-language-benchmarks.vercel.app/cpp-vs-odin

A language like CPP still has a lot of momentum, thus market share. Zig and Rust are both bare-metal languages like C++, they are not significantly faster or slower nor do they consume a significantly different amount of resources.

To top it off, this is a gpu driven engine; even if this was written in java most of the work is being done by the gpu. If anything we need a more advanced shader language! 😊

trsh commented 3 months ago

Test data from benchmark https://survey.stackoverflow.co/2023/ According to the statistics, the number of people learning c, cpp, java is decreasing. https://programming-language-benchmarks.vercel.app/cpp-vs-zig https://programming-language-benchmarks.vercel.app/cpp-vs-rust https://programming-language-benchmarks.vercel.app/cpp-vs-odin