• 4 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: July 16th, 2023

help-circle






  • many words should run into the same issue, since LLMs generally use less tokens per word than there are letters in the word. So they don’t have direct access to the letters composing the word, and have to go off indirect associations between “strawberry” and the letter “R”

    duckassist seems to get most right but it claimed “ouroboros” contains 3 o’s and “phrasebook” contains one c.



  • is-number is a one-line function. (though it’s debatable if a function that complex should be compressed to one line)

    You may have heard of a similar if more extreme “microdependency” called is-even. When you use an NPM package, you also need all the dependencies of that package, and the dependencies of those dependencies recursively. Each package has some overhead, eventually leading to this moment in time.











  • You can, of course. And if you’re good enough at it, and focus on keeping it simple, you can keep the complexity down to a minimum, at least with most straightforward programs.

    Buut you can say the same about other complicated languages like c++. And things like writing quick “shell script” type things are going to be pretty simple in almost every decent language. Even if the result is slightly more verbose it won’t really matter.


  • sus@programming.devtoRust@programming.devLeaving Rust gamedev after 3 years
    link
    fedilink
    arrow-up
    15
    arrow-down
    3
    ·
    edit-2
    5 months ago

    eh, I’d say rust’s problem is more that it’s marketed as a general-purpose language, when in reality it is rare for software to need a language that is both very highly performant and memory safe, and rust makes heavy sacrifices in terms of complexity to achieve that. Most popular languages are garbage collected which can cause performance problems, but makes code much simpler to read and write.


  • found a few examples of how to do it on a github issue:

    var script = GDScript.new()
    script.source_code = "func say_hello():\n\tprint(\"Hello!\")"
    script.reload()
    var script_instance = script.new()
    script_instance.call("say_hello")
    
    
    var MyClass = load("myclass.gd")
    var instance = MyClass.new()
    assert(instance.get_script() == MyClass)