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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Aroma: Using machine learning for code recommendation

254 点作者 moneil971大约 6 年前

20 条评论

markphip大约 6 年前
If people are interested in this area and not already aware, there has been an Eclipse project that operates in this general area for a while. <a href="https:&#x2F;&#x2F;www.eclipse.org&#x2F;recommenders&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.eclipse.org&#x2F;recommenders&#x2F;</a>
评论 #19608961 未加载
spott大约 6 年前
I want something like this for math. Write an equation, or a definition and see a bunch of different &#x27;versions&#x27; of that snippet and where they are being used.<p>This would help so much with understanding concepts and merging fields. It is way too common for different fields to independently &quot;discover&quot; some concept and be completely ignorant of all the work that has been done on that concept by some other field.
评论 #19613988 未加载
评论 #19608889 未加载
评论 #19610224 未加载
评论 #19612163 未加载
userbinator大约 6 年前
Interesting. In typical Facebook style, they do not attempt to fix the root problem (there&#x27;s too much code, and much of it has been copy-pasted) but instead expend even more resources just to allow (or even encourage) it to proliferate. The effort would be far better expended on a tool to refactor out all that duplication, because they&#x27;ve created something that can clearly identify duplication.<p>It reminds me of how they hit a limit in the Android VM because their code had so many classes, and decided to work around it instead of reflecting (no pun intended) on how they ended up with so much code in the first place: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5321634" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5321634</a>
ccozan大约 6 年前
Maybe ontopic: I would like a voice controlled system that works with me. For example: saying, &quot;I need a loop over a list&quot; and promptly I get served in my text editor the loop. Or &quot;I need to open a file and read contents&quot;. Or &quot;Create an object ThisAndThat, with three properties&quot; ... etc. Of course ideally would even ask for more details like, what kind of list is that, or how shall the file be read.<p>How hard would be?
评论 #19611595 未加载
评论 #19611448 未加载
评论 #19609456 未加载
评论 #19609082 未加载
评论 #19609498 未加载
jboggan大约 6 年前
The most interesting (and I think difficult) approach here is properly representing the ASTs as vectors. There is a lot more possible when you get this right.
评论 #19608827 未加载
mlthoughts2018大约 6 年前
The primary use case I experience for searching for idiomatic usage patterns is to know how to do a higher level refactoring, meaning I don’t want results that have syntax tree similarity to what I’ve got or even the small bit I start from to create the query. I want the <i>intention</i> of my search query but expressed in a better design.<p>Separately, for very micro-level idiomatic things, like use of a certain data type operation or efficient constructor patterns, I need to search by natural language descriptions of the subtle differences between options. This is what makes Stack Overflow so helpful, the accompanying natural language description of intentionality or special cases, even if the code that is found isn’t precisely what’s needed, it demonstrates <i>directionally</i> what to do.<p>This tool seems like yet another example of trying to force machine learning solutions to problems nobody actually has.<p>Considering the idea that I’d need to integrate this into my coding environment, I’ll say No Thanks!
评论 #19607155 未加载
azhenley大约 6 年前
If anyone wants to get a PhD in this topic, let me know :)
评论 #19608523 未加载
评论 #19608733 未加载
评论 #19608684 未加载
cyc115大约 6 年前
It would be very helpful to help figure out how to do things in a large codebase with little documentation.
bshipp大约 6 年前
Was anyone able to find a link to Aroma in that document? I found the colours made it very difficult to differentiate the links from the text and I couldn&#x27;t find it.<p>A quick search through Facebook&#x27;s profile on Github turned up nothing.
评论 #19607585 未加载
konamicode大约 6 年前
Seealso: IntelliCode for Visual Studio.
评论 #19607714 未加载
occamschainsaw大约 6 年前
Not directly about the article but I am annoyed that the FB AI blog is very much a part of FB the social network. While reading the blog I got three useless notifications (boxes in the bottom left corner). The whole page has no other indication that I am logged into FB nor any option to log out.
z3t4大约 6 年前
Is this project open source? I would like to experiment with something like this to generate boilerplate code. Often when programming I copy something that already do kinda what I want, then modify it until it does exactly like I want.
pgib大约 6 年前
Perhaps not as fancy, but I have been loving TabNine with Vim. (works with most editors) Its suggestions are scary good some of the time.<p><a href="https:&#x2F;&#x2F;tabnine.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tabnine.com&#x2F;</a>
orliesaurus大约 6 年前
I wonder if anyone from Kite.com is reading this and if they have any comments?
usefulcat大约 6 年前
Seems like this could be a useful feature for Github, BitBucket, etc.
muratsu大约 6 年前
From what I read, it&#x27;s doing search &amp; clustering on AST based feature vectors. I&#x27;m a bit lost on the learning part, how does the system improve over time?
评论 #19611765 未加载
bitL大约 6 年前
That&#x27;s a pretty cool approach! Thanks for sharing! ;-)
sabujp大约 6 年前
i expect to see this in intellij and cider <a href="https:&#x2F;&#x2F;code.google.com&#x2F;archive&#x2F;p&#x2F;cider-ide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;archive&#x2F;p&#x2F;cider-ide&#x2F;</a> soon
Dragna大约 6 年前
What is the IDE they are using ?
评论 #19614547 未加载
评论 #19612939 未加载
saagarjha大约 6 年前
One danger I can see coming up is that if someone writes incorrect code it could end up propagating throughout other codebases. I guess this is still an issue without automatic tools, but I feel like this might make it easier…
评论 #19607759 未加载
评论 #19607743 未加载
评论 #19607707 未加载