News for hackers. Stuff that matters.
Re:J for C Programmers by bambataa on Thursday June 04, 2020 @05:23AM (#23414416)
How does q relate to K? I dabbled a little but the distinction was never clear to me.
Re:J for C Programmers by snicker7 on Thursday June 04, 2020 @09:37AM (#23416362)
The main difference is the introduction of qsql (SQL-ish statements can be treated as expressions) and some utility functions that are defined in K. QSQL is mostly for business analyst folks, and is just syntax sugar over the K-native `?` and `!` functions (which is more powerful than qsql).
Re:J for C Programmers by rscho on Thursday June 04, 2020 @05:25AM (#23414438)
Q is K syntactic sugar to make the system easier and more "traditional".
Re:J for C Programmers by icen on Thursday June 04, 2020 @05:44AM (#23414552)
q is k with all of the monadic verbs being replaced by English words: `+` is `flip`, `=` is `group`, `-` is `neg`, and so on. It also has q-sql, a SQL like sublanguage for conveniently working with tables. k has the verbs that implement it, but they're not really as convenient.