how to importcpp a C++ class within namespaces in non-sloppy way

2023-06-22 Thread Araq
No, C++ interop is always done through headers.

how to importcpp a C++ class within namespaces in non-sloppy way

2023-06-22 Thread giaco
header.hpp namespace outer { namespace inner { class MyClass { public: short attr1; }; } } Run This works: type MyClass {.header: "myheader.hpp", importcpp: "outer::inner

Does Nim has the same features that D has when interfacing to Objective-C?

2023-06-22 Thread przemyslawo
Hi everybody. First I have to say that I don't want to talk about D often, it is only now and I won't talk about it anymore, I'm just seeking for a language with good interfacing features when dealing with external C/C++/Objective-C code. Here is D features when interfacing with Objective-C: <

Does Nim has support for C++ templates with its C++ interfacing?

2023-06-22 Thread przemyslawo
Very interesting that project, of course I will take a serious look.

A good word for idiomatic nim?

2023-06-22 Thread przemyslawo
Araqy

Does Nim has support for C++ templates with its C++ interfacing?

2023-06-22 Thread przemyslawo
Short answer, big smile. =)

Building 1.6 on RHEL 7 on POWER (pp64le)?

2023-06-22 Thread cheekm
That did it. I copied over the ./build subdir to the ppc64le box and ran the build.sh that had been created inside ./build. $ nim --version Nim Compiler Version 1.6.12 [Linux: powerpc64el] Compiled at 2023-06-22 Copyright (c) 2006-2023 by Andreas Rumpf active boot switches: -d:release Thank yo

The Algorithms In Nim

2023-06-22 Thread dlesnoff
> By the way, it should be possible to ask ChatGPT to convert algo in lang X to > Nim I could also write a script downloading and converting all the algorithms. I should do the same to write my PhD thesis and change my job to [one that is manual](https://www.ndtv.com/world-news/is-your-job-safe

nim merch

2023-06-22 Thread Araq
Good point. We need an "ask me about Nim" button,

nim merch

2023-06-22 Thread dwhall256
> Just buy my book. ;-) Already did. But your book sits on my shelf at home and doesn't make fellow software engineers wonder, "What is nim?" like a magnet or sticker would when they wander past my office.

Does Nim has support for C++ templates with its C++ interfacing?

2023-06-22 Thread jmgomez
if you are curious about how good the interop is, checkout . Look for `importcpp` . It's probably the biggest C++ project written in Nim ;) It has things like built in multiple inheritance, dll hot reloading (including virtual functions, so vtable updates b

nim merch

2023-06-22 Thread void09
I agree that we should have more or less nerdy nim t-shirts, caps etc. officially. So people of the nim almost secret by obscurity society can recognize each other. Would certainly be more useful stuff to buy than Araq's book.

nim merch

2023-06-22 Thread Araq
Just buy my book. ;-)

Does Nim has support for C++ templates with its C++ interfacing?

2023-06-22 Thread demotomohiro
* [How to interfacing C++ code in Nim](https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-importcpp-pragma) * [Nim bindings for the C++ STL](https://github.com/Clonkk/nim-cppstl)

A good word for idiomatic nim?

2023-06-22 Thread didlybom
Idiomatic nim code should be "minimal code". "nimble code" would have been nice too if it weren't for nimble already being a thing.