Live data from Hacker News

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

shakti.com

161–170 of 234 posts

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

#161

Interesting things in here. #define _(e) ({e;}) //! I didn't know that corner of C. Removing the () from the macro does change what you can pass as e, and assigning the result of a block does work as one would expect. edit: -Wpedantic on gcc will tell me ISO C doesn't like the construct but it still compiles it happily. Clang offers -Wgnu-statement-expression-from-macro-expansion So it looks likely that this is the G…

Yeah, it's a gcc extension. Details at https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Statement-Expr...

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

#162
post #60

Is there some application that demonstrates the utility of this language? E.g. it's tempting to dismiss Haskell as something invented by mathematicians more concerned with the elegance of their abstractions than actually getting things done, but Pandoc is so undeniably good and useful that you're forced to admit Haskell can be a good choice. What's the Pandoc of K?

The "killer app" of K is KDB.

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

#163
post #96
post #61

Those are some very big claims with respect to performance. Has anyone outside of the author been able to reproduce the claims, considering you need to pay 100k/month just to do it? I also wonder if the commercial version has anti-benchmark clauses like some database vendors. I've always seen claims that K is much faster than anything else out there, but I've never seen an actual independent benchmark with numbers. E…

I used to use K professionally inside a hedge fund a few years back. Aside from the terrible user experience (if your code isn’t correct you will often just get ‘error’ or ‘not implemented’ with no further detail), if the performance really was as stellar as claimed, then there wouldn’t need to be a no benchmark clause in the license. It can be fast, if your data is in the right formats, but not crazy fast. And easy…

no benchmark clause sounds like webgpu

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

#164
post #96

Earlier quoted context omitted.

I used to use K professionally inside a hedge fund a few years back. Aside from the terrible user experience (if your code isn’t correct you will often just get ‘error’ or ‘not implemented’ with no further detail), if the performance really was as stellar as claimed, then there wouldn’t need to be a no benchmark clause in the license. It can be fast, if your data is in the right formats, but not crazy fast. And easy…

Would you recommend K? Is something else better (if so what)?

J and OPFS

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

#165

For those who haven't heard of or aren't familiar with K, the Wikipedia page[1] has a remarkably helpful brief overview: > K is a proprietary array processing programming language developed by Arthur Whitney and commercialized by Kx Systems. The language serves as the foundation for kdb+, an in-memory, column-based database, and other related financial products. The language, originally developed in 1993, is a varian…

Does it support imaginary numbers or did they take them out like everyone else...

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

#167

Earlier quoted context omitted.

I've heard it said that it becomes easy to spot common patterns and structures in this style. Without knowing the idioms it's difficult to read but apparently once you know the idioms, you can scan it and understand it well.

It is for APL/k/j; you see patterns popping up in very dense code which does a lot, which does make it readable really once used to it. But most people never get to that point (or even ever look at APL of course).

imaginary numbers in programming languages is the pattern once common we need to see pop up, J and APL got them for sure

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

#168

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..

Where are the imaginary numbers?

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

#169

OMG, just yesterday I wrote a comment saying that I regret not learning K (I instead chose J) due to being too hung up on the notion of free software at the time... What a coincidence! Now I have no excuses anymore, time to learn K!

Regret why? It's nice K is finally a viable language for communication and learning.

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

#170
Some big claims, but I wonder if there are some published repeatable benchmarks

Also when someone claims 1000x better Performance I want to know why. For example MySQL or PostgreSQL -> Clickhouse I can clearly attribute to column store, compression, vectorization, parallel execution on multiple CPU cores and machines...

Post reply on HN