Re: get the most local symbol from `bindSym`

2016-08-18 Thread jlp765
tests// and the test file should start with the letter "t", eg tests/macros/tbindsym2.nim

Re: Cannot load shared library when using -d:release?

2016-08-18 Thread mbaulch
Originally compiled my own libRmath-nim.so but tried using the nimble-pkg provided copy instead (via LD_LIBRARY_PATH). Still same result. My C compilers are slightly older. Clang 3.6, GCC 4.8.4. I'd be surprised if that made a difference. I'm assuming, @andrea, that gibbs succeeds for you with -

Re: Nim in Action is now available!

2016-08-18 Thread dom96
Nim in Action is 50% off until the 25th of August using code `pbbutcherlt`: [https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81](https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81) Perfect opportunity to grab it if you haven't already. It's almost finis

Re: get the most local symbol from `bindSym`

2016-08-18 Thread jxy
How do you write a test case for macros or compile time proc? Where should I add it?

Re: Cannot load shared library when using -d:release?

2016-08-18 Thread andrea
sir.nim fails for me in release mode. I have Ubuntu 16.04 with Nim devel updated right now and GCC 5.4.0. The example compiles just fine (`nim c -d:release sir.nim`), but trying to run it (`./sir`) results in `could not load: libRmath-nim.so`. The same happens with `nim c -r -d:release sir.nim`,

Re: What are concepts?

2016-08-18 Thread god
Oh I got it - the twoForOne procs are only working on a copy (not ref) of Foo. Sorry :)

Re: What are concepts?

2016-08-18 Thread god
Yeah, sorry, just spotted that..

Re: What are concepts?

2016-08-18 Thread OderWat
If .. but `twoForOneBackConcept()` and `twoForOneBackGeneric()` do not get a var parameter.

Re: What are concepts?

2016-08-18 Thread god
This may be a silly question, but in the OderWat example above, on the two proc calls for type Foo (x), should x.v be updated in outer scope? i.e First echo shows (v: 5, s: Test), second echo shows (v: 5, s: Test) - on my system. Should the second call not then echo (v: 6, s: Test) considering x

Re: Help with asynchronously downloading file

2016-08-18 Thread dom96
Sorry. Not AsyncHttpServer, I meant AsyncHttpClient :)

Re: DEB & RPM packages

2016-08-18 Thread euant
@abbat Nice. I might look into doing some automated builds as having repositories would be pretty useful for me.

Re: Help with asynchronously downloading file

2016-08-18 Thread hcorion
Thanks dom96, when I try to download using httpclient.download file I get Error: 'threadFunc' is not GC-safe as it accesses 'defaultSSLContext' which is a global using GC'ed memory I've never used threads before, so my scripting may be wrong, here is my attempt at it:

Re: Cannot load shared library when using -d:release?

2016-08-18 Thread mbaulch
Have just built _distributions_ and libRmath-nim. sir.nim and gibbs.nim both compile (and run) successfully for me in both release and debug modes, for Nim 0.14.2 and Nim devel. I'm on Linux x86_64. Have tried both GCC and Clang. What configuration is causing the issue?