On Sat, 11 Aug 2001 11:24:36 +0800, :
> Thanks. I have just started on K.CoSy and I don't think I have got the hang
> of it yet. It is certainly very different from the J IDE but let me try it a
> little longer before giving my overall impressions.
The real heart is that if you tap `f6 when in `text , CoSy executes
the line you are on in K and assigns any result to `r .
Everything else has just been built by writing and `f6ing and
and rewriting and ref6ing lines til they do what I think I want .
On Sat, 11 Aug 2001 22:40:16 +0800, :
>Bob
>
>Thanks for the one-line tutorial.
>
>Just wrote out and tested successfully my first K function:
> f: {[a;b;c];:[a>0;b+c;a<0;b-c;b*c]} in K.CoSy.
>Much better than doing it in the K console.
>I presume that multi-line functions , etc, are equally easy. I
>will try.
>
>Best wishes
Great . Now you can work down thru those examples in `text .
You will find a simple example of editing a multi-line fn just
by formatting and displaying it in `.r and editing it there .
.r : VM @ $ f / Display the function `save in `r . edit it .
f : . MV .r / after editing , redefine .
On Sat, 11 Aug 2001 16:35:33 -0400, Bob Armstrong wrote:
Oops :
> .r : VM @ $ f / Display the function `save in `r . edit it .
> f : . MV .r / after editing , redefine .
^
Woops , I generalized `MV to work with delimiters other than
newline "\n" .
Needs to be
f : . MV[ "\n" ] .r / after editing , redefine .
or
f : . MVn .r / after editing , redefine .
--
On Sat, 11 Aug 2001 07:34:05 +0200, :
>Hi..
>I'm having another go at reading the K documentation since bringing up
>CoSy.
>So well done, CoSy has stimulated me into trying to learn K ... even
>though I'm quiet at the moment.
Yea , best to have the PDF K Reference Manual available to decipher
the sentences making up CoSy .
>Some points/thoughts
>1)
>On my PC (windows 95), the user CoSy interface looks okay, but behaves
>poorly.
>When I type on a line in the display, the cursor becomes an unreliable
>indicator of my insertion point - very disconcerting and tiresome.
If you look at the boot script , /CoSy/kboot.k ( execute :
0: "/CoSy/kboot.k" / )
You see the \m settings of the font . You can try to improve on
my settings .
( The example of reading and editing the boot script is in the initial
.CoSy.text , but I see it says "/CoSy/kboot.txt" instead of
"/CoSy/kboot.k" . It will be fixed in the next release , mid September . )
When you have entered a line for editing , the cursor does become a nearly
unnoticeable skinny vertical line . Often to find it , I up-arrow or
down-arrow to highlight a neighboring line to find where I was .
Arthur has said that he has not worked on the GUI since `95 . Perhaps
with more use , there will be motivation to revisit this aspect of K .
>2)
>Is it possible that a version of the original CoSy.csd file could be put
>into a simple text format. It would be useful to read it - If I open it
>now in Wordpad, I cant read it.
CoSy.csd is a K data file , not even close to text .
In the examples in `text , is :
.r : ( Q ; ( ~ Q ) @\: `h ; .:' Q : sort fns _d ) / fns w help if any .
which will display a table of all the functions with help and definitions .
You can hit Alt PrintScreen to capture it as an image .
I need to make a simple table to text converter so such things can be
output to -.txt files easily .
>3)
>Are there some K scripts that can be read? Scripts containing functions
>and scripts containing applications.?
Start by executing , `f6ing , each of the example lines in the `text
window .
I've just added the following as the first example to execute
1 - 2 / Tap the f6 key to execute this line . note what happened
/ to `l and `r .
/ Tap f5 . See it inserts r in the text .
If you mean by applications things like ledgers an mail-lists , basic
templates or prototypes are included as objects in .CoSy .
No script has ever existed to create them . See down toward
the end of the examples . Generally you can just f6 the names
of any items to see their innards .
>Regards
Thanks for the great feedback . It is only with it that I can know
the edges which most need sanding and polishing .
--
Note , I didn't mention in my previous list of uses , the
preprocessing of my HTML . If you look at the source of a
page , you will see the construction
<!-- /)/ htmlxeq @ 0: "/cosy/webhead.htm" />/ -->
..
<!-- /(/ -->
which recursively generates the three part header for the page .
-- Bob Armstrong --
http://CoSy.com -- 212-285-1864
Charter subscriptions now available :
K.CoSy eXtreme Computing Environment
-- Bob Armstrong --
http://CoSy.com -- 212-285-1864
Charter subscriptions now available :
K.CoSy eXtreme Computing Environment