4 ms·
Nim is still on the top of my to-study-to-use list, for c++ backend I'm unsure if it transpiles to c++20?
by synergy20 4y ago
Nim is still on the top of my to-study-to-use list, for c++ backend I'm unsure if it transpiles to c++20?
- overthrow 4y agoWhy would you want C++20? C++ is generally backwards compatible, so a modern C++ compiler will still compile C++11
- synergy20 4y agoc++20 provides quite a list of features on top of c++11 that I use daily these days, would like to know nim keeps up with those new syntax/features as well, seems not yet.
- FireInsight 4y agoIf those features exist in Nim, you can just use Nim. FFI should probably work on newer libraries too.
- netbioserror 4y agoNim uses C/C++/Obj-C as a sort of abstracted assembly. While it's possible to follow the generated code with some formatting and effort, it's made to be optimally machine-parsable and optimizable. I suggest giving Nim a try and checking out the generated sources to see for yourself.
- nu11ptr 4y agoI have no first hand knowledge, but my guess is their code generator would use the lowest compatible C++ version that has all the features they need - to maximize compatibility. If it was me I would actually be trying to avoid using the newer features of C++ as is shrinks your interoperability.