tcl::chan::fifo(n)
π tcl::chan::fifo β the in-memory fifo channel π
okay bestie so real talk, this page lives in the Reflected/virtual channel support section of the manual, and the page itself is tcl::chan::fifo(n). Let's get into it, no cap.
β¨ NAME β¨
tcl::chan::fifo β an in-memory fifo channel, literally just vibing in your RAM π§ β¨
π SYNOPSIS π
package require Tcl 8.5 9
package require TclOO
package require tcl::chan::events ?1.1?
package require tcl::chan::fifo ?1.1?
::tcl::chan::fifo
πΈ DESCRIPTION πΈ
The tcl::chan::fifo package hands you a command that makes channels which exist purely in memory β no disk, no filesystem, just vibes π¦. Access is fifo-like, which means things get read out of the channel in the exact order they were written into it. First in, first out, the way the universe intended. π
This is equivalent to the fifo channels that the Memchan package gives you, with one iconic plot twist: this one is written in pure Tcl, not C. So cute. But bestie, be aware of the tradeoff β Memchan is usable with Tcl 8.4 and before, whereas this package needs Tcl 8.5 or higher, plus TclOO. that's the deal, take it or leave it π
Also fyi, the internal TclOO class that actually implements the channel handler is a sub-class of the tcl::chan::events framework. it's giving legacy, it's giving inheritance π
π API π
::tcl::chan::fifoβ this command creates a brand new fifo channel and hands you back its handle. that's it. that's the whole API. slay β¨
π BUGS, IDEAS, FEEDBACK π
Not to be dramatic but this document, and the package it describes, will undoubtedly contain bugs and other problems. it's giving humble, it's giving honest π«Ά Please report such in the category virtchannel of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. And please also report any ideas for enhancements you may have for either the package and/or the documentation β we want all of it, fr fr.
When proposing code changes, please provide unified diffs, i.e. the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. yes it's a whole journey but it's worth it π
π₯ KEYWORDS π₯
fifo, in-memory channel, reflected channel, tip 219, virtual channel
π CATEGORY π
Channels
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page bestie, we ate and left no crumbs π this one's from tcllib, version 1.1, and it's tcl::chan::fifo(n) β periodt, stan, go build an in-memory fifo ππ¦β¨
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- Copyright (c) 2009 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms