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.

Unifying the Technical Interview

233 pointsby diover 4 years ago

14 comments

nathanyzover 4 years ago
This is like an entirely new genre within fantasy. I don&#x27;t even know what you would call it, but it is both entertaining and a beautiful showing of skill all at the same time.<p>Maybe you can&#x27;t even call it fantasy since it is real code &amp; logic with no magic involved.
评论 #24783141 未加载
评论 #24783067 未加载
an_d_rewover 4 years ago
&gt; The Church. The lambda calculus. The gay agenda.<p>I just about lost it with that one. Started laughing so hard I woke up my wife...<p>&gt; ... balancing a binary tree was an interview question which I personally bombed in 2010 ...<p>Thank you, Kyle. That first snippet gave me joy. That second snippet, though... that gave me _hope_.
评论 #24786660 未加载
micimizeover 4 years ago
I love aphyr&#x27;s posts so much. Aside from just being super entertaining, they have a significant degree of pedagogical value. If one sets out to fathom these incantations, they will end up studying a large swath of under-appreciated languages and theory.
erjiangover 4 years ago
It was fun to read this because I happened to study at Indiana University where most of the work on *Kanren happened.<p>If anyone is interested in practical applications, Will Byrd (mentioned in the story) went on to work with Matt Might (HN&#x27;s favorite CS-prof-turned-doctor). One of the products of that was mediKanren[0] which operates over medical research. There was some publicity around mediKanren last year.[1]<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;webyrd&#x2F;mediKanren" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webyrd&#x2F;mediKanren</a> [1] <a href="https:&#x2F;&#x2F;www.uab.edu&#x2F;news&#x2F;health&#x2F;item&#x2F;10703-diagnosis-in-2-127-seconds-solving-a-years-long-vomiting-mystery-using-ai-research-and-brain-power" rel="nofollow">https:&#x2F;&#x2F;www.uab.edu&#x2F;news&#x2F;health&#x2F;item&#x2F;10703-diagnosis-in-2-12...</a>
评论 #24785206 未加载
abeppuover 4 years ago
I&#x27;ve enjoyed all the posts in this series, but this is first time it&#x27;s I&#x27;ve &quot;empathized&quot; with some aspect of the problem solving.<p>I&#x27;ve taken a couple of stabs at writing a mini&#x2F;micro-kanren in a language which _isn&#x27;t_ a lisp, often following along closely with some paper from Hemann, Friedman and&#x2F;or Byrd -- and if the language _doesn&#x27;t_ have macros it really does get awkward. As mentioned at the PS, for a good long stretch, this post is pretty directly transcribing the &#x27;microkanren&#x27; paper, and without macros at some point Vidrun would have had to invent some of her own idioms.<p>The other trick to having the embedded kanren really work with the host language, which is swept a bit under the rug, is that `walk*` &#x2F; `walkr` in this post implicitly assumes that everything in your universe is a variable, an atomic value, or a cons. In that sense, it&#x27;s a little funny that (I think) her kanren can&#x27;t really solve &quot;inside&quot; of the structs that she asked to be provided.
评论 #24784317 未加载
lxeover 4 years ago
I wish there was an explainAphyr site or a wiki or subreddit or something where there&#x27;s a step by step explanation of both the mythology and the code involved.
评论 #24783439 未加载
评论 #24784571 未加载
quantifiedover 4 years ago
&quot; You couldn’t remember how to balance a binary tree, so you thought you’d define the transformational invariants and have Prolog solve them for you.&quot;<p>Well, yes, that&#x27;s one good reason to know Prolog.
will_byrdover 4 years ago
This is a work of high art.<p>Now make everything run backwards! :)
评论 #24787643 未加载
baqover 4 years ago
<a href="https:&#x2F;&#x2F;gist.github.com&#x2F;aphyr&#x2F;4d41e7655b10a68e753f729bdc1c5a6d" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;aphyr&#x2F;4d41e7655b10a68e753f729bdc1c5a...</a> is titled &#x27;Minikanren in Lisp in Prolog&#x27;.<p>there&#x27;s also a &#x27;Report abuse&#x27; link nearby...
评论 #24789663 未加载
TimSchumannover 4 years ago
When I grow up, I want to be Kyle.
nullsenseover 4 years ago
I like how the forest of trees collapses back into a single tree. That was neat.
shepherdjerredover 4 years ago
I&#x27;ve been waiting for another one of these!
qdot76367over 4 years ago
How is it the best butt in tech also gets to be the best writer in tech?<p>How is this even remotely fair?
评论 #24783843 未加载
UncleOxidantover 4 years ago
What did I just read? Not that I read all of it, I made it to the 1921 paragraph and slowly clicked the back arrow.
评论 #24783621 未加载
评论 #24784953 未加载