Disingenious and unconvincing, like a sales pitch for a product that is actually bad for you. Yes, that kind of syntax can be wonderfully terse when doing simple arithmetic operations on lists of integers. Most programming work does not consist of doing simple arithmetic operations on lists of integers. If you want to convince me that this languagy useable for anything but toy problems specially chosen to demonstrate…
Stages of denial in encountering K
91–100 of 432 posts
Re: Stages of denial in encountering K
#92Disingenious and unconvincing, like a sales pitch for a product that is actually bad for you. Yes, that kind of syntax can be wonderfully terse when doing simple arithmetic operations on lists of integers. Most programming work does not consist of doing simple arithmetic operations on lists of integers. If you want to convince me that this languagy useable for anything but toy problems specially chosen to demonstrate…
XML parser: https://a.kx.com/a/k/examples/xml.k
Re: Stages of denial in encountering K
#93Earlier quoted context omitted.
k is perfectly readable. That's like, one of the biggest points of the post. The post mocks the mindset featured within your comment. None of the languages you listed are quite as readable as k to someone who knows it. All of the languages you listed are significantly slower and feature none of the benefits of a concise notation, even with fast.ai's Python style guide made to imitate Arthur Whitney. http://www.eecg.t…
> k is perfectly readable [...] to someone who knows it A great example of a tautology. Every language in existence passes this test... The real test is a language that is readable by those who don’t know it.
It is not just about abstraction level either: Python gives me intense discomfort.
I have not used K, but quite like the way it looks.
Re: Stages of denial in encountering K
#94Earlier quoted context omitted.
XML parser: https://a.kx.com/a/k/examples/xml.k
Ray-tracer: http://www.nsl.com/k/ray/raya.k
Re: Stages of denial in encountering K
#95Earlier quoted context omitted.
How about an OS? https://gist.github.com/chrispsn/da00835bb122c42f429a084df83...
This is what - I presume - is their implementation of sending an e-mail E:[u:();e:{a::?[a;x;y];J( x)+#y};cz:{$[#u;e/_`u;]};kx:{u,:,(j,j+#x; k_a);e[k]x};kb:{$[=/k;J j-1 0;];kx""};cx:{kx cc`};cv:{kx@9'`}] A:[w::_W%F;j:: k;k:0 0;J:{k::2#0|x&#a};lx:{J j+x};y::V+F 0,j;z::1'(V;w[1]$a)],E U:{(`Z,'!Z).'+x};V:0;i:0;I::`Z,(!Z)(#Z)!i;y:{I .`y};zf:{$[`kt= x;i+:1;^`W`F? x;I . x;. x]};u::F[0] !#Z;W:{U`V,,u,'0;U`W,,(-':1_u, x),'x 1…
Properly formatted and with comments, it almost looks readable.
The insistence to use one- or two-letter identifiers that you then have to look up the meaning of in a comment makes it look pretty childish, though. "Look ma, it's still super terse even when doing something real!" Yes kid, it is when you refuse to do the one obvious thing that could actually make it readable.
Re: Stages of denial in encountering K
#96Earlier quoted context omitted.
It really doesn't. k's ancestors were taught to high school students and admin in incredibly short spans of time. Here's an anecdote from Kenneth Iverson about a man who learned APL in two weeks, completely alone, and the results after he taught his students it: My daughter Janet attended Swarthmore High School, and recommended Rudy Amann (head of the math department) as an excellent teacher. I therefore approached h…
So then, why is K less popular than pretty much any other language? Because people are stupid? Uninformed? There's a lack of PR-minded people working with K? What exactly is your theory? It's funny that a language this flawless is slightly less popular than S or D or pretty much any other one-letter language. There must be something that makes it unappealing for the masses of programmers - what is it?
More seriously, core language quality is not the primary driver of language choice.
Otherwise we'd all be using something with S-expressions, Hindley-Milner, dependent and linear types. ducks
Re: Stages of denial in encountering K
#97Earlier quoted context omitted.
It really doesn't. k's ancestors were taught to high school students and admin in incredibly short spans of time. Here's an anecdote from Kenneth Iverson about a man who learned APL in two weeks, completely alone, and the results after he taught his students it: My daughter Janet attended Swarthmore High School, and recommended Rudy Amann (head of the math department) as an excellent teacher. I therefore approached h…
So then, why is K less popular than pretty much any other language? Because people are stupid? Uninformed? There's a lack of PR-minded people working with K? What exactly is your theory? It's funny that a language this flawless is slightly less popular than S or D or pretty much any other one-letter language. There must be something that makes it unappealing for the masses of programmers - what is it?
J is free, but J has never had an advertising budget, and was only freed recently.
APL's current leading implementation is really bad in comparison to how nice the language used to be, and just as proprietary. It was also significantly nicer to input back when APL keyboards existed and typeballs did as well.
Very few people strike gold and then have the willingness to not sell it at market-rate. Unfortunately, most people implementing APL are very aware of the rate. And it's high.
Re: Stages of denial in encountering K
#98Earlier quoted context omitted.
It really doesn't. k's ancestors were taught to high school students and admin in incredibly short spans of time. Here's an anecdote from Kenneth Iverson about a man who learned APL in two weeks, completely alone, and the results after he taught his students it: My daughter Janet attended Swarthmore High School, and recommended Rudy Amann (head of the math department) as an excellent teacher. I therefore approached h…
So then, why is K less popular than pretty much any other language? Because people are stupid? Uninformed? There's a lack of PR-minded people working with K? What exactly is your theory? It's funny that a language this flawless is slightly less popular than S or D or pretty much any other one-letter language. There must be something that makes it unappealing for the masses of programmers - what is it?
K is pretty polarizing and goes against many established “best practices” we get hammered into us every day as software devs.
Just look at the knee-jerk negative reactions on hn posts every time the APL family is mentioned.
We tried it in my team and a lot of people who were pretty productive in it still hated the experience.
Re: Stages of denial in encountering K
#99Earlier quoted context omitted.
Ray-tracer: http://www.nsl.com/k/ray/raya.k
Graphical spreadsheet application: http://www.nsl.com/papers/spreadsheet.htm
3/10, would definitely not want to use for any kind of real work.
Re: Stages of denial in encountering K
#100Disingenious and unconvincing, like a sales pitch for a product that is actually bad for you. Yes, that kind of syntax can be wonderfully terse when doing simple arithmetic operations on lists of integers. Most programming work does not consist of doing simple arithmetic operations on lists of integers. If you want to convince me that this languagy useable for anything but toy problems specially chosen to demonstrate…
XML parser: https://a.kx.com/a/k/examples/xml.k