A Shiny New Programming Language - Hackster.io (www.hackster.io)
from 0x0@programming.dev to programming@programming.dev on 20 Nov 17:37
https://programming.dev/post/21941080

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

#programming

threaded - newest

CrimsonMishaps@lemmy.world on 20 Nov 17:47 next collapse

Ooooh, this oughta be good.

vivi@slrpnk.net on 20 Nov 17:49 next collapse

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

BatmanAoD@programming.dev on 20 Nov 18:00 collapse

Doesn’t prolog already “not work half the time”? (Disclaimer: I haven’t used it.)

Reptorian@programming.dev on 20 Nov 17:54 next collapse

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

GetOffMyLan@programming.dev on 21 Nov 08:19 collapse

I use the ai daily at work. But more as an interactive docs and refactoring tool.

thingsiplay@beehaw.org on 20 Nov 18:00 next collapse

I don’t mean this in a toxic way, but this is probably the worst idea I have seen yet with Ai in programming. People should use less Ai, and learn more how to program. It’s better in the long term.

github.com/AZHenley/Mirror

Is the language and interpretation predictable and exact? If you install a newer version of the Ai, can the exact same code behavior be guaranteed? What’s the benefit over using Ai tools that generate code in a static language, instead leaving it to be interpreted?

Reptorian@programming.dev on 20 Nov 18:17 collapse

People should use less Ai, and learn more how to program

Yes. Once you know how, you can see pitfalls with AI.

rothaine@beehaw.org on 20 Nov 20:42 next collapse

// Hack the mainframe to skim pennies from ongoing transactions
async function addMoneyToMyBankAccount(dollarAmount: number): Promise<"success">

Alright let’s go

KindaABigDyl@programming.dev on 20 Nov 20:47 next collapse

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

akkajdh999@programming.dev on 20 Nov 21:19 next collapse

So a chatgpt wrapper that compiles a DSL to JavaScript. Ok.

calcopiritus@lemmy.world on 21 Nov 06:52 collapse

Of course it would output JavaScript. What else?

GetOffMyLan@programming.dev on 21 Nov 08:27 next collapse

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

jubilationtcornpone@sh.itjust.works on 21 Nov 09:02 next collapse

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.

cakeistheanswer@lemmy.dbzer0.com on 21 Nov 10:25 collapse

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.

NichtElias@sh.itjust.works on 22 Nov 01:11 collapse

Ah, a new esolang