this post was submitted on 20 Nov 2024
7 points (100.0% liked)

Programming

423 readers
12 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 !webdev@programming.dev



founded 1 year ago
MODERATORS
 

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

top 10 comments
sorted by: hot top controversial new old
[–] GetOffMyLan@programming.dev 3 points 17 hours ago

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

[–] akkajdh999@programming.dev 7 points 1 day ago

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

[–] vivi@slrpnk.net 9 points 1 day ago (1 children)

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

[–] BatmanAoD@programming.dev 2 points 1 day ago

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

[–] thingsiplay 8 points 1 day ago* (last edited 1 day ago) (1 children)

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.

https://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 2 points 1 day ago

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

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

[–] rothaine 5 points 1 day ago
// Hack the mainframe to skim pennies from ongoing transactions
async function addMoneyToMyBankAccount(dollarAmount: number): Promise<"success">

Alright let's go

[–] Reptorian@programming.dev 4 points 1 day 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.

[–] GetOffMyLan@programming.dev 1 points 17 hours ago

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

[–] KindaABigDyl@programming.dev 2 points 1 day ago* (last edited 1 day 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