Nim enters top 50 programming languages list on TIOBE Index!

2021-09-15 Thread Jehan
> Wow. So it's not just an outlier. I wonder what is behind this. It may be as little as a tweak in Google's algorithm (or of any of the other search engines used by TIOBE). After all, there's just a .05% difference between 44th and 50th place; everything in that range is very close together. I

Nim enters top 50 programming languages list on TIOBE Index!

2021-09-15 Thread Taufeeqmowzer01
Same here, I wonder if any of the newer forum members could chip in on what brought on their interest in the past 2 months. If we could find out then we could possibly focus on making that aspect of Nim stronger as people find it usefull in that area

importcpp call class method

2021-09-15 Thread jyapayne
Have a look at wxNim for lots of cpp binding examples:

importcpp call class method

2021-09-15 Thread jyapayne
You need to declare Foo as a parameter on the `sayHello()` proc definition. {.emit:""" #include class Foo { public: int data; Foo() {} void sayHello(void) { std::cout << "Hello from cpp" << std::endl; } }; void sayWorks(void) { std

Setting object value by providing key as string?

2021-09-15 Thread trisub
Thanks for your feedback! In hindsight it makes perfect sense that the provided string has to be known at compile time. I think that does not pose a problem for my use case. My question came up while trying to understand metaprogramming and macros better. In my example above I'm not so much int

importcpp call class method

2021-09-15 Thread rnd83
Hi, I'm trying to figure out how to call C++ from Nim. Importing the following code seems to work - I can access 'data' and call sayWorks(), which is outside the class. But trying to call f.sayHello(), which is a class method, gives a compiler error: > type mismatch: got but expected one of: >

high precission -> f1024

2021-09-15 Thread juancarlospaco
Nice!; Minifloat AKA half-float would be nice too. :)

high precission -> f1024

2021-09-15 Thread JPLRouge
regard:

Nim for Beginners #26 Reference Objects

2021-09-15 Thread Stefan_Salewski
Maybe a few other points to your video: You say that references are useful when data are shared, you gave an example for the case where two objects both have a ref to another object. That is fine, but for beginners a larger, real world example would be nice. I think when I was a kid data sharin

Nim enters top 50 programming languages list on TIOBE Index!

2021-09-15 Thread dom96
Wow. So it's not just an outlier. I wonder what is behind this.

Nim for Beginners #26 Reference Objects

2021-09-15 Thread Stefan_Salewski
Good point, but I think the existence of a constructor is not really a contradiction to what I wrote above. Indeed I don't know if Nim has currently constructors like float() or int(). I never tried, but I am quite sure that new float and new int works. And I can remember discussions some years

Nim for Beginners #26 Reference Objects

2021-09-15 Thread xigoi
But `ref object`s do get some special treatment compared to `ref Foo` where `Foo` is an object — you get a constructor that automatically calls `new`.

Nim enters top 50 programming languages list on TIOBE Index!

2021-09-15 Thread xflywind
Again in September Position: 44 Ratings: 0.23%

Nim for Beginners #26 Reference Objects

2021-09-15 Thread Stefan_Salewski
I really don't like when people talk about "Reference Objects" in any form of documentation, as that term makes no real sense. It may be OK in IRC talk to use the terms "value object" vs "ref object" to explain the difference to beginners, but it is not nice there also. Do we talk ever about "P

high precission -> f1024

2021-09-15 Thread rforcen
i've doing some research on nim high precision resources, my goal is working with f1024 numbers, coded an almost direct c long double wrapper f128 useful for some cases: and also hpa wrapper (real+complex) for f1024 and beyond, hpa enables sett

The "reset password" routine does not seem to send me a message at my e-mail address

2021-09-15 Thread hugogranstrom
It feels like emails has been a problem for ages here on the forum. Every once in a while someone comes on Discord asking why they can't join the forum because they didn't get an email...