Calling C compiler builtins -- it is fast!

2016-12-27 Thread Stefan_Salewski
Recently I read: [http://lemire.me/blog/2014/02/14/getting-good-performance-in-go-by-rewriting-parts-in-c](http://forum.nim-lang.org///lemire.me/blog/2014/02/14/getting-good-performance-in-go-by-rewriting-parts-in-c)/ So I thought it was time to try it in Nim: import random impo

Re: GTK 3.20 Nim wrapper

2016-12-27 Thread vlad1777d
again I missed a book ) Stefan_Salewski, it's good news =) I had some work several days, so I'll try to test it as soon as possible =) Thank you all =)

Re: Getting a segfault when testing my C wrapper on OS X

2016-12-27 Thread xomachine
First four cuchars of data may be looking like a regular pointer address. Have you performed a comparsion between first bytes of data(actual data, not a pointer) from the working test and bytes in this invalid pointer? It is not very likely but the data might be dereferenced somehow in the gener

Re: lib\wrappers\\pdcurses.nim(43, 10) error : cannot open windows

2016-12-27 Thread Krux02
It is hard to reproduce this error with this report. Can you say how you got this error? Nim version? Did you use aporia? If not which command line did you use to compile the program? What is your sourcecode that you compiled? And can you paste the entire output of the compiler?

lib\wrappers\\pdcurses.nim(43, 10) error : cannot open windows

2016-12-27 Thread henry75
when i begin start learn nim language , i write a cursers program, then the error present, i comment line 43 , but new error present. i not find the answer in doc page and forum ... src file content import pdcurses initscr();

Re: Chocolatey Package for Nim?

2016-12-27 Thread hcorion
Yeah, the chocolatey package is unmaintanied by a 3rd party and has been for a while. You could file to go through the process to take over the package.

Re: Getting a segfault when testing my C wrapper on OS X

2016-12-27 Thread def_pri_pub
Alright, I tried that and it does echo out a pointer address (e.g. 0xFFff08b7e). Where this is getting kind of weird for me is that I have this raytracer that I'm working on that uses stb_image.h as well and it able to load an image on OS X without throwing a seg fault. The code for the mini-wra