I am stuck working on a C++ code base using Qt. Could I in theory use Nim to accelerate my development, or would it produce incomprehensible or ugly C++ code? Alternatively are there other alternatives to C++ for people who have to submit C++ code into the repository? I use other languages than C++ on a regular basis and I find it annoying to tedious the language is. So much boilerplate and repetitions.
The Nim programming language
81–90 of 97 posts
Re: The Nim programming language
#82I am stuck working on a C++ code base using Qt. Could I in theory use Nim to accelerate my development, or would it produce incomprehensible or ugly C++ code? Alternatively are there other alternatives to C++ for people who have to submit C++ code into the repository? I use other languages than C++ on a regular basis and I find it annoying to tedious the language is. So much boilerplate and repetitions.
Re: The Nim programming language
#83I am stuck working on a C++ code base using Qt. Could I in theory use Nim to accelerate my development, or would it produce incomprehensible or ugly C++ code? Alternatively are there other alternatives to C++ for people who have to submit C++ code into the repository? I use other languages than C++ on a regular basis and I find it annoying to tedious the language is. So much boilerplate and repetitions.
Re: The Nim programming language
#84Earlier quoted context omitted.
It says it has to scan the entire threadlocal heap with mark and sweep. What am I missing? Anyways I'm sorta being pedantic that it obviously has some sort of runtime. Maybe they meant to say not a runtime like a full VM ala Java?
The whole language compiles to C, C++, or Javascript. It presumably uses whatever runtime the compiled-to language provides.
Re: The Nim programming language
#85Earlier quoted context omitted.
It says it has to scan the entire threadlocal heap with mark and sweep. What am I missing? Anyways I'm sorta being pedantic that it obviously has some sort of runtime. Maybe they meant to say not a runtime like a full VM ala Java?
The whole language compiles to C, C++, or Javascript. It presumably uses whatever runtime the compiled-to language provides.
Re: The Nim programming language
#86I am stuck working on a C++ code base using Qt. Could I in theory use Nim to accelerate my development, or would it produce incomprehensible or ugly C++ code? Alternatively are there other alternatives to C++ for people who have to submit C++ code into the repository? I use other languages than C++ on a regular basis and I find it annoying to tedious the language is. So much boilerplate and repetitions.
Some years ago I had the idea to create something similar to CoffeeScript for C++: https://bixense.com/coffeepp/ Never got through to finish it though :/
Re: The Nim programming language
#87I am stuck working on a C++ code base using Qt. Could I in theory use Nim to accelerate my development, or would it produce incomprehensible or ugly C++ code? Alternatively are there other alternatives to C++ for people who have to submit C++ code into the repository? I use other languages than C++ on a regular basis and I find it annoying to tedious the language is. So much boilerplate and repetitions.
I am not sure how incomprehensible it is, but I can say that the c2nim wrapper tool is pretty darn good. Andreas (author of Nim) quickly wrapped all of Urho3d in Nim almost fully automated. So IMHO Nim is a great companion to C++ libraries.
Re: The Nim programming language
#88Earlier quoted context omitted.
I guess I just need to read up on how to actually use maven the right way. Thanks.
I wouldn't use Maven, but there are multiple tools that can use Maven repositories that aren't Maven, and I'd recommend one of those. :)
Re: The Nim programming language
#89I can see some interesting applications once we can target WASM, libraries that are client/server agnostic with clients that can join in the cloud workload comes to mind.
We already can target WASM[1] :). Nim's JS backend is already very useful though, you can see a game I've created using it in the features page. 1 - https://forum.nim-lang.org/t/2838
Re: The Nim programming language
#90Earlier quoted context omitted.
Which IDE?
A text editor[1] I wrote a while ago has a feature that allows you to compile and run any tab by pressing F5, even when that tab is not saved anywhere it will save it to /tmp and compile it for you. It's a very simple feature that I'm sure can be implemented as a plugin in any IDE/Text editor. The Nim VS Code plugin sort of supports it, but the feature could be improved. (Nowadays, I wouldn't recommend using Aporia f…
On https://nim-lang.org/faq.html under "What about editor support?", Aporia is mentioned as the first option. Should it be moved lower in the list?
Anyways I use nim-mode in emacs, and it works great!