News for hackers. Stuff that matters.
Re:Ask HN: Are you tired of reading ChatGPT headlines? by logicallee on Saturday February 04, 2023 @06:17PM (#34659480)
>I bet you can ask ChatGPT to code a JS framework

Tried it, it did okay on some high-level stuff but couldn't get to working code: https://imgur.com/a/HModV0f

Do you think it's fair to hold it to the task of instantly creating a new JavaScript framework from scratch and implementing it? This is a task that multiple experts planning and collaborating in different areas of software engineering could perform together with extreme difficulty over a long period.

On the other hand, I was surprised that it came up with working, "correct" code for a difficult task:

https://imgur.com/a/Y2kumZq

Pastebin for the code:

https://pastebin.com/5JDvXtWi

I checked it and it is correct for n up to hundreds of thousands. (I'm not sure if that is really how matrix powers are supposed to work, but overall, its function returns correct exact solutions for the problem and worked without any modification.)

I find both conversations I just linked pretty impressive in their own ways.

There are no comments on this comment yet.