Chocolatey Package for Nim?

2016-12-24 Thread Tristano
I've Nim 0.15.2 announcement I've read that: > For Windows we now provide zipfiles in addition to the NSIS based installer > which proves to be hard to maintain and after all these months still has > serious issues. So we encourage you download the .zip file instead of the > .exe file! and in

Re: Nim in Action is now available!

2016-12-24 Thread Tristano
Hi @dom96, I bought _Nim In Action_ a few monthes ago (it was still MEAP v.8), a few days after install Nim. I didn't yet find the needed time to study it inside out — too many project to finish to dedicate myself full time to Nim — but from a first reading I have to say that the book is

Re: Help With Nim Static Libs on Windows

2016-12-24 Thread Tristano
Thanks Araq. In the end I guessed it was related to stdin/out because I grepped "fileno" into GCC's header files and it came up in the context of filesystem related constants. Mhhh ... so I might be getting away with a simple Fibonacci function, but get a crash with more complex stuff! I've

Re: Please , can we stop spams?

2016-12-24 Thread federico3
I've seen flagging working well for other forums. When a comment is flagged as spam by N users a moderator will be able to remove the comment and block the account that posted it. If regular users abuse the spam flag the moderator can block their account instead. N=1 is probably enough to start

Re: GTK 3.20 Nim wrapper

2016-12-24 Thread Stefan_Salewski
> I'm confused in all that pointer-reference-object_itself stuff I have already downloaded the source code of librsvg-2.40.16. Seems to be really a tiny lib, and the c headers contains not many strange macros, so building the wrapper should be easy. (There are bitfields used, but fortunately

Re: Help With Nim Static Libs on Windows

2016-12-24 Thread Araq
Pelles C is not supported by Nim and it seems to lack `fileno` which Nim's stdlib depends on, might be called `_fileno` in Pelles C. I'm not sure what `/EXPORT:fileno` does so if you get random crashes, don't complain. :) I would stick to DLLs for interop with PureBasic.

Re: Help With Nim Static Libs on Windows

2016-12-24 Thread Tristano
SOLVEEED! I've solved it by telling PureBASIC compiler to pass this option to polink: /EXPORT:fileno I haven't yet understood what was going on. But I do understand that his option exports the "fileno" symbol, which was the only one left in the error reports. Can anyone help

Re: Help With Nim Static Libs on Windows

2016-12-24 Thread Tristano
Hi @Krux02, No, I didnt. PureBASIC only uses "polink" and "porc" and "polib" from the Pelles C -- and they seem to be from different version releases also. PureBASIC has its own compiler + a FASM compiler. Unfortunately the documentation doesn't provide much help (actually: none) when it comes

Re: Please , can we stop spams?

2016-12-24 Thread Krux02
I think moderator approval of first posts by users is the best solution so far. Not too much work for moderators, and no change for anybody who is already on the board, except no new spam anymore. Flagging is not the best idea. I think currently it means that all active users have to flag

Re: Help With Nim Static Libs on Windows

2016-12-24 Thread Krux02
Ok, I have never used Pelles C nor PureBasic (I did some BlitzBASIC 10 years ago if that counts). So my answer is just guessing around. Since PureBasic seems to be integrated with the pelles C compiler, did you try to also compile the nim intermediate code with that compiler to a static

Help With Nim Static Libs on Windows

2016-12-24 Thread Tristano
Hi everybody, this is my first post here — nice to be onboard! I've been experimenting with Nim and I really enjoy it. I'm working under Win 10 x64. I don't use MinGw compiler suggerst by Nim installer, I instead use TDM-GCC, which is working very well. I've tried to create libraries with Nim