News for hackers. Stuff that matters.
Re:Py2cr: A Python3 to Crystal Translator by KarlKemp on Monday December 27, 2021 @05:48AM (#29701339)
It is insanely fast. Some text munging python script once told me it would take 14 hours. I ported it to Crystal in 40 minutes, and it completed ten minutes later.
Re:Py2cr: A Python3 to Crystal Translator by tgv on Monday December 27, 2021 @06:11AM (#29701451)
I've only looked at it, but that is a good story to convert Python programmers.
Re:Py2cr: A Python3 to Crystal Translator by KarlKemp on Monday December 27, 2021 @08:08AM (#29702179)
To be fair, there are lots of tricks to get stuff moving faster in Python, usually by invoking some module that delegates to native code. This was, IIRC, doing everything in the most straightforward way. But I did port the source code essentially line-by-line and this was within the first week of using Crystal. Any grave (i. e. measurable in O-notation) errors would have just carried over, and no sophistication was involved in my Crystal code.