this post was submitted on 20 Nov 2024
-20 points (20.6% liked)

Programming

17672 readers
58 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

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

all 13 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 month ago (1 children)

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

[–] [email protected] 6 points 1 month ago

Of course it would output JavaScript. What else?

[–] [email protected] 11 points 1 month ago (1 children)

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

[–] [email protected] 1 points 1 month ago

Doesn't prolog already "not work half the time"? (Disclaimer: I haven't used it.)

[–] jubilationtcornpone 8 points 1 month ago (1 children)

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] 4 points 1 month 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.

[–] NichtElias 7 points 1 month ago

Ah, a new esolang

[–] [email protected] 5 points 1 month ago (1 children)

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] 1 points 1 month ago

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

[–] [email protected] 5 points 1 month ago

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

[–] [email protected] 4 points 1 month ago* (last edited 1 month 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

[–] [email protected] -1 points 1 month ago

Ooooh, this oughta be good.