News for hackers. Stuff that matters.
Re:Show HN: Flex – transpile natural language to a programmi... by leobg on Thursday November 10, 2022 @01:19PM (#33550782)
Can anyone explain to me what this does? I would have expected something like GPT-3 Codex or GitHub Copilot. But the example on the page looks a lot different. Specifically, I don’t see any natural language input.
Re:Show HN: Flex – transpile natural language to a programmi... by faheel on Thursday November 10, 2022 @02:57PM (#33552273)
At the moment it can recognise the type of statements in the training data set [1] and transpile them to Python, Java or C++ using the mappings defined here [2].

This is very different from how Codex/Autopilot work as it is trained using an NLU framework [3] which is usually used for training chatbots.

[1]: https://github.com/Flex-lang/transpiler/tree/master/transpil...

[2]: https://github.com/Flex-lang/transpiler/tree/master/transpil...

[3]: https://github.com/RasaHQ/rasa

Re:Show HN: Flex – transpile natural language to a programmi... by leobg on Thursday November 10, 2022 @03:16PM (#33552612)
So I can input pseudo code and it will turn that into real code? Is that a proper description? Can you give me a use case? Thank you.
Re:Show HN: Flex – transpile natural language to a programmi... by faheel on Thursday November 10, 2022 @11:08PM (#33557214)
Yes, that's a way to describe it.

One use case could be that a complete beginner to programming can enter some natural commands (e.g. "X is a list of numbers", "read 10 values in X") without worrying about the syntax and convert them to a working program in one of the target languages.

Also, the input doesn't have to be in English as it can be easily trained with samples from other languages. So people can write/speak in their native language and get it translated to working code.