Rendering polyhedra in Nim

2024-06-05 Thread hc
Hello, I'm planning to develop a program in Nim and have been familiarizing myself with the language. I'm writing to seek guidance on an aspect that I'm struggling with. For context, I'm not an expert programmer and primarily use programming for numerical tasks (and sometimes as a hobby). I ne

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

2024-06-05 Thread treeform
I also want to point out that zippy ( ) is a pure Nim implementation of deflate, zlib, gzip and zip that is often faster then the usual zlib written in C. I think this is why the Nim implementation is beating python's C implementation.

varargs pragma - expanding a seq[cint]

2024-06-05 Thread szhorvat
If you are serious about using igraph from Nim (or another language), be aware that igraph has an interface generator which you could modify for this purpose: It wasn't advertised for general use, but it's currently being used to generate most of igraph's R

varargs pragma - expanding a seq[cint]

2024-06-05 Thread szhorvat
Oh, and (looking at your repository), it's _[igraph](https://forum.nim-lang.org/postActivity.xml#igraph), not _[iGraph](https://forum.nim-lang.org/postActivity.xml#iGraph) ;-)

choosenim: what is the development state?

2024-06-05 Thread moigagoo
I tried it and it's actually pretty cool. It feels a little abandoned though but it seems like updating it is just a matter of adding the new versions to the repo, no logic update necessary.

XSLT transformations

2024-06-05 Thread mishankov
Is there are any libraries that do XSLT transformations on XML? Took my time to find some, but didn’t find any. Maybe I’m missing something

Sum types, 2024 variant

2024-06-05 Thread crfout
Since what you're going for here isn't so much an enum as a type union, why not simply call it a union? Pro: Unambiguous and already a known concept. Con: It adds a keyword, and use of 'union' might interfere with existing set procedures. type Option[T] = union of None

Natures Garden CBD ASIAKKAAT Tarkistettu – ovatko lailliset vai ilmeisen väärennetyt väitteet?

2024-06-05 Thread nature
Sponsoroitu sisältö: Natures Garden CBD Onko sinulla vaikeuksia esiintyä makuuhuoneessa ja etsit luonnollista tapaa muuttaa seksielämääsi? On aika kokeilla, luonnollinen lisä, joka takaa maksimaalisen seksuaalisen nautinnon ja pitkäkestoisen erektion. Se lisää myös voimaasi, miehisyyttäsi, miel

choosenim: what is the development state?

2024-06-05 Thread termer
There's Disruptek's [gitnim](https://gitnim.com/) for those interested. I haven't tested it in a while, but Disrupted tends to make tools that work pretty well

Aizen Power Australia Reviews Official Site

2024-06-05 Thread Rukama026
Aizen Power Australia diminishes the combination of poisons and cholesterol-causing plaque. It in addition loses fat and some weight in men who are colossal, so the fat can be utilized as a wellspring of energy in men. It even help ca

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

2024-06-05 Thread PMunch
> `for l in lines(file)` should be slightly faster than your `while` loop. That actually made more of a difference than I would've expected! > There is no reason to assume that though since you're mostly using Python's > interface to compiled code. To expand a bit on this: Many of Pythons libra

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

2024-06-05 Thread Araq
> Was hoping that using a compiled language would make a giant difference. There is no reason to assume that though since you're mostly using Python's interface to compiled code.

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

2024-06-05 Thread Araq
> Any tips on what I am doing wrong? `for l in lines(file)` should be slightly faster than your `while` loop.

https://www.facebook.com/Aizen.Power.Australia.Official/

2024-06-05 Thread kodynofz
Chromium is however another mineral that has a part in the direction of blood sugar levels and may offer help in the metabolic process.

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

2024-06-05 Thread PMunch
Hard to tell without having `somelargefile.nt.gz` to test with. But some general ideas: * Did you compile with `-d:release`? Debug builds can be pretty slow * For benchmarking you should really use `std/monotimes` instead of `cpuTime`, but I doubt this would change much. * Not sure how opt

varargs pragma - expanding a seq[cint]

2024-06-05 Thread Araq
> I mean, the part that I am missing is something that converts this call: ... > into: ... Well the real problem here is that C does not allow for this transformation at all.

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

2024-06-05 Thread epoz
Thx for the tips, recompiling with -d:release make a big difference, it is then roughly 5 times faster. But then, the Python is still roughly 3 times faster. This is not a proper benchmark, it is a "quick wins" investigation. Was hoping that using a compiled language would make a giant differenc

varargs pragma - expanding a seq[cint]

2024-06-05 Thread PMunch
Looking at the igraph library it looks like you should simply be using `igraph_create` for this.