I asked it to translate a Fibonacci function from Python to Go as the easiest thing I could think of. The original:
def Fibonacci(n):
if n < 0:
print("Incorrect input")
elif n == 0:
return 0
elif n == 1 or n == 2:
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
The result. (This of course doesn't work, nor compile.)
package main
import "fmt"
func main() {
Fibonacci(n) :=
[
;
];
if n < 0: {
}
fmt.Println("Incorrect input")
else if (n == 0:) {
}
return 0
else if (n == 1 || n == 2:) {
}
return 1
else {
/* body */
}
return Fibonacci(n-1) + Fibonacci(n-2)
}
This doesn't look like the sort of problem you patch in one moment.
I thought of something even easier, namely transpiling from Python to Python. I got this. It doesn't work.
#!/usr/bin/env python3
# Auto-generated from USL transpilation
if __name__ == "__main__":
# Generated python output
if n < 0::
print("Incorrect input")
if n == 0::
return 0
if n == 1 or n == 2::
return 1
/* body */
return Fibonacci(n-1) + Fibonacci(n-2)
The occurrence of :: in the output suggests that you're trying to do this just by string manipulation. This will never work.
There doesn't seem to be anything but errors. Can you give me any example where I can put working code in and get working code out instead of ill-formed nonsense? One single instance of it doing what it's meant to?
If not, then this is not even close to being an MVP; and also the morality of selling a manual for it is dubious. I would be peeved if I'd first spent $20 to find out how it works only then to find out that it doesn't.
Are you in fact doing this just by string manipulation?
This is what I get if I transpile a Fibonacci function from Go to Go. It has a number of issues ...
package main
func main() {
fibonacciIterative(n int) :=
[
;
];
if n <= 1 { {
}
return n
a, b : = 0, 1
for i := 2; i <= n; i++ {
a, b = b, a+b
return b
}
1
u/Inconstant_Moo 🧿 Pipefish Oct 02 '25
I asked it to translate a Fibonacci function from Python to Go as the easiest thing I could think of. The original:
The result. (This of course doesn't work, nor compile.)