News for hackers. Stuff that matters.
Re:K7 Tutorial by manjana on Monday April 15, 2019 @02:44PM (#19667742)
What's the benefit using k vs. c, cpp or java for the same? Does it run or compile faster?

The article says you can do the same with cpp and some extra libraries, but I wouldn't immediately think cpp or java was easily beatable -- manjana wonders --

Re:K7 Tutorial by avhon1 on Monday April 15, 2019 @05:34PM (#19669129)
K is interpreted, not compiled. You can run your code the instant it's written.

As other's have said, K (the language and the interpreter) is highly optimized for processing tabular data. I've heard of it outperforming C in processing billions of rows of financial data. (Which, by my understanding, is K's primary market.)

Lastly, K (like APL, J, A+, Klong, Kona, etc.) is very terse. A phrase I've seen online is "one line of K is roughly equivalent to 100 lines of C". K programs, like APL & co., very often fit entirely into a screenful of text, but require close and complete reading to understand. There are lots of videos on youtube of people writing literate sudoku solvers or conway's game of life in a dozen lines or so, and terse solutions in a dozen or so characters.

People who like these programming languages tend to like their terseness -- they can view the entire program all at once (no scrolling or searching), and refactor or rewrite the program in a few seconds of minutes of typing.

Re:K7 Tutorial by arrayThrowaway on Monday April 15, 2019 @11:28PM (#19670901)
If you would prefer to use keywords instead of symbols, Nial is a good option: https://github.com/danlm/QNial7
Re:K7 Tutorial by 4thaccount on Monday April 15, 2019 @03:06PM (#19667972)
If I understand you correctly, why use K over another language like Java? Java is a good enterprise language, but K is a good analysis language. It is very terse and powerful. Look up Kdb+.
Re:K7 Tutorial by ksherlock on Monday April 15, 2019 @04:54PM (#19668835)
It depends on what you're doing. If you wanted to analyze some tabular data, k, sql, or even excel are probably more appropriate than c++ or java.
Re:K7 Tutorial by ah- on Monday April 15, 2019 @03:36PM (#19668198)
If your problem fits it you can solve it with a fraction of code. It also runs extremely fast and apart from licencing it's trivial to deploy.