Re: Terminal based GINTRO(GTK) VTE

2020-05-11 Thread JPLRouge
yes, with cygwin you should get there you have to put the lib vte on line for compiled, when I worked with windows, I recovered lib with .h generally it worked for example postgresql works very well like that

Re: Detect englobing scope in macros

2020-05-11 Thread spip
Good catch! I did not even noticed that my solution was not correct. Templates are _so_ mysterious when you use them out of their sweet spot... Learning meta-programming in Nim is not easy. First, there are two ways to doing it: templates and macros. ¸The first one seems like programming with u

Re: gintro - glade event problems and multilingualism

2020-05-11 Thread Dankrad
Okay, got the multilingualism working on windows. Gettext calls on windows GetThreadLocale to retrieve locale. Therefore setlocale wont work on windows. Also gettext reads out `LANG` and `LC_ALL` environment variables (if one is set, GetThreadLocale wont be called). When running in vscode integ

Re: runnableExamples Question

2020-05-11 Thread kaushalmodi
This is now fixed in nim devel. Now I auto-generate the docs for Std::Vector Nim wrapper ( [https://github.com/kaushalmodi/std_vector](https://github.com/kaushalmodi/std_vector) ) to [https://kaushalmodi.github.io/std_vector](https://kaushalmodi.github.io/std_vector)/ .

Re: oids library import + Karax --> error

2020-05-11 Thread b3liever
Maybe you can try porting it to javascript target. It requires you use the `times` and `random` modules instead of the C imports and a workaround for `bigEndian32`.

Re: oids library import + Karax --> error

2020-05-11 Thread Araq
The oids module doesn't work for the JS backend, that's why.

Nimbus security audit RfP

2020-05-11 Thread arnetheduck
Status is developing an client in Nim for the next version of Ethereum, a distributed computing platform - we've come to the point where an initial release will be made, and we're looking for security-minded people to help harden it. [https://our.status.im/nimbus-eth2-0-security-audit-request-f

Re: Parallel nested outer for loop

2020-05-11 Thread mratsim
Nested parallel for is non-trivial, even OpenMP doesn't get it right. Nim threadpool doesn't have the tools to deal with it. You can use Weave for this, see this example matrix transposition from the README: [https://github.com/mratsim/weave#data-parallelism](https://github.com/mratsim/weave#da

Multithreading Pt 2.5: Nichecache

2020-05-11 Thread Allin
When performance is a thing, a small cache can make a big difference. Nichecache is a thread-safe generic cache with FIFO replacement policy: [https://github.com/olliNiinivaara/Nichecache](https://github.com/olliNiinivaara/Nichecache) It's a fine example of algorithm that looks bad in theory (br

Re: Terminal based GINTRO(GTK) VTE

2020-05-11 Thread Dankrad
Ah, seems that this is ported to windows. Then gintro just needs the vte bindings to get this work on windows. Sadly that there's no vte package in msys2 :s

Re: Parallel nested outer for loop

2020-05-11 Thread dataPulverizer
I have noticed that multiple CPU's were not being used, each process is spawned and seems to wait till it's finished before the next one starts so that only on CPU is being used at once. Is there something I should check about my implementation to make sure that I'm not doing something obviously

Re: Parallel nested outer for loop

2020-05-11 Thread dataPulverizer
Actually, I could just put the inner loop into its own function which should be fine.