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.

Arthur Whitney's 'B' Language

151 pointsby chrispsnabout 6 years ago

18 comments

yiyusabout 6 years ago
I studied this code for a long time. I have lots of notes, going through everything almost line by line. I would be embarrassed of making them public because I never finished (at some point, I was just rewriting the x64 reference), but if somebody is interested I do not mind sharing.<p>I would recommend everyone doing C to have a very careful look at this. The code is full of nice tricks and you start appreciating the terse style after a while. I understand why this style is not more commonly used, but I really like it.
评论 #19496309 未加载
评论 #19496116 未加载
评论 #19509789 未加载
评论 #19497799 未加载
ptrott2017about 6 years ago
For those interested but needing a little help deciphering Thomas Lackner has a handy repo:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tlack&#x2F;b-decoded" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tlack&#x2F;b-decoded</a>
QuentinMabout 6 years ago
Q is one most important language here at BitMEX. Complicated or not, it&#x27;s on KDB that all our trades happen, up to $8B in 24H volume last summer - it&#x27;s highly efficient at its task, and never made us or any of our customers, loose a single Satoshi.
评论 #19499570 未加载
jshaqawabout 6 years ago
Whitney’s code is what I expect code to look like post-singularity when hyper intelligent AI program themselves!
评论 #19497776 未加载
steschabout 6 years ago
Doesn&#x27;t look like B. I&#x27;m a bit irritated.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;B_(programming_language)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;B_(programming_language)</a>
nemo1618about 6 years ago
Whitney is so fascinating to me. His code is simultaneously awe-inspiring and horrifying. It&#x27;s like he struck a Faustian bargain to gain programming powers beyond the ken of mere mortals, and is now cursed to write transcendently beautiful code that manifests as unintelligible gibberish to everyone else.
评论 #19499951 未加载
评论 #19496381 未加载
5166cc9c39fa61about 6 years ago
I think a good introduction to this style of coding is the first &quot;proof of concept&quot; prototype interpreter for a small subset of J, also written by Whitney:<p><a href="https:&#x2F;&#x2F;code.jsoftware.com&#x2F;wiki&#x2F;Essays&#x2F;Incunabulum" rel="nofollow">https:&#x2F;&#x2F;code.jsoftware.com&#x2F;wiki&#x2F;Essays&#x2F;Incunabulum</a><p>Once I realized it was K&amp;R C, I thought it was pretty straightforward.
评论 #19497736 未加载
评论 #19499378 未加载
rmbryanabout 6 years ago
This was helpful to me: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;K_(programming_language)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;K_(programming_language)</a>
gricardo99about 6 years ago
This is from 2015. I really wish something more from Whitney&#x2F;kparc would materialize.<p>Whitney&#x2F;kparc previously covered on HN:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;from?site=kparc.com" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;from?site=kparc.com</a>
评论 #19495905 未加载
azhenleyabout 6 years ago
Well, at least there are comments, right?
评论 #19496605 未加载
3xblahabout 6 years ago
<a href="https:&#x2F;&#x2F;gitlab.com&#x2F;k7db&#x2F;k" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;k7db&#x2F;k</a><p>Wasn&#x27;t this public?<p><a href="https:&#x2F;&#x2F;duckduckgo.com&#x2F;lite&#x2F;?q=https:&#x2F;&#x2F;gitlab.com&#x2F;k7db" rel="nofollow">https:&#x2F;&#x2F;duckduckgo.com&#x2F;lite&#x2F;?q=https:&#x2F;&#x2F;gitlab.com&#x2F;k7db</a><p>Reference: <a href="https:&#x2F;&#x2F;cs.nyu.edu&#x2F;cs&#x2F;faculty&#x2F;shasha&#x2F;papers&#x2F;tutorial" rel="nofollow">https:&#x2F;&#x2F;cs.nyu.edu&#x2F;cs&#x2F;faculty&#x2F;shasha&#x2F;papers&#x2F;tutorial</a>
评论 #19496642 未加载
评论 #19496412 未加载
egwynnabout 6 years ago
Why does the makefile need to run $(CC) under sudo?
评论 #19495792 未加载
caymanjimabout 6 years ago
This code is a horrid abomination. I don&#x27;t care if this guy is a genius and could single-handedly write the best OS in the history of computing; his code is write-only, unmaintainable garbage. There&#x27;s nothing elegant or praiseworthy about this at all.
评论 #19499154 未加载
评论 #19498664 未加载
评论 #19500219 未加载
biosedabout 6 years ago
Did he ever release K OS?<p>I seen a few bits and pieces from Geocar but never seen a release or download.
recursiveabout 6 years ago
It says same ops, but it seems some are missing? I see no modulus. Am I reading this right?
3xblahabout 6 years ago
Where is k.c?
评论 #19495107 未加载
otikikabout 6 years ago
Programming is not telling the machine what to do. That&#x27;s the easy part.<p>What programming is about, and what&#x27;s hard, is telling <i>the next programmer</i> what the machine does.<p>This makes the easy part a bit easier, and the hard part much harder, than using C. And I already disliked C to begin with, for similar reasons.
评论 #19496511 未加载
评论 #19498967 未加载
评论 #19498510 未加载
jonathanhdabout 6 years ago
Whitney follows the enlightened solution to the NL=\n|\r\n debate, just don&#x27;t end your lines ever.
评论 #19495908 未加载
评论 #19495864 未加载
评论 #19496355 未加载