Comment

Comment by ramadis

built a weird little library last friday night. it uses LLMs to auto-generate JavaScript class methods at runtime; no need to define the method ahead of time—just decorate your class, call whatever you want, and the model figures it out on the fly.

it uses `Proxy`s, and pipes the class definition and the call example to the LLM for it to generate a valid method.

of course it was not built for production use, but it was a fun exploration. would love to hear your thoughts!

parent ramadis 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton