7 ms·
Depends on scope, but Parrot is tuned to decently one-shot a lot of stuff. For example, I need to implement HTTP/2 in my JS framework and was curious about wha
by rglover 2y ago
Depends on scope, but Parrot is tuned to decently one-shot a lot of stuff.
For example, I need to implement HTTP/2 in my JS framework and was curious about what the code would look like. Here's the result from the following prompt: https://www.imghippo.com/i/xR2Zk1727987897.png https://www.imghippo.com/i/xR2Zk1727987897.png (full code it gave me here: https://gist.github.com/rglover/069bdaea91c629e95957610b484ed82c https://gist.github.com/rglover/069bdaea91c629e95957610b484e...).
Prompt:
> Help me implement an HTTP/2 enabled server using Express.js.
---
When I initially researched how to do this just following the Node.js docs, Google results, and SO, it was fairly confusing (easily wasted an hour or two). This immediately gave me what I needed to understand the approach in a few seconds.
- elashri 2y agoI am not a nodeJS developer but it was interesting that the first results from a kagi search was SO question that had one of the answers that contains a code very similar to what you provided here [1]. So while you might be right in general, I still think you still gave an example of that you used LLM tool to help implementing a solution. You actually knew that you want to implement http/2 using express.js. Hint: I am not sure whether this is a good solution or not. As I said I am not a nodeJS developer. [1] https://stackoverflow.com/questions/59534717/how-to-integrate-http2-with-expressjs-using-nodejs-module-http2 https://stackoverflow.com/questions/59534717/how-to-integrat...
- rglover 2y agoIf you want to take it for a test drive, Parrot is free to try and works with any language (~200+ languages and frameworks supported), not just JS/Node. I'd also be happy to give you some extra generation tokens to push the limits (just email me w/ your username ryan@codewithparrot.com and I'll hook you up) and see if it'd be useful.