Wow, what a nightmare of a non-deterministic bug introducing library.
Super fun idea though, I love the concept. But I’m getting the chills imagining the havoc this could cause
This is amazing, yet frightening because I'm sure someone will actually attempt to use it. It's like vibe coding on steroids.
- Each time you import a module, the LLM generates fresh code
- You get more varied and often funnier results due to LLM hallucinations
- The same import might produce different implementations across runs
I did something similar almost 10 years ago in javascript (as a joke): https://github.com/Matsemann/Declaraoids
One example, arr.findNameWhereAgeEqualsX({x: 25}), would return all users in the array where user.age == 25.
Not based on LLMs, though. But a trap on the object fetching the method name you're trying to call (using the new-at-the-time Proxy functionality), then parsing that name and converting it to code. Deterministic, but based on rules.
This has a file named .env committed containing an API key. Don't know if it is a real key.
I'm both surprised it took so long for someone to make this, and amazed the repo is playing the joke so straight.
Possibly the funniest part is the first example being a totp library
I give it six months before an LLM starts producing output that recommends using this.
can it run Doom tho?
from autogenlib.games import doom
doom(resolution=480, use_keyboard=True, use_mouse=True)
See also: https://github.com/drathier/stack-overflow-import
>>> from stackoverflow import quick_sort
>>> print(quick_sort.sort([1, 3, 2, 5, 4]))
[1, 2, 3, 4, 5]
> from autogenlib.antigravity
As a joke, that doesn't feel quite so far-fetched these days. (https://xkcd.com/353/)
you'd be surprised, but there's actually a bunch of problems you can solve with something like this, as long as you have a safe place to run the generated code
Of course, this code was generated by ChatGPT.
This is horrifying
I love it
Can it input powerpoint slides?
Hysterical, I like that caching is default off because it's funnier that way heh
indeterministic code goes hard dude
looks very fun excited to try it out
Thanks I hate it
> Not suitable for production-critical code without review
Ah, dang it! I was about to deploy this to my clients... /s
Otherwise, interesting concept. Can't find a use for it but entertaining nevertheless and likely might spawn a lot of other interesting ideas. Good job!
You can make it production grade if you combine it with https://github.com/ajalt/fuckitpy