Sunday, May 28, 2017

Cryptopals Set 1 -- F#


Completed with word/line count comparisons stats between Python and F# here: https://github.com/tkuriyama/cryptopals

F# is about 1000 lines total vs 1180 lines in Python. Although F# is overall more concise, there is considerably more boilerplate in calling .NET libraries such as cryptography functions.

Since the problem space is relatively pure computation, I've found writing functionally in F# to be more pleasurable. On the other hand, the MSDN documentation seems rather unfriendly compared to what I've gotten used to in Python... (fortunately, the C# examples are pretty readable and I found someone else's example of using the AES decryption API).

No comments:

Post a Comment