Re: httpclient extraHeaders not working

2016-08-24 Thread dom96
@OderWat: Yes, this is already the case with the `AsyncHttpClient`. I plan to introduce a `HttpClient` also which will deprecate the current synchronous API.

Re: httpclient extraHeaders not working

2016-08-24 Thread demian
Thank you. It worked with the "cL" at the end.

Re: lapack solver

2016-08-24 Thread andrea
@smitty Well, at first I suggest that you try what is working in [linalg](https://github.com/unicredit/linear-algebra) and let me know what you don't like or what is not clear in the documentation (I know, they should be expanded and there should be a tutorial as well). :) >From there, there ar

Re: Strange GC problem ?

2016-08-24 Thread wiffel
@Araq: It was a bit bussy at work, so I didn't find the time yet to post the bug on github. But I noticed it was alread fixed :) Thanks for that. I can confirm that the fix indeed fixes the crashes I my program. Thanks again for the very fast fix.

Re: httpclient extraHeaders not working

2016-08-24 Thread OderWat
I think there need to be two of them at the end (at least if there is some body content which could even be there with GET). I also think this should be handled by the http client. And headers should be a sequence or an array instead of a "string which works if you know how".

Re: asynchttpserver and big request body

2016-08-24 Thread dom96
Please create an issue for this.

Re: httpclient extraHeaders not working

2016-08-24 Thread dom96
I think you might need to add another `division` at the end of the `headers`.

httpclient extraHeaders not working

2016-08-24 Thread demian
I'm trying to execute a simple request adding some headers but it fails with time-out. Here's my test code: import httpclient const division :string = "\c\L" const userAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Windows Chromium/51.0.

Re: lapack solver

2016-08-24 Thread smitty
@andrea sure, where to start? I'd like to see nimlibs for scipy, pandas and matplotlib (perhaps wrapping plplot). The prospect is daunting :)

Re: Basic jupyter notebook kernel

2016-08-24 Thread stisa
Hi Peter, I knew the shadow variable looked too easy! Oh well... :) ( sorry if I keep asking obvious questions, I'm not used to handling memory and the like. I'll have to read up on how memory is handled by nim, the gc, etc ) So you have compile master> master runs block1, forwards its memory/

Re: Where do I learn how to program Nim without a GC?

2016-08-24 Thread Krux02
Is there any documentation on how this should work? How would it be possible to define a memory region and then later destroy it? And will there be a mechanism to test weather a memory region as still some active references in it?

Re: Basic jupyter notebook kernel

2016-08-24 Thread andrea
Just wanted to say: the plan looks really nice! I do not see any obstruction in just transforming this into an independent interpreter, so if everything works out fine I hope it will eventually lead to a resurgence of `nim i` :)

Re: Basic jupyter notebook kernel

2016-08-24 Thread mora
Hi Silvio, My plan is the following: the python code compiles the master, the master compiles and runs block1. Here block1 is modified (we add a bunch of stuff before and after the code) before compiling. And the magic: block1 compiles block2, and runs it, etc. The `-d:release` flags do many t

Re: Basic jupyter notebook kernel

2016-08-24 Thread stisa
@mora: Sounds like a good plan! I'm still relatively new to nim, so it's probably more detailed than anything I would have thought of. A couple of questions, sorry if they are obvious / make little sense: > The python wrapper will pass the code this binary, which will compile it, and > call it

Re: Where do I learn how to program Nim without a GC?

2016-08-24 Thread Araq
The no GC future is `--gc:stack` which replaces the GC with memory regions. So any library that uses the GC really uses a memory region. The entire situation is ok. Note that the GC is always thread local anyway, so you can also just run realtime threads with other threads that use the stdlib an

Re: Strange GC problem ?

2016-08-24 Thread Araq
https://github.com/nim-lang/Nim/issues/4653

Re: lapack solver

2016-08-24 Thread andrea
For anyone interested, there is some [solver functionality](https://github.com/unicredit/linear-algebra/blob/master/tests/funcs.nim) via lapack in [linalg](http://forum.nim-lang.org///unicredit.github.io/linear-algebra/). @smitty Would you be interested in contributing? :)

Where do I learn how to program Nim without a GC?

2016-08-24 Thread Maxxi
I cant find any information. What happens if I use a nim library that uses a GC? I'll be "infected" with its problems. This entire situation seems terrible.

Re: Basic jupyter notebook kernel

2016-08-24 Thread mora
I started to play with it. My plan is to keep the python wrapper. The reason is simple: I'm comfortable with python, I don't want to support multiple threads in Nim, and I want to send a kill signal to the process if the user wants to interrupt (menu Kernel->Interrupt in Jupyter) a long running

asynchttpserver and big request body

2016-08-24 Thread vega
Request body is readed in memory at once. So, we can't receive big `POST` requests. Maybe we can introduce new type, `RequestBody`, that can be used to get body as a string/file/stream/whatever, or maybe even handle `application/x-www-form-urlencoded` or `multipart/form-data mime types`?

lapack solver

2016-08-24 Thread smitty
just sharing/archiving. fortran wrapper: ! lapdog.so ! f95 -shared -o lapdog.so types.o constants.o utils.o lapack.o linalg.o lapdog.o -llapack module lapdog use linalg, only: solve ! https://github.com/certik/fortran-utils use iso_c_binding, only: c_int, c_doub