zero(n)

πŸ“¦ version 2.3, in fedora 43, fedora 44

zero πŸ•³οΈβœ¨

okay bestie, welcome to the zero page from the memchan manual, section n. it's giving "the void, but make it Tcl" and honestly? obsessed. πŸ’–


🌸 NAME 🌸

zero β€” create and manipulate zero channels πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

package require Tcl

package require memchan

zero

✨ DESCRIPTION ✨

so like, first things first, bestie, and I need you to hear me on this: the command described here is only available in a not-yet released version of the package. like, it's not out yet. if you want it you gotta use the CVS to get the sources. that's the vibe. periodt.

zero creates a zero channel which absorbs everything written into it. literally everything. it's the digital equivalent of screaming into the void and the void being like "k, got it, keeping that, never speaking of it again" 🫢

Reading from a zero channel will return the requested number of null bytes. so you ask for bytes, you get nulls. no notes. πŸ’€

These channels are essentially Tcl-specific variants of the zero device for unixoid operating systems (/dev/zero). iykyk.

Transferring the generated channel between interpreters is possible but does not make much sense. like you can do it, nobody's stopping you, but why 😭


πŸŽ€ OPTIONS πŸŽ€

Memory channels created by zero provide one additional option to set or query. just the one. one little icon πŸ‘‘

  • -delay ?milliseconds? β€” okay so a zero channel is always writable and readable, which is iconic of it, but it means that all fileevent-handlers will fire continuously πŸ”₯πŸ”₯πŸ”₯. to avoid starvation of other event sources, the events raised by this channel type have a configurable delay. this option is set in milliseconds and defaults to 5. so like, five. that's the number. that's the default. πŸ’…

🌈 SEE ALSO 🌈

fifo, fifo2, memchan, null, random


πŸ‘‘ KEYWORDS πŸ‘‘

channel, i/o, in-memory channel, null, zero


Copyright (c) 2004 Pat Thoyts <patthoyts@users.sourceforge.net>


and that's the whole page, bestie!! πŸ¦‹ this was Memory channels, version 2.2 β€” mwah, slay, no cap, go forth and absorb some writes into the void πŸ•³οΈπŸ’–πŸŽ€

πŸ“¦ where this page comes from