varargs pragma - expanding a seq[cint]

2024-06-04 Thread Araq
Just write the graph data structure in Nim directly and translate the few algorithms you really need to Nim from a website with pseudo-code. Life is too short to deal with C's `igraph_vector_int_destroy` nonsense.

Please help, learning NIM to speed up Python programs, but strange results

2024-06-04 Thread epoz
Dear Nim community, I am investigating porting some of the speed critical parts of my projects to Nim from Python, for performance reasons. Doing some naive initial tests, the Nim was significantly slower, so I must be doing something wrong. Here is the Nim: import zip/gzipfiles

Cheap exceptions, opinionated error handling

2024-06-04 Thread ElegantBeef
If each error code were to be turned into a `Defect`, everything would be here to have that. Since defects should not be caught already they should not have fields this likely should have 0 issues with present code. This means `MyDefect = object of Defect` could add an 'enum' value to the `Defec

Cheap exceptions, opinionated error handling

2024-06-04 Thread morturo
This looks like the complete opposite approach used by Zig. It's limited, and I don't like that. I'd rather go with the Zig approach—an enum that grows at compile time, without the Rust problem of converting results.

varargs pragma - expanding a seq[cint]

2024-06-04 Thread demotomohiro
According to the SWIG document in PMunch's posts, when you call C function with variable length arguments, the number of arguments as well are their types and sizes must be known for C compiler. So, you cannot pass a sequence to such a C function as variable length arguments because the length o

varargs pragma - expanding a seq[cint]

2024-06-04 Thread mantielero
But I understand that what the pragma does is precisely the difficult part, doesn't it? I mean, the part that I am missing is something that converts this call: igraph_small(xxx, ..., yy, @[1,2,3,4]) Run into: igraph_small(xxx, ..., yy, 1, 2, 3, 4)

varargs pragma - expanding a seq[cint]

2024-06-04 Thread PMunch
Unfortunately C varargs and Nim varargs are quite different from each other. C varargs are basically just a pointer to somewhere in memory and it's up to the callee to handle this collection of arbitrary data (typically done by C macros which will advance the pointer depending on the type you "t

varargs pragma - expanding a seq[cint]

2024-06-04 Thread mantielero
I am starting to think that this is bug in Nim. The following works: proc example*(name:string; first: varargs[int]) = echo name echo first.len echo first example( "hola", 1, 2, 3, 4) example( "hola", @[1,2,3,4]) Run I am playing with som

choosenim: what is the development state?

2024-06-04 Thread enthus1ast
It would be interesting if we could create a overview who does what and whom to talk to (for example in the case of those urls) or for the other stuff in this community. Something like a "department leaders overview"

https://groups.google.com/a/chromium.org/g/chromium-reviews/c/hc4wBMZ_GZw

2024-06-04 Thread chitra99
Enduros Male Enhancement Canada Reviews: Satisfied clients who feel that Enduros Male Enhancement Canada has improved their performance and stamina significantly have left good evaluations and feedback. The product has garnered a lot of positive feedback from customers for its ability to increas

En ärlig recension av Nexalyn för viktminskning

2024-06-04 Thread NexalynAnm
Nexalyn: I nutidens hurtige verden står mange mænd over for udfordringer med at opretholde optimal seksuel præstation og generelt velvære. For at løse dette er et revolutionerende produkt kaldet Nexalyn dukket op som en naturlig og bekvem løsning. I denne artikel vil vi undersøge, hvad Nexalyn e

Natures Garden CBD Apteekki, toimiiko se, huijaus, hinta, kokemukset

2024-06-04 Thread naturesgarde
Nexalyn-ravintolisän tavoite? Nexalyn on nopeasti asemoitunut suosituksi kumppaniksi miehille, jotka haluavat parantaa seksuaalista suorituskykyään ja elinvoimaansa. Se ei ole enää vain rajoitettu yleisö, joka käsittelee tätä lisäystä, vaan monipuolinen yleisö, joka on tietoinen päivittäisistä

https://www.facebook.com/Belly.Balance.Australia.Official/

2024-06-04 Thread Kekegen026
Belly Balance Australia stomach prosperity data and resources open to a wide group through various stages . Belly Balance Australia Bifidobacteria are a social event of little animals that ordinarily have the human stomach. Supp