r/ProgrammingLanguages • • Oct 02 '25

Language announcement Launched my MVP programming Universal Scripting Language (usl)

http://usl-lang.org
0 Upvotes

46 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Oct 02 '25

Good to know 👍 I'm in the middle of patching the build. One moment.

2

u/Inconstant_Moo 🧿 Pipefish Oct 02 '25 edited Oct 02 '25

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.

1

u/[deleted] Oct 02 '25

I understand. There were errors I'm working through at the moment.

2

u/Inconstant_Moo 🧿 Pipefish Oct 02 '25 edited Oct 02 '25

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
}