61 ms·
They have a whole language there, didn't you notice? Namely, this Q thing that the submission is about. What we're looking at here is some of its C implementat
by kazinator 9y ago
They have a whole language there, didn't you notice? Namely, this Q thing that the submission is about.
What we're looking at here is some of its C implementation internals. They are using short identifiers and the C preprocessor to help with terseness. The justification is that this is "like APL". But there is enough C cruft there that it's not really like APL. A possibility would be to generate whatever code those C macros are generating, but with some other preprocessor which polishes the notation a little bit.
Even if those analysis tools and debuggers were developed for Q, they likely wouldn't apply to this code.
- modeless 9y agoThe point is that using Q style in C is not a good way to make a C program, regardless of whether said C program is the implementation of Q or not.
- kazinator 9y agoThe point (mine, that is) is that I basically agree that it's not a good way to code in C, but perhaps the style could work better as a notation that transliterates to C.