AI converts between hundreds of programming languages
codelanguageconverter.com
AI converts between hundreds of programming languages
1–10 of 60 posts
Re: AI converts between hundreds of programming languages
#2 Input: TypeScript
Output: QuakeC
Code: Sample 3
Seems to spin forever. (Which makes sense, as QuakeC is incapable of the constructs in Sample 3).Edit: after a few minutes spinning it's... Spewing a lot of nonsense. It seems to be dumping every variable combination it can "think" of that it has seen in QuakeC.
Re: AI converts between hundreds of programming languages
#3Definitely not enough of a taste to convince me to spend money on this. Might want to adjust that freemium model.
It's a cool idea for sure and could definitely be useful though.
Re: AI converts between hundreds of programming languages
#4I think I broke it. Input: TypeScript Output: QuakeC Code: Sample 3 Seems to spin forever. (Which makes sense, as QuakeC is incapable of the constructs in Sample 3). Edit: after a few minutes spinning it's... Spewing a lot of nonsense. It seems to be dumping every variable combination it can "think" of that it has seen in QuakeC.
Re: AI converts between hundreds of programming languages
#5Also, this almost immediately adds a signup wall not for the real product, but to the little demo box on the home page that makes it not worth playing with
Re: AI converts between hundreds of programming languages
#6I think I broke it. Input: TypeScript Output: QuakeC Code: Sample 3 Seems to spin forever. (Which makes sense, as QuakeC is incapable of the constructs in Sample 3). Edit: after a few minutes spinning it's... Spewing a lot of nonsense. It seems to be dumping every variable combination it can "think" of that it has seen in QuakeC.
Re: AI converts between hundreds of programming languages
#7After 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.
Re: AI converts between hundreds of programming languages
#8For 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
#9Re: AI converts between hundreds of programming languages
#10I think I broke it. Input: TypeScript Output: QuakeC Code: Sample 3 Seems to spin forever. (Which makes sense, as QuakeC is incapable of the constructs in Sample 3). Edit: after a few minutes spinning it's... Spewing a lot of nonsense. It seems to be dumping every variable combination it can "think" of that it has seen in QuakeC.
For what it's worth, Sample 2 generates syntactically invalid code, having `:` instead of `::`. Sample 1 is actually working code (but relies on the implicit typing rules, which gives you the default real kind instead of double precision reals). Interestingly, translating Sample 1 from Rust to Fortran suddenly generates a subroutine instead of a function, but does generate types.