M
M
MiniDeveloper2020-12-05 21:14:42
Programming languages
MiniDeveloper, 2020-12-05 21:14:42

Which language to choose for working with 3D - Rust or C ++?

I can not decide on the language that I will use for "all sorts of 3D things" (I will not specify). Good old C++ is certainly good, but Rust also seems to be keeping up so far (except for the community, of course). List the pros and cons of these languages ​​for working with 3D.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-12-06
@vabka

I won't tell you about C++, but rust has some nuances:
1. All these jokes with the borrow checker, which, I think, with 3d will arise even more often due to complex data structures.
2. Some libraries may not be enough - there may be only bare wrappers over C (or even they will have to be generated), which is also not very convenient.
But personally, I don’t see a big problem in this, because it’s much more convenient than C ++, and it’s much easier to overcome the compiler than it seems.
There are already convenient wrappers for opengl, vulkan, directx, winapi, and they can be found on crates.io

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question