comp.lang.ada
 help / color / mirror / Atom feed
* Pipes-and-Filters
@ 2015-04-26 20:18 dpt
  2015-04-26 22:17 ` Pipes-and-Filters David Botton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dpt @ 2015-04-26 20:18 UTC (permalink / raw)


Hello,

I want to port a Pipes-and-Filters framework (http://architecture-group-4.googlecode.com/svn-history/trunk/PipeAndFilter/src/edu/cmu/architecture/assignment1/framework/FilterFramework.java) to Ada. 

It uses PipedInputStream and PipedOutputStream.
https://docs.oracle.com/javase/7/docs/api/java/io/PipedInputStream.html
https://docs.oracle.com/javase/7/docs/api/java/io/PipedOutputStream.html

Does something equivalent exists in Ada? I could not find anything by now.

Best Regards

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipes-and-Filters
  2015-04-26 20:18 Pipes-and-Filters dpt
@ 2015-04-26 22:17 ` David Botton
  2015-04-27  7:18 ` Pipes-and-Filters Dmitry A. Kazakov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: David Botton @ 2015-04-26 22:17 UTC (permalink / raw)


http://www.adapower.com/index.php?Command=Class&ClassID=Bindings&CID=181


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipes-and-Filters
  2015-04-26 20:18 Pipes-and-Filters dpt
  2015-04-26 22:17 ` Pipes-and-Filters David Botton
@ 2015-04-27  7:18 ` Dmitry A. Kazakov
  2015-04-29 18:05 ` Pipes-and-Filters Jacob Sparre Andersen
  2015-05-12 20:18 ` Pipes-and-Filters stephane.carrez
  3 siblings, 0 replies; 5+ messages in thread
From: Dmitry A. Kazakov @ 2015-04-27  7:18 UTC (permalink / raw)


On Sun, 26 Apr 2015 13:18:02 -0700 (PDT), dpt wrote:

> I want to port a Pipes-and-Filters framework
[...]
> Does something equivalent exists in Ada? 

Yes. It is Ada.Streams, the standard.

> I could not find anything by now.

RM 13.13

P.S. Of course, you should be specific about kind of stream implementation
you wanted. There are hundreds if not thousands of.

If you have interprocess communication in mind, streams are not a good idea
of. Stream is merely a transport, you need much meat above a stream to make
a decent communication protocol.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipes-and-Filters
  2015-04-26 20:18 Pipes-and-Filters dpt
  2015-04-26 22:17 ` Pipes-and-Filters David Botton
  2015-04-27  7:18 ` Pipes-and-Filters Dmitry A. Kazakov
@ 2015-04-29 18:05 ` Jacob Sparre Andersen
  2015-05-12 20:18 ` Pipes-and-Filters stephane.carrez
  3 siblings, 0 replies; 5+ messages in thread
From: Jacob Sparre Andersen @ 2015-04-29 18:05 UTC (permalink / raw)


dpt <dptrash@arcor.de> writes:

> I want to port a Pipes-and-Filters framework
> (http://architecture-group-4.googlecode.com/svn-history/trunk/PipeAndFilter/src/edu/cmu/architecture/assignment1/framework/FilterFramework.java)
> to Ada.

The link only appears to contain source text, not a proper specification
of the framework you want to implement.

Having browsed the source text of that specific implementation, I can't
remember having seen anything quite like it.

Greetings,

Jacob
-- 
"In case of discrepancy, you must ignore what they ask for
 and give what they need, ignore what they would like and
 tell them what they don't want to hear but need to know."
                                                 -- E.W. Dijkstra

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipes-and-Filters
  2015-04-26 20:18 Pipes-and-Filters dpt
                   ` (2 preceding siblings ...)
  2015-04-29 18:05 ` Pipes-and-Filters Jacob Sparre Andersen
@ 2015-05-12 20:18 ` stephane.carrez
  3 siblings, 0 replies; 5+ messages in thread
From: stephane.carrez @ 2015-05-12 20:18 UTC (permalink / raw)


Le dimanche 26 avril 2015 22:18:03 UTC+2, dpt a écrit :
> Hello,
> 
> I want to port a Pipes-and-Filters framework (http://architecture-group-4.googlecode.com/svn-history/trunk/PipeAndFilter/src/edu/cmu/architecture/assignment1/framework/FilterFramework.java) to Ada. 
> 
> It uses PipedInputStream and PipedOutputStream.
> https://docs.oracle.com/javase/7/docs/api/java/io/PipedInputStream.html
> https://docs.oracle.com/javase/7/docs/api/java/io/PipedOutputStream.html
> 
> Does something equivalent exists in Ada? I could not find anything by now.
> 
> Best Regards

You may have a look at Ada Utility Library and the Util.Streams framework.
The framework defines the Output_Stream and Input_Stream interfaces similar
to the Java interfaces.  The Pipe_Stream can be used in place for the
PipedInputStream or PipedOutputStream (it implements both interfaces).
The framework is not as complete as the Java stream framework but you
can still chain Input_Stream/Output_Stream instances together.

The interesting Ada packages for the stream management are these:

https://github.com/stcarrez/ada-util/blob/master/src/util-streams-pipes.ads
https://github.com/stcarrez/ada-util/blob/master/src/util-streams-buffered.ads
https://github.com/stcarrez/ada-util/blob/master/src/util-streams-sockets.ads
https://github.com/stcarrez/ada-util/blob/master/src/util-streams-texts.ads

Stephane


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-12 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-26 20:18 Pipes-and-Filters dpt
2015-04-26 22:17 ` Pipes-and-Filters David Botton
2015-04-27  7:18 ` Pipes-and-Filters Dmitry A. Kazakov
2015-04-29 18:05 ` Pipes-and-Filters Jacob Sparre Andersen
2015-05-12 20:18 ` Pipes-and-Filters stephane.carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox