Mirror is an entirely new concept in programming — just supply function signatures and some input-output examples, and AI does the rest.

  • @[email protected]
    link
    fedilink
    English
    33 hours ago

    Most general purpose programming languages nowadays are designed to be easily human readable. But with this, I now have to understand the syntax of another “programming language” in addition to the programming language it outputs. How is this helpful in any way?

    There are already plenty of template generators that can generate boiletplate code with parameters. This seems like a complete waste of time.

    • @[email protected]
      link
      fedilink
      11 hour ago

      Even as a toy language if I can’t tell what it’s doing beyond interface with an llm prompt… What good is it?

      Consistency and validity of output is essentially impossible to prove, because this has all the accuracy of both humans famously bad at explaining their problems to machines who understand 80% of it.

  • @[email protected]
    link
    fedilink
    23 hours ago

    The obvious problem is that I would have been quicker to write the function yourself than the examples.

    • @calcopiritus
      link
      35 hours ago

      Of course it would output JavaScript. What else?

  • Vivi
    link
    fedilink
    English
    918 hours ago

    almost like a shitty prolog that won’t work half the time!

  • @[email protected]
    link
    fedilink
    518 hours ago

    Interesting, but I never needed AI for coding. Well, twice, and I had to do changes, but would not use AI to generate code.

  • @[email protected]
    link
    fedilink
    2
    edit-2
    15 hours ago

    Could I do:

    signature primes_less_than(x: number) -> [number]
    example primes_less_than(2) = []
    example primes_less_than(10) = [ 2, 3, 5, 7 ]
    primes_less_than(10582319112759318014901241439012831231539517)
    

    ?

    I don’t pay for OpenAI, so I can’t try the playground