News for hackers. Stuff that matters.

ramadis

Show HN: Dynamically generate JavaScript class methods at runtime

https://github.com/ramadis/vibe-class

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.here's a very lean...

( Read More... | no comments | on HN )
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!

Re:Learning to Reason with LLMs on Thursday September 12, 2024 @01:48PM (#41523498)
It'd be helpful if they exposed a summary of the chain-of-thought response instead. That way they'd not be leaking the actual tokens, but you'd still be able to understand the outline of the process. And, hopefully, understand where it went wrong.
Re:Git In Two Minutes (updated after 8 years) on Saturday August 06, 2022 @04:02PM (#32371089)
Chill?
Re:Humanly traversable wormholes (2020) on Saturday March 26, 2022 @05:57PM (#30815722)
Just to add to the reply, the AdS/CFT correspondence (aka Maldacena duality) was proposed by Juan Maldacena, one of the authors of this paper (Humanly traversable wormholes).
I felt the same way about Netflix when it first started. Now, there are dozens of competitors with different catalogues, making piracy enticing for people once again.
For those interested, there is an interesting video [1] that explains how/why the different versions with different color gradings came to be.

[1] https://www.youtube.com/watch?v=KEdgmNZnLs4

mtailor and their fancy body measurement algorithm.
Re:An Update on MDN Web Docs on Friday August 21, 2020 @03:31PM (#24238105)
> Is it valuable enough that you'd consider paying for access?

I'd argue that people would pay for MDN. I know I would pay a small fee for so high-quality straight forward information on web APIs.

Re:Entropy explained, with sheep (2016) on Friday August 14, 2020 @01:02PM (#24160376)
I recommend you the story "The Last Question", by Isaac Asimov[0], one of my favourite stories of all time. It's about how the question about reverting the direction of the entropy keeps rising on people, throughout the life of the universe.

[0] https://en.wikipedia.org/wiki/The_Last_Question

My country (Argentina) has a lottery(esque?) approach to giving work visas for the US, so basically: even with company support, work visas are subject to probability (~30% chance of getting it for a given year). Do you have experience, or do you know, how companies handle hires from countries with this methodology?

Thanks for doing this AMA!

que gorras
Re:Why Generalists Triumph in a Specialized World on Tuesday June 04, 2019 @09:50PM (#20100860)
The 10k hours rule is actually a misunderstanding from a paper on violin practice by Anders Ericsson. An error that the author himself explains in his book Peak: Secrets from the New Science of Expertise. It doesn't mean that you can't learn something to mastery in 10k hours or less. It just means that 10k hours is kind of an invented number. Some skills require more time, some less, but all of them require purposeful practice.
Re:Proxy, a new JavaScript ES6 feature on Friday May 18, 2018 @10:10AM (#17101593)
I made a simple library to add ruby's `method_missing` to Javascript: https://github.com/ramadis/unmiss
Re:A dataset of crimes committed in Buenos Aires on Friday January 19, 2018 @09:50PM (#16191788)
probably they don't file a police report. they must be used to it by now.
Re:A dataset of crimes committed in Buenos Aires on Friday January 19, 2018 @08:03PM (#16191373)
nice work!
Re:Show HN: Unmiss – Ruby's method_missing in JavaScript on Friday September 01, 2017 @09:11AM (#15148048)
This is not intended in any way to be used in a production environment. It is just a cool experiment to show javascript versatility :). Your points are entirely valid!
I agree with you about the complexity of a mvp. It indeed may vary. However a mvp is about testing an hypothesis, not building a simple version of a product.

Maybe an mvp for a complex product is just a landing page explaining features with a buy button, built in under 2 hours using optimizely.

Again, it depends on the hypothesis. So, in this way, I differ with you when you say getting out a mvp asap doesn't make sense. Because validating you hypothesis is what you want to make as fast as possible. But then, launching as fast as possible doesn't imply necessarily launching fast.

I think the whole point of an MVP is to validate the hypotesis you make about your users.

In your case for example, do you know who your users are? Are they entrepreneurs? Current software developers? Anyhow, who is going to use your service?

I'm not trying here to undermine your project since it indeed sounds pretty awesome, but to reinstate why the whole mvp movement has a reason to be.

Ask HN: How to scale?

I'm starting a new project, a mobile app. I created a db in postgres, used Node for the backend, and I'm currently hosting everything in heroku.I was just wondering if this setup is able to scale, or if only a few users (maybe a couple hundreds) will be enough to take down the service.

( Read More... | 3 comments | 3 points | on HN )

Older »