5 ms·
Here is a text editer written in k \l view.k /key(return back ^delete) kx:kr:{u,:,(j,j+#x;*k_a);e[k]x};kb:{$[=/k;J j-1 0;];kx""};cd:{J j+!2;kx""}
by traverseda 7y ago
Here is a text editer written in k
\l view.k
/key(return back ^delete)
kx:kr:{u,:,(j,j+#x;*k_a);e[k]x};kb:{$[=/k;J j-1 0;];kx""};cd:{J j+!2;kx""}
/edit(undo cut paste)
e:{a::?[a;x;y];J(*x)+#y};cz:{$[#u;e/_`u;]};cx:{kx cc`};cv:{kx@9'`}
/save
cs:{n::$[#n;n;0'""]1:a;r::a}
http://kparc.com/$/ http://kparc.com/$/
It's not something I find appealing, personally. Then again I am a python guy, which is about as far from this as you can get.
- RodgerTheGreat 7y agoWhat, precisely, do you find unappealing? Is it unappealing to have to write so little code to accomplish the task? Is it aesthetically unappealing to you? How much of that comes from it looking unfamiliar? If you spent a few days working with code like this, would it seem less strange? A month?
- jodrellblank 7y agoAnd here's one written in (Dyalog) APL: https://github.com/arcfide/ALE https://github.com/arcfide/ALE
- guidoism 7y agoI'm a python guy myself and I love the APL languages. In my mind I put python and APL in the same category of: I spend more of my time thinking about what to write and less time actually banging out text in the editor.
- all2 7y agohttp://kparc.com/lisp.txt http://kparc.com/lisp.txt Is he saying k is a lisp? I'm sure there are important differences here, but I don't know enough to say what they are. (There is a question implied there.)
- Volt 7y agoIt's a comparison to Lisp.