I recently had to write a quick script to update a text file full of pdf annotations. I wrote the script in Ruby then I wondered how much of a difference in speed I would get if I turned it into Crystal. See below.
This is my script for handling unsolicited sales calls. I can tell by the caller id as they usually come in on our second (unpublished) phone number.
- _for best effect… leave off ‘Thank’ to make it sound like the tape already started…
Thank you for calling Planet Argon. If you know your party’s extension, please say or enter it followed by the pound key.