2 ms·
I tried Hy for 2023 AoC and loved it, but it broke after day 8 because the solution I wrote crashed after 40mins. but re writing the same logic in python took 2
by drekipus 3y ago
I tried Hy for 2023 AoC and loved it, but it broke after day 8 because the solution I wrote crashed after 40mins. but re writing the same logic in python took 2 mins to complete.
Hy is nice, but "compiling to python" isn't
- nerdponx 3y agoThat's a new one to me, I've never had a Hy program perform substantially worse than the equivalent Python. I'm curious what the offending code was!
- drekipus 3y agoI think from memory it was to do with recursion (ie: stack overflow error) from having a few too many nested `lfor`s I'll try and find it