Article View: gnu.misc.discuss
Article #73441Re: Patents
From: Raul Rockwell
Date: Sat, 07 Sep 1991 16:59
Date: Sat, 07 Sep 1991 16:59
34 lines
2262 bytes
2262 bytes
Ever have one of those times when you just can't seem to do anything
right? Well, not only have I been posting code in a language hardly
anybody ever uses (and which does not yet have efficient
implementations), I've been posting code which is conceptually flawed.
Just for the record, and for the one or two people who might be
programming in J, here's a workable implementation of the xor cursor
concept:
screen =. get_screen ''
put_screen screen ~: (-$screen) {. (position + $cursor) {. cursor
And, if anyone is actually reading this post I suppose I ought to
grant you the courtesy of explaining what this code is about...
The following are bit_maps: the variable 'cursor' the result of
'get_screen' (and thus, the variable 'screen') and the argument to
'put_screen'. 'position' is an x y coordinate pair. '{.' extends a
bitmap to some specific size (to the upper left, with positive left
arguments, and to the lower right with negative left arguments).
$screen gives the size of the screen bitmap (the same type of value as
'position'), and $cursor gives the size of the cursor bitmap.
And, yeah, '~:' still toggles bits, and all of this is matrix notation
stuff...
--------
I wonder... anybody for a contest to simulate violating as many
patents as possible with minimal code (e.g. one line per patent, or
whatever)?
--
Raul <rockwell@socrates.umd.edu>
Technical Details
Message-ID:
<ROCKWELL.91Sep7115906@socrates.umd.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wupost!udel!haven.umd.edu!socrates.umd.edu!socrates!rockwellReferences:
<1991Aug26.210003.29553@sq.sq.com> <1991Aug31.184217.20959@aber.ac.uk> <BURLEY.91Sep3121001@churchy.gnu.ai.mit.edu> <9260@cactus.org> <ROCKWELL.91Sep6095627@socrates.umd.edu> <ROCKWELL.91Sep6170321@socrates.umd.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,9434f7b17f215464 X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1991-09-07 09:22:08 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wupost!udel!haven.umd.edu!socrates.umd.edu!socrates!rockwell From: rockwell@socrates.umd.edu (Raul Rockwell) Newsgroups: gnu.misc.discuss Subject: Re: Patents Message-ID: <ROCKWELL.91Sep7115906@socrates.umd.edu> Date: 7 Sep 91 16:59:06 GMT References: <1991Aug26.210003.29553@sq.sq.com> <1991Aug31.184217.20959@aber.ac.uk> <BURLEY.91Sep3121001@churchy.gnu.ai.mit.edu> <9260@cactus.org> <ROCKWELL.91Sep6095627@socrates.umd.edu> <ROCKWELL.91Sep6170321@socrates.umd.edu> Sender: rockwell@socrates.umd.edu (Raul Rockwell) Organization: Traveller Lines: 34 In-Reply-To: rockwell@socrates.umd.edu's message of Fri, 6 Sep 1991 22: 03:21 GM