News for hackers. Stuff that matters.
Re:Text2Code: Converts English queries into Python code by jboggan on Tuesday July 27, 2021 @10:04AM (#27972588)
This is neat, we did something a couple of years ago like this (but much cruder) by training off of Stack Overflow question and answer data. Actually we were trying to make a rubber ducky debugging chatbot but we didn't clean our inputs and it started spitting out code blocks when we asked it English questions.

With all the fuss over Autopilot have you considered the inverse problem? I trust myself to write code but often in an unfamiliar codebase I spend the majority of the time reading and deciphering what code does. Does the inverse work very well with your training set? I'd love to highlight code on the screen and get an English approximation of what it does. That's a truly useful helper.

Re:Text2Code: Converts English queries into Python code by trutannus on Tuesday July 27, 2021 @10:40AM (#27973003)
These things are cool, but I find ultimately things like this end up just being a more natural language like programming language. There will generally be ways you have to phrase your query to get the algorithm to understand it. Having to make sure the interpreter can understand you, and debugging your query to me takes away all the advantage of a tool like this. You end up with syntax and keywords, all features of a language, but instead of getting them from a documentation page, you have to bash your head against the interpreter to figure them out.

Same thing with no-code platforms. They're great until you have to understand why the code generator spat out something that's throwing incomprehensible errors. For example, try debugging compiled typescript for an idea of how autogenerated code debugging works out.

Re:Text2Code: Converts English queries into Python code by sharikone on Tuesday July 27, 2021 @11:12AM (#27973400)
Exactly. I hate those things so much. In some cruel perversion of benevolence to give you a "friendlier" interface they build something you have to no idea how to tail for your own needs.

Reminds me of Google search (remember when you could write logic queries?) and chatbots

Re:Text2Code: Converts English queries into Python code by trutannus on Tuesday July 27, 2021 @11:54AM (#27973906)
> remember when you could write logic queries

Those were the days... before Googledorking ruined it for everyone.

Re:Text2Code: Converts English queries into Python code by mycall on Tuesday July 27, 2021 @11:40PM (#27980040)
On the other hand, if you can make 100 really useful queries and package them, perhaps they could be sold.
Re:Text2Code: Converts English queries into Python code by trutannus on Thursday July 29, 2021 @04:47PM (#28001296)
Doubt it. Were I given the option of "buy 100 queries that work" or "have an existing engineer code out the solution", I'd never pick the other option. Ever.
Re:Text2Code: Converts English queries into Python code by Y_Y on Tuesday July 27, 2021 @10:39AM (#27972994)
Ask it for a polynomial time factorisation algorithm.
Re:Text2Code: Converts English queries into Python code by melling on Tuesday July 27, 2021 @10:23AM (#27972791)
I’d love to see this work with voice input
Re:Text2Code: Converts English queries into Python code by alex-wallish on Tuesday July 27, 2021 @10:53AM (#27973167)
This is the direction that serenade.ai is headed. Been using it since they launched and they've slowly been getting closer to a general natural language to code engine. Would recommend anybody check it out if you haven't before
Re:Text2Code: Converts English queries into Python code by farrazzyx on Wednesday July 28, 2021 @01:48AM (#27980593)
good