TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Searching for Functions via Type Signatures

4 点作者 theSage超过 5 年前
I just came across an old paper discussing searching for functions via type signatures. How prevalent is this kind of search perhaps in code search systems? Does anyone else know more about this kind of work?<p><pre><code> - https:&#x2F;&#x2F;github.com&#x2F;theSage21&#x2F;sigsearch - https:&#x2F;&#x2F;www.cs.cmu.edu&#x2F;~wing&#x2F;publications&#x2F;ZaremskiWing93.pdf</code></pre>

1 comment

EvilTerran超过 5 年前
There&#x27;s Hoogle, for Haskell: <a href="https:&#x2F;&#x2F;hoogle.haskell.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hoogle.haskell.org&#x2F;</a><p>I don&#x27;t know if it implements any techniques from that paper, but it does let you search for definitions by type signature. Of note, it also does a pretty good job of finding results with different-but-compatible types, which is very valuable in a Haskell context given all the polymorphism.