Live data from Hacker News

Aroma: Using machine learning for code recommendation

ai.facebook.com

21–30 of 62 posts

Re: Aroma: Using machine learning for code recommendation

#23

If anyone wants to get a PhD in this topic, let me know :)

I was seriously considering this until I remembered something.

Didn’t Tennessee pass a law saying they’d stop abortion in the event of rape, incest, even to save the mother’s life?

Hard pass.

Re: Aroma: Using machine learning for code recommendation

#24

If anyone wants to get a PhD in this topic, let me know :)

Not for PhD, but for research purposes ;)

Can u point out any work on refactoring existing code for reduced code complexity?

Obtaining same (non)functional behavior using less code.

EDIT: i will read the CodeDeviant paper

Re: Aroma: Using machine learning for code recommendation

#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 ?

Re: Aroma: Using machine learning for code recommendation

#27
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.

That's actually a fascinating idea. Do you think it would have to operate on PDFs? How would that work without the LaTex source?

Re: Aroma: Using machine learning for code recommendation

#28
post #7

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. https://www.eclipse.org/recommenders/

What would be nice is if could write recommendations automatically, then you pick and choose which one you want.

You could scaffold a project, and it runs, and then you check back to see what it recommends.

Re: Aroma: Using machine learning for code recommendation

#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?

Re: Aroma: Using machine learning for code recommendation

#30
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…

Chain a text-to-speech component to tranx and you're done

Paper: https://arxiv.org/pdf/1810.02720v1.pdf

Code: https://github.com/pcyin/tranX

Live demo (try Django out): http://moto.clab.cs.cmu.edu:8081/

Post reply on HN