Re: Streaming HTTP request with timeout?

2018-10-02 Thread perturbation2
I probably am getting corrupted data at the end of stream, and just not noticing because ffmpeg does a good enough job at handling bad inputs. :( I'll take a closer look (and not close `bodyStream` unnecessarily). That's good information to know about issue 8994. I'll take a look at issue 7126

Streaming HTTP request with timeout?

2018-09-30 Thread perturbation2
I'm streaming audio (Internet radio) from an HTTP(S) endpoint, and wanting to capture 30 seconds of it (it's streaming in real time, and will continue sending data for as long as the connection is open). import httpclient import asyncdispatch from portaudio as p import nil

Re: Hacktoberfest project contributions?

2017-10-04 Thread perturbation2
Thanks guys! I'll take a look at those issues this weekend and let you know if I have questions.

Re: OpenMP and Nim

2017-10-02 Thread perturbation2
I know that @mratsim was able to get it working in [ArrayMancer](https://github.com/mratsim/Arraymancer/) (i.e., see [openmp.nim](https://github.com/mratsim/Arraymancer/blob/dd443279f4dd759d450728c2d84dc700bd9b0c7e/src/arraymancer/backend/openmp.nim)) for some examples, but I'm not sure how

Hacktoberfest project contributions?

2017-10-02 Thread perturbation2
Are there any packages / issues that would be good candidates for [Hacktoberfest](https://hacktoberfest.digitalocean.com/)? That is, issues that are pretty self-contained or good introductions to the package? I have my eye on [NimData](https://github.com/bluenote10/NimData/),

Re: Linear algebra library - help wanted

2017-06-18 Thread perturbation2
Oh nice! I don't think I understood that you were able to expand the rewriting rule for (x += a * y) to avoid allocations for that case. I'll definitely check out more writing more rewriting rules (i.e., x += y/a should get rewritten as well).

Re: Linear algebra library - help wanted

2017-06-16 Thread perturbation2
I've looked at neo a little bit and it looks really promising. I'm glad for all the work you've done with linalg- I think Nim can be a really good language for numerical computing and data science, and having a good linear algebra library will go a long way towards making that happen. I'm

Re: Linear algebra library

2017-06-09 Thread perturbation2
One thing that I would argue for with any new linear algebra library is some sort of 'out' parameter, like [numpy](https://docs.scipy.org/doc/numpy/reference/ufuncs.html#optional-keyword-arguments) has for its operations that produce a vector. In an inner loop of a project using linalg, I had

Re: book delayed again

2017-04-19 Thread perturbation2
I'm still really excited about the book! The chapters I've read through the EAP have been very good (and helped with parallelizing a numerical program that I've been working on).

Re: Mascot

2017-03-17 Thread perturbation2
I actually like him, but I think a little friendlier-looking would not be amiss. That badger looks like he wants to devour me if I don't get my bounds checking right.

Re: Designing a data frame API

2017-02-12 Thread perturbation2
I think that issue #1 is a bug if [https://github.com/nim-lang/Nim/blob/devel/tests/method/tgeneric_methods.nim](https://github.com/nim-lang/Nim/blob/devel/tests/method/tgeneric_methods.nim) is intended to continue to work.

Re: Trouble with reading from stdin

2017-02-11 Thread perturbation2
I think you're right - this is not a bug with Nim, but something to do with the buffer size for STDIN. You could try wrapping setvbuf and setting options on STDIN buffer size that way? maybe? I get the same behavior with the Python script from sys import stdin, stdout

Re: Trouble with reading from stdin

2017-02-10 Thread perturbation2
I think it's running into a problem when the line length is greater than BufSize - in your example above, the equation is a little > 4000 chars long, and [readAllBuffer](https://github.com/nim-lang/Nim/blob/master/lib/system/sysio.nim#L171) is ultimately what's called. I don't see obvious

Re: Nim Wrapper for ArrayFire

2016-12-30 Thread perturbation2
I'm really excited to see this! I'm using Nim for data science and I would love more wrappers and libraries :) There's also: [https://github.com/stavenko/nim-glm](https://github.com/stavenko/nim-glm) [https://github.com/unicredit/linear-algebra](https://github.com/unicredit/linear-algebra) if

Re: InfluxDB-to-MySQL Protocol Converter

2016-12-04 Thread perturbation2
@pwernersbach - That's a really cool project, and I'm glad that you shared it! I love that you use the 'not nil' annotations for your argument types and type definitions, and I've enjoyed reading through it, even though I'm not currently using InfluxDB. I hope you don't mind a few questions,

Re: naive implemnatation of KNN

2016-08-22 Thread perturbation2
> If you would have a good math library with vectors like those from e.g. > Matlab or Eigen (c++) then you could use vector arithmetic and wouldn't even > need to write a single loop. I would recommend the [linalg](https://github.com/unicredit/linear-algebra) library for that. It supports

Re: Vindinium game starter kit

2016-07-11 Thread perturbation2
I created a branch with my changes and did a PR: [https://github.com/akamaus/vindinium-nim-starter-kit/pull/1](https://github.com/akamaus/vindinium-nim-starter-kit/pull/1) Feel free to ignore or close that (accidentally made it against your master branch rather than the 'buggy' branch). I just

Re: Vindinium game starter kit

2016-07-03 Thread perturbation2
Got working as concepts :) : Just had to change the concept definition to use a variable rather than typedef for Map type Bot* = concept b var m: Map decide(b, m) is Dir b.name is string b.key is string type StatelessBot* = object name*: