Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6091369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:19:10+00:00 2026-05-23T12:19:10+00:00

Say, I am writting some toolset where every single tool operates on the same

  • 0

Say, I am writting some toolset where every single tool operates on the same textual data stream, parses it, does some operation on it and returns textual stream back using the same syntax as in the original input. The tools can be
combined (together with other unix tools/scripts/whatever) in a pipeline. Because the
textual input processing (parsing) is quite expensive, I would like to avoid it in case
two or more tools from the toolset are one right after another in the pipeline and use
binary streams instead (to store directly in a memory struct, w/o useless “extra” parsing). Is it
possible to know (using some trick, inter-process communication, or whatever else) if
the tool “before” or “after” any tool in a pipeline is part of the toolset? I guess the
unix env. is not prepared for such sort of “signalling” (AFAIK). Thanks for your ideas…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:19:11+00:00Added an answer on May 23, 2026 at 12:19 pm

    No, processes that are piped together have no methods of two-way communication. If the parsing is really so expensive that this is necessary (I’d guess it isn’t, but profile it), then you have a two options that I can think of:

    • Have a master program that takes options to tell it which tools to run, in which order, and then have it run a “parse” tool, followed by the requested tools (all using binary I/O), followed by an “output” tool. It wouldn’t be terribly difficult to also expose the individual tools, wrapped with the parse/output tools.
    • If users are expected to be knowledgeable enough, have each tool allow flags to tell them to expect binary input and give binary output, so that users can chain like:

      tool1 -o | tool2 -i -o | tool3 -i -o | tool4 -i
      

      where -o means give binary output and -i means accept binary input.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I'm writing some ruby code and I want to use the standard Date
This is all hypothetical, so please bear with me. Say I'm writing a tool
I'm writting a client using socket to receive EEG data from a recording PC
Lets say I'm writing a some kind of conversion operator, and I want to
I'm writing some documentation and I just can't find the right word. Let say
I am writing some tool which has to retrieve column names of the retrieved
Are there techniques for comparing the same data stored in different schemas? The situation
Let's say somebody is writing some confidential information to MySQL through textarea . Can
Lets say that i have a class with some instance variables and i want
I'm writing some code that calculates certain statistics about word usages. Does anyone know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.