HNHacker News
TopNewBestAskShowJobs

-J

3 karma · joined September 2, 2024

submissionscomments
-J··on Universal Scripting Language–Run 466 Languages in One Interpreter
Yes. It was the first thing I made. I need to update the logic to include the new languages but it’s here. I’ll go find it to find it and put it up. Thanks for reminding me.
-J··on Universal Scripting Language–Run 466 Languages in One Interpreter
It’ll change over time, but had to start somewhere. I’ve got to run the cookbook through it and finish the ide for it.
-J··on Universal Scripting Language–Run 466 Languages in One Interpreter
Alright I’ve built them into the language. Here’s the example code using what you asked for, as far as I understand at the moment: class Person { init(name, age) { this.name = name this.age = age }

    func doesNotUnderstand(method, args) {
        "Person " + this.name + " does not have " + method
    }
}

func greet(person: Person) { match person { {name: "Alice", age: 30} => "Hi Alice, you're 30." {name, age} if age > 18 => "Hi " + name + ", you're an adult." _ => "Hello there!" } }

macro log_call(func) { `(println("Calling " + ${func})) }

let alice = new Person("Alice", 30) log_call(greet(alice)) # Expands to println and calls greet

-J··on Universal Scripting Language–Run 466 Languages in One Interpreter
It literally takes the functionalities from all 466+ languages and lets you utilize them inside the usl file as though they were their own scripts. Sorry if the description was too hard for you to follow, I’m very tired. It is a new language that lets you use any of the 466+ languages within and their extensions as though it were one language. I didn’t make up a thing. I’ve finished the first draft of the book this morning that teaches you how to use it and if you go to GitHub.com/jordan-townsend/usl it will help you understand. I’m week three into building my first language, cut me some slack. It’s not “inspired”, they literally utilize them all if needed and allow for translation into a universal scripting language that can then run everything. I’ve also built the translation software. What’s hard to understand about a master language that controls all languages it comes in contact with? Seems pretty basic.