9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Why does Plan 9 use “snarf” instead of “copy”?
@ 2016-09-12 10:19 Mateusz Piotrowski
       [not found] ` <CAH+xwdCqV8fA6diS6Q4hOgMoo0daB+HLgoi_Ui=ETE+iPEDrFQ@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Mateusz Piotrowski @ 2016-09-12 10:19 UTC (permalink / raw)
  To: 9fans

Hello,

I've discovered Plan 9 recently and became curious about some 
design decisions.

Why there is a snarf buffer and not a copy buffer?

As it might seem to be a dull question, it is not. I am very
interested in the reason behind this decision. I've browsed
numerous websites (including cat-v.org and the 9fans archives)
but I wasn't able to find anything about it.

I decided to ask this question [1] on Unix & Linux StackExchange
but its community doesn't seem to know the answer.

My guess is that "copying" is not as an atomic action. 
"Copying" is in fact:

- obtaining the content you want to copy (_snarfing_)
- inserting the content where you want it to be (_pasting_)

Hence the use of snarf instead of copy.

Am I right? Is there a document / book / article where 
it is explained?

Cheers!

Mateusz Piotrowski

[1]: http://unix.stackexchange.com/questions/308943/why-does-plan-9-use-snarf-instead-of-copy


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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
       [not found]   ` <CAH+xwdA8kKRebYPNVZGHpYLBQ3tZSnVtbNZ4JsQo2cxwYS0_bA@mail.gmail.com>
@ 2016-09-12 10:38     ` Robert Raschke
  2016-09-12 10:44       ` Alexander Kapshuk
  2016-09-12 17:20       ` Skip Tavakkolian
  0 siblings, 2 replies; 8+ messages in thread
From: Robert Raschke @ 2016-09-12 10:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

Hi Mateusz,

as far as I remember, it was originally called "xerox". But that is
trademarked. No idea where the word "snarf" comes from.

Cheers,
Robby
On 12 Sep 2016 12:19, "Mateusz Piotrowski" <mpp302@gmail.com> wrote:

Hello,

I've discovered Plan 9 recently and became curious about some
design decisions.

Why there is a snarf buffer and not a copy buffer?

As it might seem to be a dull question, it is not. I am very
interested in the reason behind this decision. I've browsed
numerous websites (including cat-v.org and the 9fans archives)
but I wasn't able to find anything about it.

I decided to ask this question [1] on Unix & Linux StackExchange
but its community doesn't seem to know the answer.

My guess is that "copying" is not as an atomic action.
"Copying" is in fact:

- obtaining the content you want to copy (_snarfing_)
- inserting the content where you want it to be (_pasting_)

Hence the use of snarf instead of copy.

Am I right? Is there a document / book / article where
it is explained?

Cheers!

Mateusz Piotrowski

[1]: http://unix.stackexchange.com/questions/308943/why-does-
plan-9-use-snarf-instead-of-copy

[-- Attachment #2: Type: text/html, Size: 1851 bytes --]

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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
  2016-09-12 10:38     ` Robert Raschke
@ 2016-09-12 10:44       ` Alexander Kapshuk
  2016-09-12 12:27         ` Rob Pike
  2016-09-12 17:20       ` Skip Tavakkolian
  1 sibling, 1 reply; 8+ messages in thread
From: Alexander Kapshuk @ 2016-09-12 10:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Both 'Zerox' and 'Snarf' are there:

/sys/src/cmd/acme/cols.c:34
textinsert(t, 0, L"New Cut Paste Snarf Sort Zerox Delcol ", 38, TRUE);

On Mon, Sep 12, 2016 at 1:38 PM, Robert Raschke <rtrlists@googlemail.com> wrote:
> Hi Mateusz,
>
> as far as I remember, it was originally called "xerox". But that is
> trademarked. No idea where the word "snarf" comes from.
>
> Cheers,
> Robby
>
> On 12 Sep 2016 12:19, "Mateusz Piotrowski" <mpp302@gmail.com> wrote:
>
> Hello,
>
> I've discovered Plan 9 recently and became curious about some
> design decisions.
>
> Why there is a snarf buffer and not a copy buffer?
>
> As it might seem to be a dull question, it is not. I am very
> interested in the reason behind this decision. I've browsed
> numerous websites (including cat-v.org and the 9fans archives)
> but I wasn't able to find anything about it.
>
> I decided to ask this question [1] on Unix & Linux StackExchange
> but its community doesn't seem to know the answer.
>
> My guess is that "copying" is not as an atomic action.
> "Copying" is in fact:
>
> - obtaining the content you want to copy (_snarfing_)
> - inserting the content where you want it to be (_pasting_)
>
> Hence the use of snarf instead of copy.
>
> Am I right? Is there a document / book / article where
> it is explained?
>
> Cheers!
>
> Mateusz Piotrowski
>
> [1]:
> http://unix.stackexchange.com/questions/308943/why-does-plan-9-use-snarf-instead-of-copy



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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
  2016-09-12 10:44       ` Alexander Kapshuk
@ 2016-09-12 12:27         ` Rob Pike
  2016-09-12 12:37           ` Mateusz Piotrowski
  2016-09-13  2:57           ` Winston Kodogo
  0 siblings, 2 replies; 8+ messages in thread
From: Rob Pike @ 2016-09-12 12:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

The operation is not to copy but to snarf. It's called snarf because
snarf is what it does. There is no design document.

-rob

On Mon, Sep 12, 2016 at 8:44 PM, Alexander Kapshuk
<alexander.kapshuk@gmail.com> wrote:
> Both 'Zerox' and 'Snarf' are there:
>
> /sys/src/cmd/acme/cols.c:34
> textinsert(t, 0, L"New Cut Paste Snarf Sort Zerox Delcol ", 38, TRUE);
>
> On Mon, Sep 12, 2016 at 1:38 PM, Robert Raschke <rtrlists@googlemail.com> wrote:
>> Hi Mateusz,
>>
>> as far as I remember, it was originally called "xerox". But that is
>> trademarked. No idea where the word "snarf" comes from.
>>
>> Cheers,
>> Robby
>>
>> On 12 Sep 2016 12:19, "Mateusz Piotrowski" <mpp302@gmail.com> wrote:
>>
>> Hello,
>>
>> I've discovered Plan 9 recently and became curious about some
>> design decisions.
>>
>> Why there is a snarf buffer and not a copy buffer?
>>
>> As it might seem to be a dull question, it is not. I am very
>> interested in the reason behind this decision. I've browsed
>> numerous websites (including cat-v.org and the 9fans archives)
>> but I wasn't able to find anything about it.
>>
>> I decided to ask this question [1] on Unix & Linux StackExchange
>> but its community doesn't seem to know the answer.
>>
>> My guess is that "copying" is not as an atomic action.
>> "Copying" is in fact:
>>
>> - obtaining the content you want to copy (_snarfing_)
>> - inserting the content where you want it to be (_pasting_)
>>
>> Hence the use of snarf instead of copy.
>>
>> Am I right? Is there a document / book / article where
>> it is explained?
>>
>> Cheers!
>>
>> Mateusz Piotrowski
>>
>> [1]:
>> http://unix.stackexchange.com/questions/308943/why-does-plan-9-use-snarf-instead-of-copy
>



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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
  2016-09-12 12:27         ` Rob Pike
@ 2016-09-12 12:37           ` Mateusz Piotrowski
  2016-09-13  2:57           ` Winston Kodogo
  1 sibling, 0 replies; 8+ messages in thread
From: Mateusz Piotrowski @ 2016-09-12 12:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 12 Sep 2016, at 14:27, Rob Pike <robpike@gmail.com> wrote:

> The operation is not to copy but to snarf. It's called snarf because
> snarf is what it does. There is no design document.

Thank you, Rob!

Mateusz



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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
  2016-09-12 10:38     ` Robert Raschke
  2016-09-12 10:44       ` Alexander Kapshuk
@ 2016-09-12 17:20       ` Skip Tavakkolian
  1 sibling, 0 replies; 8+ messages in thread
From: Skip Tavakkolian @ 2016-09-12 17:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]

Zerox is very different. Try this: Zerox a pane, put the cursors of both
panes at the same spot and edit one.

On Mon, Sep 12, 2016 at 3:39 AM Robert Raschke <rtrlists@googlemail.com>
wrote:

> Hi Mateusz,
>
> as far as I remember, it was originally called "xerox". But that is
> trademarked. No idea where the word "snarf" comes from.
>
> Cheers,
> Robby
> On 12 Sep 2016 12:19, "Mateusz Piotrowski" <mpp302@gmail.com> wrote:
>
> Hello,
>
> I've discovered Plan 9 recently and became curious about some
> design decisions.
>
> Why there is a snarf buffer and not a copy buffer?
>
> As it might seem to be a dull question, it is not. I am very
> interested in the reason behind this decision. I've browsed
> numerous websites (including cat-v.org and the 9fans archives)
> but I wasn't able to find anything about it.
>
> I decided to ask this question [1] on Unix & Linux StackExchange
> but its community doesn't seem to know the answer.
>
> My guess is that "copying" is not as an atomic action.
> "Copying" is in fact:
>
> - obtaining the content you want to copy (_snarfing_)
> - inserting the content where you want it to be (_pasting_)
>
> Hence the use of snarf instead of copy.
>
> Am I right? Is there a document / book / article where
> it is explained?
>
> Cheers!
>
> Mateusz Piotrowski
>
> [1]:
> http://unix.stackexchange.com/questions/308943/why-does-plan-9-use-snarf-instead-of-copy
>
>

[-- Attachment #2: Type: text/html, Size: 2279 bytes --]

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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
  2016-09-12 12:27         ` Rob Pike
  2016-09-12 12:37           ` Mateusz Piotrowski
@ 2016-09-13  2:57           ` Winston Kodogo
  2016-09-13  4:25             ` Jules Merit
  1 sibling, 1 reply; 8+ messages in thread
From: Winston Kodogo @ 2016-09-13  2:57 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 2433 bytes --]

Channeling my inner Quine here. Did you mean:

The operation is not "copy" but "snarf". It's called "snarf" because
snarf is what it does.

Of course the White Knight would also have asked what the name of the
operation was called.

But be that as it may, a simple explanation of the difference between
"snarf" and "copy" would be welcome, especially since under Windows I can
snarf in Sam and paste into TextPad. Whereas I have to copy in Notepad and
paste into TextPad.

On 13 September 2016 at 00:27, Rob Pike <robpike@gmail.com> wrote:

> The operation is not to copy but to snarf. It's called snarf because
> snarf is what it does. There is no design document.
>
> -rob
>
> On Mon, Sep 12, 2016 at 8:44 PM, Alexander Kapshuk
> <alexander.kapshuk@gmail.com> wrote:
> > Both 'Zerox' and 'Snarf' are there:
> >
> > /sys/src/cmd/acme/cols.c:34
> > textinsert(t, 0, L"New Cut Paste Snarf Sort Zerox Delcol ", 38, TRUE);
> >
> > On Mon, Sep 12, 2016 at 1:38 PM, Robert Raschke <rtrlists@googlemail.com>
> wrote:
> >> Hi Mateusz,
> >>
> >> as far as I remember, it was originally called "xerox". But that is
> >> trademarked. No idea where the word "snarf" comes from.
> >>
> >> Cheers,
> >> Robby
> >>
> >> On 12 Sep 2016 12:19, "Mateusz Piotrowski" <mpp302@gmail.com> wrote:
> >>
> >> Hello,
> >>
> >> I've discovered Plan 9 recently and became curious about some
> >> design decisions.
> >>
> >> Why there is a snarf buffer and not a copy buffer?
> >>
> >> As it might seem to be a dull question, it is not. I am very
> >> interested in the reason behind this decision. I've browsed
> >> numerous websites (including cat-v.org and the 9fans archives)
> >> but I wasn't able to find anything about it.
> >>
> >> I decided to ask this question [1] on Unix & Linux StackExchange
> >> but its community doesn't seem to know the answer.
> >>
> >> My guess is that "copying" is not as an atomic action.
> >> "Copying" is in fact:
> >>
> >> - obtaining the content you want to copy (_snarfing_)
> >> - inserting the content where you want it to be (_pasting_)
> >>
> >> Hence the use of snarf instead of copy.
> >>
> >> Am I right? Is there a document / book / article where
> >> it is explained?
> >>
> >> Cheers!
> >>
> >> Mateusz Piotrowski
> >>
> >> [1]:
> >> http://unix.stackexchange.com/questions/308943/why-does-
> plan-9-use-snarf-instead-of-copy
> >
>
>

[-- Attachment #2: Type: text/html, Size: 3765 bytes --]

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

* Re: [9fans] Why does Plan 9 use “snarf” instead of “copy”?
  2016-09-13  2:57           ` Winston Kodogo
@ 2016-09-13  4:25             ` Jules Merit
  0 siblings, 0 replies; 8+ messages in thread
From: Jules Merit @ 2016-09-13  4:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 2802 bytes --]

The EUROcorp fork of plan9 has no snafu. Haven't figured out how to name
things for brown nosers to climb the SocLadder of troglodytes. I tried
inventing spork(), but who would want to read your e-mails.

On Sep 12, 2016 8:00 PM, "Winston Kodogo" <kodogo@gmail.com> wrote:

> Channeling my inner Quine here. Did you mean:
>
> The operation is not "copy" but "snarf". It's called "snarf" because
> snarf is what it does.
>
> Of course the White Knight would also have asked what the name of the
> operation was called.
>
> But be that as it may, a simple explanation of the difference between
> "snarf" and "copy" would be welcome, especially since under Windows I can
> snarf in Sam and paste into TextPad. Whereas I have to copy in Notepad and
> paste into TextPad.
>
> On 13 September 2016 at 00:27, Rob Pike <robpike@gmail.com> wrote:
>
>> The operation is not to copy but to snarf. It's called snarf because
>> snarf is what it does. There is no design document.
>>
>> -rob
>>
>> On Mon, Sep 12, 2016 at 8:44 PM, Alexander Kapshuk
>> <alexander.kapshuk@gmail.com> wrote:
>> > Both 'Zerox' and 'Snarf' are there:
>> >
>> > /sys/src/cmd/acme/cols.c:34
>> > textinsert(t, 0, L"New Cut Paste Snarf Sort Zerox Delcol ", 38, TRUE);
>> >
>> > On Mon, Sep 12, 2016 at 1:38 PM, Robert Raschke <
>> rtrlists@googlemail.com> wrote:
>> >> Hi Mateusz,
>> >>
>> >> as far as I remember, it was originally called "xerox". But that is
>> >> trademarked. No idea where the word "snarf" comes from.
>> >>
>> >> Cheers,
>> >> Robby
>> >>
>> >> On 12 Sep 2016 12:19, "Mateusz Piotrowski" <mpp302@gmail.com> wrote:
>> >>
>> >> Hello,
>> >>
>> >> I've discovered Plan 9 recently and became curious about some
>> >> design decisions.
>> >>
>> >> Why there is a snarf buffer and not a copy buffer?
>> >>
>> >> As it might seem to be a dull question, it is not. I am very
>> >> interested in the reason behind this decision. I've browsed
>> >> numerous websites (including cat-v.org and the 9fans archives)
>> >> but I wasn't able to find anything about it.
>> >>
>> >> I decided to ask this question [1] on Unix & Linux StackExchange
>> >> but its community doesn't seem to know the answer.
>> >>
>> >> My guess is that "copying" is not as an atomic action.
>> >> "Copying" is in fact:
>> >>
>> >> - obtaining the content you want to copy (_snarfing_)
>> >> - inserting the content where you want it to be (_pasting_)
>> >>
>> >> Hence the use of snarf instead of copy.
>> >>
>> >> Am I right? Is there a document / book / article where
>> >> it is explained?
>> >>
>> >> Cheers!
>> >>
>> >> Mateusz Piotrowski
>> >>
>> >> [1]:
>> >> http://unix.stackexchange.com/questions/308943/why-does-plan
>> -9-use-snarf-instead-of-copy
>> >
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 4320 bytes --]

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

end of thread, other threads:[~2016-09-13  4:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-12 10:19 [9fans] Why does Plan 9 use “snarf” instead of “copy”? Mateusz Piotrowski
     [not found] ` <CAH+xwdCqV8fA6diS6Q4hOgMoo0daB+HLgoi_Ui=ETE+iPEDrFQ@mail.gmail.com>
     [not found]   ` <CAH+xwdA8kKRebYPNVZGHpYLBQ3tZSnVtbNZ4JsQo2cxwYS0_bA@mail.gmail.com>
2016-09-12 10:38     ` Robert Raschke
2016-09-12 10:44       ` Alexander Kapshuk
2016-09-12 12:27         ` Rob Pike
2016-09-12 12:37           ` Mateusz Piotrowski
2016-09-13  2:57           ` Winston Kodogo
2016-09-13  4:25             ` Jules Merit
2016-09-12 17:20       ` Skip Tavakkolian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).