News for hackers. Stuff that matters.
Re:Learn to use Awk with hundreds of examples by feelin_googley on Wednesday October 25, 2017 @02:54PM (#15553033)
Kernighan and Van Wyk, "Timing Trials, or, the Trials of Timing: Experiments with Scripting and User-Interface Languages" (1998)

http://web.archive.org/web/20000829071436/http://inferno.bel...

AWK, Perl, Tcl, Scheme, C, Java, Limbo, Visual Basic

What if k scripting language was included in those experiments?

http://kparc.com/z/bell.k

k3:

1. "Basic Loop Test"

   \t 1000000(1+)/0
2. "Ackermann's Function Test"

   \t {:[~x;y+1;~y;_f[x-1;1];_f[x-1;_f[x;y-1]]]}[3;7]
3. "Indexed Array Test"

   \t x(x;|x:!200000)     
4. "String Test"

   \t f:{(x>#:){(i _ x),(1+i:_.5*#x)#x:,/("123";x;"456";x;"789")}/y};do[10;f[500000;"abcdef"]]
5. "Associative Array Test"

   \t {+/("0123456789abcdef"16_vs'!x)_lin$!x}40000
6. "File Copy Test"

   `f 0:(30000 _draw 300)#\:"king "       
   \t `f 0:0:`f   
7. "Word Count Test"

   \t (#:;+/(+/1<':" "=)';+/#:')@\:0:`f
8. "File Reversal Test"

   \t `f 0:|0:`f          
9. "Sum Test"

   `f 0:100000#,"-123.456" 
   \t +/0.0$0:`f
Source: http://web.archive.org/web/20010501041644/http://www.kx.com:...
Re:Learn to use Awk with hundreds of examples by kbenson on Wednesday October 25, 2017 @04:23PM (#15553839)
From what I know (which is not well sourced), the big problem with K is that it didn't have an open and accessible interpreter for a long time, and that hampered adoption. I know 5-6 years ago I was interested in it, but couldn't find any interpreters that were free for non-commercial and commercial user (it was mostly work related interest), and didn't stumble across Kona[1] at the time. Not it's on my list of languages to look into again, but that's a long list.

1: https://github.com/kevinlawler/kona