Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use it to optimize my Python + Pandas code. Dump some code in and say “Can you rewrite this code to be faster”. It even gives explanations as to why it’s making those changes.

Another one I use it for is saying “Rewrite this code to run on multiple cores”. Really saves me a lot of Googling time as these are things I want, but I don’t find much pleasure in actually writing code.

I’ve also used it to generate some proof ideas while I’m going through exercises in Baby Rudin. Or to check a proof I’ve come up with if it makes sense.



Very good at "vectorizing" plain python code to pandas.

I just put code like using `for row in df:` and get idiomatic vectorized pandas

The challenge is not it knowing how to do, but understanding what you want to do.

Code plus explanation works very well for more complex things.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: