Comments (6)
Sorry, not yet.
from streem.
it's easy to implement with popen, i guess.
from streem.
Hey @matz! Big fan of your work!
Would the syntax for this feature look something like this?
system('ls') { in, out, err -> ... } | stdout
If so, I could try to implement it. Thanks!
from streem.
What I thought was:
spawn("ls") | stdout # can be a producer
stream | spawn("grep foo") | stdout # and also be a filter
stream | spawn("cat > /tmp/a") # and a consumer
from streem.
from streem.
I managed to implement the first use-case on my fork (and it seems to work fine so far)
spawn("ls") | stdout # can be a producer
Now I'm stuck at this one:
stream | spawn("grep foo") | stdout # and also be a filter
As far as I understand, a stream can be a producer, a consumer, or a filter, but not all at the same time. So, the first question is:
Is it possible for the spawn function to produce different kinds of streams based on their usage?
If so, is there a way to identify how the function is being used (maybe based on the stream parameter or something like that)?
Thanks!
from streem.
Related Issues (20)
- BUG: return breakthrough statements HOT 8
- task_tid function HOT 1
- tee HOT 1
- reserved identifier violation HOT 2
- Completion of error handling HOT 2
- could there be more streams? HOT 7
- This is beautiful HOT 1
- streem crashed when run: seq(10) | {x -> x * 2} | stdout HOT 9
- Crashed when run examples/06echo.strm
- No output when run examples/05skip.strm HOT 1
- Is chan() can be use? HOT 1
- Support for actor? HOT 1
- How to access named array in namespace HOT 1
- Homebrew formula for Streem HOT 2
- Undefined reference to `qsort_r' on Alpine Linux in Dockerfile HOT 5
- Are there Official Website and Docs? HOT 4
- I read your book, curious how you test if the grammar work first. ARiGaDo! HOT 3
- Useful for ideas for streem? :) HOT 1
- Intended unlock in `kvs_update`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streem.