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.

What is a primitive?

30 pointsby chrispsnalmost 4 years ago

4 comments

mlochbaumalmost 4 years ago
Author here if you have any questions. The main reason to write this document is people used to APL wondering why BQN leaves out certain primitives (answer: I don&#x27;t think they&#x27;re really primitives), but probably more HNers would wonder why it has so many that ASCII isn&#x27;t even fit to keep them all (the full list is at <a href="https:&#x2F;&#x2F;mlochbaum.github.io&#x2F;BQN&#x2F;doc&#x2F;primitive.html" rel="nofollow">https:&#x2F;&#x2F;mlochbaum.github.io&#x2F;BQN&#x2F;doc&#x2F;primitive.html</a>). Just as well; hopefully I&#x27;ve addressed both concerns!
评论 #28082218 未加载
评论 #28081914 未加载
moonchildalmost 4 years ago
Along vaguely related lines is <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;chrispsn&#x2F;b1020918a83a28ab8b4442d8aff8d1b4" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;chrispsn&#x2F;b1020918a83a28ab8b4442d8aff...</a>
评论 #28081804 未加载
armchairhackeralmost 4 years ago
When I write programming languages, I usually define primitives as &quot;any value without children&quot;. Strings, numbers, booleans, are primitives. Collections and records are not.<p>Some edge cases: literal ranges would be primitives, because their ast is represented (in Haskell) as &quot;Range Int Int&quot;. Ranges which take values wouldn&#x27;t be primitives, because their ast is represented as &quot;Range expr expr&quot;
评论 #28081688 未加载
评论 #28081815 未加载
smitty1ealmost 4 years ago
Is BQN a near-incrementing of the letters in APL?<p>Is it pronounced &quot;bacon&quot;?
评论 #28085612 未加载