TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Y Q?

2 pointsby 5jtover 2 years ago

2 comments

nivertechover 2 years ago
<i>&gt; iteration operators</i><p>Also converge&#x2F;scan&#x2F;over.<p><a href="https:&#x2F;&#x2F;code.kx.com&#x2F;q&#x2F;ref&#x2F;accumulators&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.kx.com&#x2F;q&#x2F;ref&#x2F;accumulators&#x2F;</a><p>No mention of adverbs? One of the coolest features of the language IMO:<p><a href="https:&#x2F;&#x2F;code.kx.com&#x2F;q&#x2F;ref&#x2F;iterators&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.kx.com&#x2F;q&#x2F;ref&#x2F;iterators&#x2F;</a><p><i>&gt; Republic of operators With a rich set of primitives you don’t want to memorise another operator precedence hierarchy. So q doesn’t have one.</i><p>This creates an impedance mismatch with the conventional math notation, and may lead to some stupid errors, but I can live with it.<p><i>&gt; Prefix notation clarifies the common case where the result of one function is the argument of the next. Instead of writing sum[cos[2+first[list]]] write sum cos 2+first list.</i><p>It&#x27;s a mix of prefix and infix (not counting qSQL which is eDSL).<p>Composing expressions backwards in the REPL is a little bit annoying at first.<p>Personally, I prefer postfix and think that it&#x27;s the most natural for left-to-right input methods.
5jtover 2 years ago
What is a life? Two billion heartbeats. Perhaps four thousand books. And how many keystrokes?