News for hackers. Stuff that matters.
Re:Show HN: Pipelines – Language for scripting parrallel pip... by tedmiston on Saturday January 19, 2019 @04:20PM (#18949245)
This looks pretty interesting.

Just curious if you looked at Apache Airflow as the integration functionality and pipeline / DAG configuration approaches are similar and it's also done in Python.

https://github.com/apache/airflow

The Nim language is new to me. What was the experience like implementing a framework in it?

Re:Show HN: Pipelines – Language for scripting parrallel pip... by hultner on Saturday January 19, 2019 @06:00PM (#18949762)
Looks interesting but I don’t understand if the “x as x” is mandatory? Seems overly verbose if you don’t want to import it with another name?
Re:Show HN: Pipelines – Language for scripting parrallel pip... by StavrosK on Saturday January 19, 2019 @06:28PM (#18949898)
That is unnecessary, I don't understand why the Readme includes it. It does nothing.
Re:Show HN: Pipelines – Language for scripting parrallel pip... by otherme123 on Sunday January 20, 2019 @06:29AM (#18952537)
It's a relatively simple Nim code. It takes a line that starts with "import" and searches for three components: module, function and alias. If you don't provide an alias, you'll get an index error.
Re:Show HN: Pipelines – Language for scripting parrallel pip... by nicois on Saturday January 19, 2019 @06:17PM (#18949840)
I'm not sure I understand the wins of this over just using the standard multiprocessing module.

You can trivially define a worker pool or arbitrary size and pipe a stream of values through your function using multiple cores, avoiding GIL issues.

If you have something which scales to multiple machines just use celery or redis streams.

Re:Show HN: Pipelines – Language for scripting parrallel pip... by mistrial9 on Saturday January 19, 2019 @07:38PM (#18950201)
DASK
Re:Show HN: Pipelines – Language for scripting parrallel pip... by natch on Sunday January 20, 2019 @09:31AM (#18953192)
Nice readme! It's so common for projects to forget to include an introductory blurb, it's great to see one that does not forget.

Small bug in the example code? I think this:

    return even % 2 == 0
Should be this:

    return number % 2 == 0
Re:Show HN: Pipelines – Language for scripting parrallel pip... by m45t3r on Saturday January 19, 2019 @05:35PM (#18949658)
I didn't understand one thing: is this implemented in Nim and run Python code? If yes, why don't run Pipelines in Nim too? Wouldn't this be faster?
Re:Show HN: Pipelines – Language for scripting parrallel pip... by iamwil on Saturday January 19, 2019 @11:23PM (#18951060)
Most programmers don't write in Nim. More programmers write in Python. I assume he's targeting the Python crowd.
Re:Show HN: Pipelines – Language for scripting parrallel pip... by i_phish_cats on Saturday January 19, 2019 @09:08PM (#18950484)
wait... `/>` and `|>` are python operators?
Re:Show HN: Pipelines – Language for scripting parrallel pip... by otherme123 on Sunday January 20, 2019 @06:24AM (#18952521)
No. Those are Nim, or rather tokens that guides the Nim code to do the pipe thing.

The code splits the line in function names, args and those operators, to then orchestrate the pipeline flow.

Re:Show HN: Pipelines – Language for scripting parrallel pip... by roryrjb on Sunday January 20, 2019 @02:36AM (#18951715)
Re:Show HN: Pipelines – Language for scripting parrallel pip... by Escapado on Sunday January 20, 2019 @05:10AM (#18952281)
Should have named it Pypelines. But seriously though I am not sure what the benefits over multiprocessing are. It looks a little cryptic at first sight.
Re:Show HN: Pipelines – Language for scripting parrallel pip... by PurpleRamen on Sunday January 20, 2019 @05:34AM (#18952356)
Re:Show HN: Pipelines – Language for scripting parrallel pip... by ako on Sunday January 20, 2019 @03:35AM (#18951934)
Looks very similar to R, dplyr and pipes.
Re:Show HN: Pipelines – Language for scripting parrallel pip... by rmbeard on Monday January 21, 2019 @09:21PM (#18965514)
More like magritter I thought. just wish everytime someone comes up with something new you have to install yet another package manager.