Live data from Hacker News

Aroma: Using machine learning for code recommendation

ai.facebook.com

51–60 of 62 posts

Re: Aroma: Using machine learning for code recommendation

#53
post #11

I want something like this for math. Write an equation, or a definition and see a bunch of different 'versions' of that snippet and where they are being used. This would help so much with understanding concepts and merging fields. It is way too common for different fields to independently "discover" some concept and be completely ignorant of all the work that has been done on that concept by some other field.

Checkout the work on homotopy type theory and proof assistants like Coq

Re: Aroma: Using machine learning for code recommendation

#54
post #26
post #4

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.

This. ML is so vector-y. And code is so graph-y. Can you point out some SOTA on bridging this ?

Try code2vec. It's pretty good.

Re: Aroma: Using machine learning for code recommendation

#58
post #11

I want something like this for math. Write an equation, or a definition and see a bunch of different 'versions' of that snippet and where they are being used. This would help so much with understanding concepts and merging fields. It is way too common for different fields to independently "discover" some concept and be completely ignorant of all the work that has been done on that concept by some other field.

It reminds me of Haskell's type based function search: https://hoogle.haskell.org/

Re: Aroma: Using machine learning for code recommendation

#60
post #48
post #29

Maybe ontopic: I would like a voice controlled system that works with me. For example: saying, "I need a loop over a list" and promptly I get served in my text editor the loop. Or "I need to open a file and read contents". Or "Create an object ThisAndThat, with three properties" ... etc. Of course ideally would even ask for more details like, what kind of list is that, or how shall the file be read. How hard would be…

Well, I’ve been discussing it on HN for years now. There really hasn’t been much interest. https://news.ycombinator.com/item?id=8515987 https://news.ycombinator.com/item?id=11418285 Mention coding by voice and someone will explain how they can’t imagine not using a keyboard, or they bring up the open office problem. Considering the limited scope, it’s probably just a matter of the proper editor integration.

I think my idea goes about a rapid prototyping, where i build the skeleton of a program faster, no matter the boiler code, and then workout the details.

Intellisense or shortcuts do this up to a level, but the current big IDEs are limited. Maybe some editor with the concept of VIM with a separate command and edit mode would be more fit to work like that.

Post reply on HN