News for hackers. Stuff that matters.
Re:K Language (2011) by kick on Thursday March 12, 2020 @08:10PM (#22563421)
Not sure I actually understand why K is pushed here almost daily.

Most programmers find k interesting. k is fast. k is small. k & APL are great as a tool of thought. It has a "lost art" feel. It's an intellectually satisfying endeavor.

Do many people here deal with array computation?

Like three Dyalog employees occasionally contribute to discussion, fintech employees make up like 10% of the people regularly writing comments on the site, and array programming is incredibly popular when in disguise and made less efficient as Python (numpy), pretty much essential for multiple subfields of computer science, so forth.

K is also supposedly fast—not once have I seen an explanation of what makes it fast

People talk about it all the time here, though. 'geocar mentions why in almost every thread, and he should know: he helped write an operating system in the language.

and why those techniques aren't looted for open-source languages.

Because they don't want to believe it to be true! When told you're messing up something simple, you have to question your assumptions a bit. People hate doing this, especially when they've invested time in seeing them through.

Is K in fact a thin layer on top of assembler (specifically SIMD and other extensions), for number crunching in the vein of shaders/CUDA?

k is higher-level than C, Haskell, Rust, etc.

Re:K Language (2011) by amiga_500 on Thursday March 12, 2020 @08:49PM (#22563658)
As a long time programmer, q is the only language I can hack at, look up 10 minutes later and 2 hours have gone.

Frustrating. Obtuse. Overall: fun.

Re:K Language (2011) by aparashk on Thursday March 12, 2020 @08:14PM (#22563444)
There are open source implementations of Kx, e.g.

https://github.com/kevinlawler/kona

I do not know how good/performant they are.

Re:K Language (2011) by kick on Thursday March 12, 2020 @09:07PM (#22563779)
I think everyone in this thread probably knows about kona. It's neat, but it's also trying to be an implementation for a very old version of k.

Here's a list of a few different k implementations. Most aren't aiming for performance.

https://ngn.bitbucket.io/k.html