4 ms·
There was an article about haskell vs C where, haskell would appear slow at first because its string type was unicode while C was ascii. When using unicode the
by agumonkey 11y ago
There was an article about haskell vs C where, haskell would appear slow at first because its string type was unicode while C was ascii. When using unicode the c code suddenly was a bit slower than haskell's. Details matter.
- hawkice 11y agoTo be perhaps even more fair, Haskell's String type is actually a singly linked list of unicode 32 characters, so you'd want C to use unicode and Haskell to use ByteString (or Text).