Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3667 > unrolled thread
| Started by | news@zzo38computer.org.invalid |
|---|---|
| First post | 2021-08-20 13:23 -0700 |
| Last post | 2021-08-20 14:25 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.postscript
PostScript - Foreign Function Interface news@zzo38computer.org.invalid - 2021-08-20 13:23 -0700
Re: PostScript - Foreign Function Interface John Reiser <vendor@BitWagon.com> - 2021-08-20 14:25 -0700
| From | news@zzo38computer.org.invalid |
|---|---|
| Date | 2021-08-20 13:23 -0700 |
| Subject | PostScript - Foreign Function Interface |
| Message-ID | <1629489787.bystand@zzo38computer.org> |
One thing lacking in PostScript is good foreign function interface. There is %pipe% (specific to Ghostscript, but I had made a list of my own ideas of a new version of PostScript, and this is one of them), but the pipe is only one direction of data at a time; it is not two way pipe. There is printobject/writeobject (reading this format can be implemented in a not too long C code, which I had posted to this newsgroup before), although it has some limitations. -- Don't laugh at the moon when it is day time in France.
[toc] | [next] | [standalone]
| From | John Reiser <vendor@BitWagon.com> |
|---|---|
| Date | 2021-08-20 14:25 -0700 |
| Message-ID | <Bb-dnaHF5PpEgL38nZ2dnUU7_8zNnZ2d@giganews.com> |
| In reply to | #3667 |
> One thing lacking in PostScript is good foreign function interface. There > is %pipe% (specific to Ghostscript, but I had made a list of my own ideas > of a new version of PostScript, and this is one of them), but the pipe is > only one direction of data at a time; it is not two way pipe. Much of the functionality of a two-way pipe can be implemented on any OS that provides named pipes. Use an anonymous %pipe% for the output from PostScript into the input of the external pipeline, and write the output of the pipeline into a named pipe that is consumed by open+read.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.postscript
csiph-web