I just want AI that will write a unit test for me.
AI converts between hundreds of programming languages
21–30 of 60 posts
Re: AI converts between hundreds of programming languages
#22Interesting going from untyped languages to typed languages, as an inference needs to be made. For example, in JavaScript: function add(a, b) { return a + b; } converting to Go, it becomes: func add(a int, b int) int { return a + b } Where as the original JS version works with integers, floats, strings, arrays, etc.
Re: AI converts between hundreds of programming languages
#23Re: AI converts between hundreds of programming languages
#24finally: fully automated memory corruption
Re: AI converts between hundreds of programming languages
#25Tried pasting a big piece of code. "Whoah, that's big, try something smaller." Ok, paste small snippet of code. Click "translate". "Sign up first". Urgh, fine, this looks just about exiting enough to try, but barely so. After signing up, I have zero credits, without a single translation performed. I mean, not that I expect free lunch, but I'm also not gonna pay money before seeing a single 10 line example.
At least the samples seem legit, in the sense that some break the algorithm badly enough that we can be confident they weren't hard-coded lol.
Re: AI converts between hundreds of programming languages
#26return a if b.zero?
return b if a.zero?
a + b
end
Now lets see elixir :)
I say the trial should allow at least one bit of code that we provide.
Re: AI converts between hundreds of programming languages
#27Re: AI converts between hundreds of programming languages
#28Re: AI converts between hundreds of programming languages
#29At best I'd get Ruby code with elixir syntax.
Programming languages require thinking about memory and code differently. That's why we have them.
I'd be interested to see this in elixir :)
while (s++ = t++);
Re: AI converts between hundreds of programming languages
#30I really wanted to see what it was gonna do for Python -> C++ converting some nested dictionary and list comprehensions:
def foobar(x, y):
return {
_: __
for _, __ in zip(
[_ for _ in x if _ in y],
[_ for _ in x if _ not in y]
)
}
{3: 1, 4: 2} == foobar([1, 2, 3, 4], [3, 4, 5, 6])