Live data from Hacker News

Arthur Whitney releases an open-source subset of K with MIT license

shakti.com

231–234 of 234 posts

Re: Arthur Whitney releases an open-source subset of K with MIT license

#231

Earlier quoted context omitted.

I've written code with single letter variable names lots if times! But later on it most certainly does not make sense to me.

Is single letter programming like a religion and I've offended the zealots with my comment?

[deleted]

Re: Arthur Whitney releases an open-source subset of K with MIT license

#232
post #62

Earlier quoted context omitted.

Most people I know who actually learn an array language like k or j usually grow to appreciate the expressiveness and cleverness of these languages. Typically, people have your reaction who have only looked at it and tried it very briefly. I'm surprised. Why did you have to learn it? Where?

Was working at a quant pod at Millennium for a bit where they used it. I was ultimately able to use it but everything took me 20x longer than using Numpy/Pandas. The irony was that the Python code was shorter because there were so many more library functions and better abstractions and syntax. So it was slow and unintuitive for zero benefit whatsoever.

Geometric mean in Numpy vs. J:

(Copied from some forum, since I don't use Python much)

  import numpy as np

  def geo_mean_overflow(iterable):
      return

  np.exp(np.log(iterable).mean())
Or,

  from statistics import.
  geometric_mean

  geometric_mean([1.0, 0.00001, 10000000000.]) # 46.415888336127786
In J, since I don't know K:

  gm=:#%:*/

Even shorter than Python whether it's a canned lib routine or created from composing simple functions.

And I don't need to format code on HN in J because it's so short anyway, besides I don't know how!

Re: Arthur Whitney releases an open-source subset of K with MIT license

#233
post #186

He showed K @ Royal Society & bunch of apl & aplus guys were there. Someone asked , where are the comments? AW said comments get out of date with all the changes, if you can’t read the code you Shldnt be working on it. We then all looked at each other..

This immaturity is one reason I don't like array languages: They ape mathematical conventions but mathematicians are interested in communicating, if only with other mathematicians, and so write clearly and understandably. That source code (if you can call it that, as I'm not entirely convinced it's the form Whitney himself programs in) is the opposite of clear to the point of being comically dense, in every sense of…

i spent a day writing code like that. it becomes readable surprisingly quickly.

i don't think i'm going to get into the practice of doing it to that extreme, but i'll probably adopt the multiple-things-per-line part for side projects, and skip the shortening of keywords

with a wide monitor, you can have 3 files like this open at a time. you can fit a surprisingly large program on the screen at once, which is the benefit of coding like that

Re: Arthur Whitney releases an open-source subset of K with MIT license

#234
post #154

Earlier quoted context omitted.

I've been using kdb/q since 2010. Started at a big bank and have used it ever since. Kdb/q is like minimalist footwear. But you can run longer and faster with it on. There's a tipping point where you just "get it". It's a fantastic language and platform. The problem is very few people will pay 100k/month for shakti. I'm not saying people won't pay and it won't be a good business. But if you want widespread adoption y…

Can you elaborate on what mongo did right? My understanding is that AWS is stealing their business by creating a compatible api

MongoDB's biggest feat is marketing. Recovering from people comparing your database with a black hole is... something.
Post reply on HN